Hang up a live call
Durably records the hangup intent, asks the call-bound provider to terminate the live call, and returns 200 only after provider confirmation or when the call is already terminal.
A scheduled reconciliation heals the related outbound job and attempt after commit.
Failures are never reported as success
A provider failure does not falsely mark the call ended. Retryable 502, 503 and 504 errors may be retried with the same Idempotency-Key, as directed by error.details.
Evaluation calls and calls from another workspace are deliberately indistinguishable from missing calls.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255The provider confirmed termination or the call was already terminal.
application/json- response
Closed action result for a confirmed hangup or terminal no-op.
call_id*stringuuidstatus*string"ended""failed"changed*booleanTrue only when this request transitioned the call to ended.
provider_confirmation*string"confirmed""already_terminal"reconciliation_status*stringScheduled means durable outbound job and attempt healing continues after commit.
"not_applicable""scheduled"curl -X POST 'https://api.kejue.co/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08/hangup' \ -H 'Idempotency-Key: string'{ "call_id": "11111111-1111-4111-8111-111111111111", "status": "ended", "changed": true, "provider_confirmation": "confirmed", "reconciliation_status": "scheduled"}