Skip to main content
POST
Create Session from Character
See Session errors for the error codes session endpoints return.

Authorizations

Authorization
string
header
required

Your Vivix API key. Keep it on your server.

Body

application/json
character_id
string
required

Saved character to start from, shaped like chr_…. Send it in the JSON body, not in the URL path.

idempotency_key
string

Optional key for retrying session creation. Reuse the same key when retrying the same request; use a new key for a new session.

model
string

Overrides the saved model.

max_duration_seconds
integer

Session time limit in seconds; minimum 4. The standard default is 20 minutes (1200 seconds), subject to your workspace’s session-duration limit. Check expires_at in the response for the actual expiry.

Required range: x >= 4
recording_mode
string

on or off. Send off to disable recording.

output
object

Overrides the saved output; shallow-merged with the saved object.

delivery
object

Overrides the saved delivery; shallow-merged with the saved object.

Response

Success

code
integer
required

0 on success; any other value is an error code.

message
string
required

success, or an English error description.

data
object
required