Thread object

A thread is a container that holds the context and history for agent work. Threads are commonly associated with a specific context such as a business_id and persist across multiple runs.

Thread object

Example JSON response
1{
2 "object": "thread",
3 "id": "b1c2d3e4-5678-90ab-cdef-1234567890ab",
4 "created_at": "2026-01-15T12:00:00.000Z",
5 "updated_at": "2026-01-15T12:30:00.000Z",
6 "status": "completed",
7 "metadata": null,
8 "requester": null,
9 "steps": []
10}

Thread attributes

AttributeTypeDescription
objectstringObject type identifier. Always thread.
idstringUnique identifier for the thread.
created_atstringISO 8601 timestamp of when the thread was created.
updated_atstringISO 8601 timestamp of when the thread was last updated.
statusstringCurrent lifecycle status. One of running, completed, error, or interrupted.
metadataobject | nullInternal metadata associated with the thread.
requesterobject | nullRequester context associated with the thread.
stepsStep[]Execution steps emitted by the underlying agent state. Only included when requesting thread details with step state. See Step attributes.

Status values

StatusDescription
runningThe thread is active and processing a run.
completedAll runs in the thread have completed.
errorA run in the thread encountered an error.
interruptedA run in the thread has paused and is waiting for input.
Get a demo
Contact your account manager or contact sales to inquire about access.