putty
API ReferenceInference

Create a new thread

Mints a new thread for the authenticated caller. The thread starts with no messages; the title is set when the first user message lands. The optional `model` field locks the thread to that model id; threads default to the server's default model when the field is omitted.

POST
/inference/threads

Mints a new thread for the authenticated caller. The thread starts with no messages; the title is set when the first user message lands. The optional model field locks the thread to that model id; threads default to the server's default model when the field is omitted.

Authorization

bearerAuth
AuthorizationBearer <token>

A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.

In: header

Request Body

application/json

The thread to create. The body is optional; a thread with the default model is created when the body is empty.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/inference/threads" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "title": "string",  "model": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}