Cancel a call
Stops a queued call (including one waiting between retries) immediately so no further attempts are placed, or hangs up an in-progress call without retrying. Canceled calls that were not answered do not count towards your quota. Idempotent if the call is already canceled; returns 409 call_not_cancelable if it already finished (answered, not_answered, or failed).
apiKeyAuthorizationBearer <token>Your API key, for example Authorization: Bearer ch_live_xxxxxxxxxxxx. Create keys in your dashboard under API keys.
id*stringCall ID returned when you created the call.
The canceled call (or in_progress while the active call hangs up).
application/json- response
A call and its result. The webhook body and GET /calls/{id} return exactly this object.
id*stringCall ID.
status*stringqueued: waiting or between retries. in_progress: ringing or on the call. answered: the person picked up (counts towards your plan). not_answered: no answer, busy or voicemail after all retries (free). failed: invalid number or technical error (free). canceled: stopped from the dashboard before anyone answered (free).
"queued""in_progress""answered""not_answered""failed""canceled"option_id*|The id you gave the chosen answer, wherever it sits in the menus. null if nothing was chosen. Use this in your code.
option_label*|Label of the chosen option, or null if nothing was chosen.
answer_method*|How the person answered: keypad (pressed a phone key), voice (spoke their answer), or null if no option was chosen.
"keypad""voice"nullanswer_transcript*|Raw speech-to-text transcript of what the person said when answering by voice (or the last unrecognized speech if no option was chosen). null for keypad answers or after the 60-day retention window.
metadata*The metadata you sent, unchanged.
curl -X POST 'https://api.callhuman.es/v1/calls/call_x9f2k/cancel'{ "id": "call_x9f2k", "status": "canceled", "option_id": null, "option_label": null, "answer_method": null, "answer_transcript": null, "metadata": { "booking_id": "bk_1042" }}Call result Webhook
Sent to your `webhook_url` as `POST` with `Content-Type: application/json` when the call reaches a final status (`answered`, `not_answered`, `failed` or `canceled`). Verify it: compute HMAC-SHA256 of the raw request body with your project's webhook secret (dashboard → Settings), encode it as lowercase hex (no prefix) and compare it in constant time with the `CallHuman-Signature` header. Respond with a 2xx within 10 seconds; otherwise we retry up to 5 times (after 1, 5, 15, 30 and 60 minutes), so the same result may arrive more than once — deduplicate by `id`.
Create a call POST
Calls the person and reads the message. With `options`, the person answers by keypress or voice and you get the chosen option back. Only transactional calls are allowed: before calling we check what the person will hear and give it a spam score from 0 to 100 %: from 80 % the call is rejected with `call_not_allowed` (marketing, sales, scams and unsolicited messages). See https://www.callhuman.es/docs/allowed-use. Validation order: 401 → 402 → 403 → 409 → 429 → 422.