Skip to main content
GET
/
api
/
v1
/
automation
/
settings
Get Automation Settings
curl --request GET \
  --url https://api.mor.org/api/v1/automation/settings \
  --header 'Authorization: <authorization>'
{
  "is_enabled": true,
  "session_duration": 123,
  "user_id": 123,
  "created_at": "<string>",
  "updated_at": "<string>"
}
Get automation settings for the authenticated user. Returns the user’s current automation configuration, including whether automatic session creation is enabled and the default session duration.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Response

is_enabled
boolean
Whether automatic session creation is enabled
session_duration
integer
Default session duration in seconds (defaults to 3600)
user_id
integer
Your user ID
created_at
string
ISO 8601 timestamp when settings were first created
updated_at
string
ISO 8601 timestamp when settings were last updated
Automatic Session Creation: When enabled, the gateway will automatically create sessions when you make chat completion requests without an active session. This provides seamless access to AI providers without manual session management.
Default Values: If automation settings haven’t been explicitly configured, the default values are:
  • is_enabled: true
  • session_duration: 3600 (1 hour)
Session Duration: The session_duration setting determines how long automatically-created sessions will last. Set this based on your typical usage patterns to optimize cost and convenience.