Skip to main content
POST
/
threads
Create a thread
curl --request POST \
  --url https://api.smith.langchain.com/v1/deepagents/threads \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "agent_id": "11111111-1111-1111-1111-111111111111",
  "options": {
    "test_run": false,
    "skip_memory_write_protection": false
  }
}
'
{ "id": "019e2d67-ff4d-7251-bce5-dfdec8e1991b", "agent_id": "", "status": "idle", "metadata": { "is_test_run": false, "ls_user_id": "33499cf9-4c02-49af-909d-b8f42e051eab", "skip_memory_write_protection": false, "tenant_id": "ebbaf2eb-769b-4505-aca2-d11de10372a4" }, "created_at": "2026-05-15T20:50:50.832351+00:00", "updated_at": "2026-05-15T20:50:50.832351+00:00" }

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
default:LANGSMITH_API_KEY
required

Body

application/json
agent_id
string<uuid>
required

Managed Deep Agent ID.

options
object

Response

Thread created.

id
string<uuid>
agent_id
string<uuid>
status
enum<string>
Available options:
idle,
busy,
interrupted,
error
metadata
object
created_at
string<date-time>
updated_at
string<date-time>