SnozeDevelopers
API referenceAgent

Delete an agent chat

Cancels any turn still streaming on the chat, then soft-deletes it and returns its id. Requires a Clerk session for a workspace member with the `ai:write` permission; a chat that does not exist, or belongs to another user, is reported as not found.

DELETE
/v1/workspaces/{workspaceId}/agent/chats/{chatId}
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
chatId*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/agent/chats/string"
{  "data": {    "id": "string"  }}