Skip to main content
A thread is one conversation with an agent. Open one thread per conversation, support ticket, call, or user session. The thread supplies recent conversational context for follow-ups while the agent draws from its full long-term memory to answer.

Thread ownership and visibility

A thread belongs to the subject that created it:
  • With a personal key, the subject is you.
  • With a service-account key and X-SP-End-User, the subject is that named end user.
  • With a service-account key and no X-SP-End-User, the subject is the service account.
Only the subject that created a thread can open it. Any other caller gets 404, and this includes Org admins. Memory is not split this way: what an agent learns in one thread is answerable in every thread.

Create a thread

Send POST/v2/agents//threads. Both title and metadata are optional.

Success response (201)

The thread is ready immediately:

Errors

List, read, update, and delete threads

What a thread is not

A thread is never a memory boundary. Deleting a thread hides the conversation without erasing what the agent learned from it.