Skip to main content
POST
/
api
/
chat
/
cancelWaitingResponse
cURL
curl -X POST "https://app.cotool.ai/api/chat/cancelWaitingResponse" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chatId":"string","toolCallId":"string"}'
{
  "success": true,
  "message": "<string>"
}

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 cancelling a waiting user response prompt from the UI

chatId
string<uuid>
required

Unique identifier of the chat with the waiting prompt

toolCallId
string
required

The tool call ID of the waiting prompt to cancel

Response

200 - application/json

Successful response

Response indicating whether the waiting prompt was cancelled

success
boolean
required

Whether the cancellation was successfully processed

message
string

Error or status message