---
title: "Create Agent Thread"
method: POST
path: "/agent/threads"
tags: ["agent"]
---

# Create Agent Thread

`POST /agent/threads`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/agent/threads`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Mint a new thread id. Neither the Postgres checkpointer nor the
``agent_threads`` row is created here — both are created lazily on the
first message (see ``ensure_thread`` in ``stream_agent_message``).

## Response `200`

Successful Response

- CreateThreadResponse
  - `thread_id` string, required

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
