Skip to content

Cancel a queued or active call

POST /calls/{call_id}/cancel

https://api.voygr.tech/calls/{call_id}/cancel

Open in playground

Overview

Cancel a call that has not finished: queued, dialing or in progress. The call ends with outcome failed_cancelled. Returns {"cancelled": true} when it was cancelled, and {"cancelled": false} for a call that already finished (or reached its own outcome first), an unknown call_id or another key's call. It never returns 404, so it is safe to retry. Cancelling is free before anyone answers and within the first 30 seconds after the callee answers; cancelling 30 seconds or more after the callee answered is charged 10 credits.

Authentication

  • API key in header X-API-Key: Your customer API key (pk_live_...), sent on every request. Self-serve at https://api.voygr.tech/checkout.

Parameters

NameLocationRequiredTypeDescription and constraints
call_idpathrequiredstring

Responses

200

Successful Response

application/json

Schema: CancelResponse

alreadyterminal

{
  "cancelled": false
}

401

Missing or invalid X-API-Key.

application/json

X-API-Key header absent

{
  "detail": {
    "error": "API key required"
  }
}

X-API-Key doesn't resolve to an active key

{
  "detail": {
    "error": "invalid API key"
  }
}

Schemas

CancelResponse

Type: object

FieldTypeRequiredDescription and constraints
cancelledbooleanrequired