Skip to main content
A thread is created against a published agent, then you post messages to it. Threads are partitioned by subject: a direct token sees its own, and a relay caller sees the subject it names in Patchwork-Subject. A call that names no subject is refused. Created:
Listed (summary):
The first user message becomes the title (truncated). Listing returns the newest threads first and is cursor-paginated — 25 per page by default.

Attributes

uuid
required
Unique identifier for the thread.
string
Conversation title. Defaults to "New conversation" until the first message.
string
The subject that owns this thread. From the token sub (direct) or Patchwork-Subject / subject_ref (relay). Opaque to Patchwork.
object
integer
Number of messages on the thread. List only.
object
Most recent message, content truncated to 120 characters. List only.
object
Present when a run is awaiting_input.
object
Set when a write is held at an approval gate. Carries the tool_call_id you pass to POST /v1/loom/runs/:run_id/confirm, plus a summary and risk for your approval UI. See Confirmations.
object
Present when a run is awaiting_outcome.
timestamp
When the thread was opened.
timestamp
When the thread last changed.

Endpoints

  • POST /v1/loom/threads — create a thread
  • GET /v1/loom/threads — list threads, with the pending_* fields