Skip to main content
POST
/
v1
/
mind
/
chat
/
{conversation_id}
/
cancel
Cancel Chat
curl --request POST \
  --url http://localhost:8000/v1/mind/chat/{conversation_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "data": null,
  "message": "<string>",
  "success": true
}
Cancels an in-flight reply. The open chat stream ends with a done event carrying cancelled: true, and the partial reply that already streamed is kept. A Redis flag signals the streaming worker, so cancellation works even when this request lands on a different replica than the one holding the open stream. Closing the SSE connection — an AbortController on the client — also stops generation.

Authorizations

Authorization
string
header
required

Enter your JWT access token

Path Parameters

conversation_id
string
required

Response

Successful Response

data
null
message
string | null
success
boolean
default:true