Set (upsert) the stored context for a chat session
HTTP Streaming Chat
Set (upsert) the stored context for a chat session
Stores a free-text background string for the given session. The value is encrypted at rest and injected into the agent system prompt on every subsequent chat turn. Auto-creates the end_user record if it does not yet exist. Replaces any previously stored context.
PUT
Set (upsert) the stored context for a chat session
Authorizations
Enter your API key with the Bearer prefix — e.g. Bearer sk_live_xxx (production) or Bearer sk_test_xxx (sandbox)
Path Parameters
UUID of the chat session whose context you want to set.
Body
application/json
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