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.
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.- To isolate memories between two customers, create two separate agents.
- To erase what a thread taught an agent, list its turns with GET
/v2/agents//memories?thread_id=and forget them. See Memories and C4. Close a conversation.