WhatsAble
API v1AI bots

Cancel a pending AI retry in a conversation

posthttps://api.whatsable.app/v1/conversations/{id}/ai/retry/cancel
Build a request to copy

This page never sends a request. Fill in the fields, then copy the request and run it from your server.

Request
curl -X POST 'https://api.whatsable.app/v1/conversations/string/ai/retry/cancel'

Cancels the reply the AI agent was going to retry after an error in this conversation, as the inbox's cancel does. Calling it with no retry pending is safe and answers cancelled: false.

Authorization

bearerAuth
headerAuthorizationBearer <nfy_live_<32 characters>>

An API key from Settings > API keys, sent as Authorization: Bearer <key>.

Path Parameters

id*string

The conversation id.

Length1 <= length <= 64

Header Parameters

Idempotency-Key?string

Any string up to 255 characters. A repeat with the same key and body answers the stored response; with another body, 409 idempotency_key_reused.

Lengthlength <= 255

Response Body

Whether a retry was cancelled, and the conversation.

application/json
  1. response

Whether a pending AI retry was cancelled, and the conversation as it now reads.

object*string
cancelled*boolean

True when a reply the AI agent was going to retry after an error is now cancelled. False when no retry was pending, or it had already started.

conversation*

One customer on one of the business numbers. One person writing to two numbers has two conversations.

Example Request
curl -X POST 'https://api.whatsable.app/v1/conversations/string/ai/retry/cancel'
Example Response
{  "object": "ai_retry_cancellation",  "cancelled": true,  "conversation": {    "object": "conversation",    "id": "cm2v8c1a00001qz8h4t5u6v7w",    "number_id": "cm2v8a1b20002qz8h9i0j1k2l",    "contact_id": "cm2v8k1a00001qz8h8x9y0z1a",    "contact_name": "Ana Pérez",    "last_message_preview": "Is my order ready?",    "last_message_at": "2026-10-20T19:51:21Z",    "last_inbound_at": "2026-10-20T19:51:21Z",    "last_outbound_at": "2026-10-20T18:00:00Z",    "awaiting_reply": true,    "window_expires_at": "2026-10-21T19:51:21Z",    "window_open": true,    "unread_count": 2,    "marked_unread": false,    "figures_to_check": 0,    "ai": {      "bot_id": "cm2v8b1a00001qz8h3j4k5l6m",      "status": "active"    },    "created_at": "2026-09-01T12:00:00Z",    "updated_at": "2026-10-20T19:51:21Z"  }}