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>" }
Cancel a waiting user response prompt (e.g., from a Slack button prompt). This ends the agent run gracefully.
API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here
Bearer your_api_key_here
Request body for cancelling a waiting user response prompt from the UI
Unique identifier of the chat with the waiting prompt
The tool call ID of the waiting prompt to cancel
Successful response
Response indicating whether the waiting prompt was cancelled
Whether the cancellation was successfully processed
Error or status message
Was this page helpful?