Delete a thread
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.
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.
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 delete.
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/inference/threads/string"Rename a thread PATCH
Replaces the thread's title. The rename is total, not incremental.
Download an attachment's bytes GET
Returns the raw bytes of an attachment that belongs to a message on a thread the caller owns. The Content-Type is the MIME type the client uploaded. The endpoint 404s when the thread, message, or attachment is not found for the caller, so the id cannot be used to fetch another user's file.