Chat

Cancel a chat turn

POST
/api/v2/chat/{session_id}/cancel

Stop the turn the conversation is running. A turn inside a long model call stops when that call returns; its stream ends with cancelled, then done.

apiKey
headerAuthorizationBearer <token>

An API key, sk-syn- and 32 characters. On SynapseOrch Cloud an owner or admin makes it under Settings → Developer; on a self-hosted install, under Settings → API Keys.

session_id*string

The conversation, from the turn's answer.

Response Body

The cancel was requested.

application/json
  1. response
status?string
session_id?string
curl -X POST "https://api.synapseorch.com/api/v2/chat/chat_01a1205c3e8f7a2b9d4c6e1f0a3b5d7c/cancel" \  -H "Authorization: Bearer sk-syn-..."
{  "status": "cancellation_requested",  "session_id": "chat_01a1205c3e8f7a2b9d4c6e1f0a3b5d7c"}