Rename a thread
Replaces the thread's title. The rename is total, not incremental.
Replaces the thread's title. The rename is total, not incremental.
Authorization
bearerAuth 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
Path Parameters
The id of the thread to rename.
Request Body
application/json
The new title.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/inference/threads/string" \ -H "Content-Type: application/json" \ -d '{ "title": "string" }'{ "id": "string", "title": "string", "model": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Read a thread and its messages GET
Returns one thread the caller owns, plus every message in it in order. Attachment metadata is included in the message entries; the bytes are fetched via a separate endpoint so a client that does not need them does not pay the bandwidth.
Delete a thread DELETE
Removes the thread and every message and attachment in it. The operation is idempotent: a missing thread returns 404, a thread owned by a different user also returns 404 so the endpoint cannot be used to probe other users' ids.