Skip to main content
POST
/
api
/
chat
/
interrupt
cURL
curl --request POST \
  --url https://app.cotool.ai/api/chat/interrupt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chatId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Body

application/json

Request body for interrupting an ongoing chat stream

chatId
string<uuid>
required

Unique identifier of the chat to interrupt

agentId
string<uuid>

Unique identifier of the agent to interrupt

Response

200

Successful response - no content