Skip to main content
GET
/
threads
List threads
curl --request GET \
  --url https://api.smith.langchain.com/v1/deepagents/threads \
  --header 'X-Api-Key: <api-key>'
{ "threads": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "title": "<string>", "has_interrupts": true, "state_updated_at": "2023-11-07T05:31:56Z" } ], "next_cursor": "<string>" }

Authorizations

X-Api-Key
string
header
default:LANGSMITH_API_KEY
required

Query Parameters

agent_id
string<uuid>
required

Managed Deep Agent ID.

page_size
integer
default:20

Items per page. Defaults to 20.

Required range: 1 <= x <= 20
cursor
string

Opaque pagination cursor returned by the previous list call.

status
enum<string>

Filter to a single thread status.

Available options:
idle,
busy,
interrupted,
error
is_pinned
boolean

Filter by pinned state.

test_run
boolean
default:false

Return test-run threads instead of non-test threads. Defaults to false.

requires_attention
boolean

Return only threads that need user action. Cannot be combined with status.

Response

Threads returned.

threads
object[]
next_cursor
string | null

Cursor for the next page, or null when there are no more pages.