Skip to main content
PUT
Set (upsert) the stored context for a chat session

Authorizations

Authorization
string
header
required

Enter your API key with the Bearer prefix — e.g. Bearer sk_live_xxx (production) or Bearer sk_test_xxx (sandbox)

Path Parameters

sessionId
string<uuid>
required

UUID of the chat session whose context you want to set.

Body

application/json
context
string
required

Free-text background stored (encrypted, sticky) for this chat session and injected into the agent on each turn. Empty string stores empty; use DELETE to remove.

Maximum string length: 50000

Response

Context upserted successfully.

context
string
updatedAt
string<date-time>