ReferenceAPI
Delete a session
DELETE
/v1/sessions/{session_id}Authorization
serverToken AuthorizationBearer <token>
The server's BRAIN_API_TOKEN, sent as Authorization: Bearer . Required for application API calls when configured; optional only on a loopback server started without a token.
In: header
Path Parameters
session_id*string
Match
^ses_[A-Za-z0-9]{20,32}$Header Parameters
Idempotency-Key*string
Length
1 <= length <= 256Response Body
application/json
curl -X DELETE "https://example.com/v1/sessions/string" \ -H "Idempotency-Key: string" \ -H "Authorization: Bearer YOUR_TOKEN"Empty
Create a session POST
Create a conversation using an admitted agent loop. In this example, replace the component id with the id returned by uploading your loop to POST /v1/agentloops, and replace the model API key. Loop configuration depends on the chosen package; the empty object suits the reference loop.
Read a session GET
Next Page