Create an agent session
Opens a conversational session owned by this API key’s workspace and returns the session_id every other agent route takes.
More details
More details
Authorizations
API key for authentication
Headers
Required opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true. Omitting it is a 400; reusing a key with a different body is a 422; retrying while the first request is still in flight is a 409.
Body
Human-readable name for the session.
Omit it — or send a blank string — and the session is titled "New Chat" until the agent generates a name from its first turn.
200"Q3 supplier invoices"
Response
Session created.
Opaque session identifier used by the other agent routes.
"665f1c2e8a1b4c0012ab34cd"
The submitted title, or the placeholder the agent replaces when it names the session on its first turn.
"New Chat"
When a turn was last enqueued on this session.