Skip to navigation

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
{
"object": "thread",
"id": "b1c2d3e4-5678-90ab-cdef-1234567890ab",
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:30:00.000Z",
"status": "completed",
"metadata": null,
"requester": null,
"steps": []
}

Thread attributes

AttributeTypeDescription
objectstringObject type identifier. Always thread.
idstring (uuid)Unique identifier for the thread.
created_atstring (date-time)ISO 8601 timestamp of when the thread was created.
updated_atstring (date-time)ISO 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.