Skip to main content
POST
Create a session

Authorizations

Authorization
string
header
required

Your secret API key, lyra_sk_…, from Settings → Developers → API keys.

Body

application/json
assistant_id
string<uuid>
required

The assistant's ID.

partitions
object
required

The customer, as { "key": "value" }. Keys must be exactly the partition keys of the assistant's isolation, at most 63 characters. Values are non-empty strings, at most 200 characters.

Response

Session opened.

token
string
required

Opaque session token, for this customer on this assistant.

expires_at
string<date-time>
required

15 minutes after the session was opened.