Diska
Outbound calls

Hang up an outbound call

Cancels a call that is still ringing, or ends one in progress.
POST https://api.diska.ai/v1/outbound-calls/{outbound_call_id}/hangup

Scope: calls:write

On a call that already ended it does nothing.

Parameters

Path

NameTypeRequiredDescription
outbound_call_idstringYesThe id returned when you created the call.

Examples

curl -X POST "https://api.diska.ai/v1/outbound-calls/<outbound_call_id>/hangup" \
  -H "Authorization: Bearer $DISKA_API_KEY"

Try it

Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.

POSThttps://api.diska.ai/v1/outbound-calls/{outbound_call_id}/hangup
Starts with dsk_. It stays in this browser tab only.
path
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
idstringThe call request's ID.
statusstringqueued, ringing, in_progress, ended, failed or cancelled.
failure_codestring | nullWhy it failed, for example destination_no_answer.
failure_messagestring | nullThe same reason, in words.
agent_idstringThe calling agent.
tostringNumber called.
from_numberstringDISKA number the person sees.
contact_namestring | nullContact name.
purposestring | nullWhy the company is calling.
call_idstring | nullThe call in GET /v1/calls/{call_id} and in webhooks, once the agent's session starts.
created_atstringWhen the request was made.
answered_atstring | nullWhen the person answered.
ended_atstring | nullWhen it ended.
{
  "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
  "status": "queued",
  "failure_code": "…",
  "failure_message": "…",
  "agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
  "to": "…",
  "from_number": "…",
  "contact_name": "…",
  "purpose": "…",
  "call_id": "8d0c6a3e-2f14-4b7a-9c55-1e3f0a6d2b81",
  "created_at": "2026-10-25T18:40:00Z",
  "answered_at": "2026-10-25T18:40:00Z",
  "ended_at": "2026-10-25T18:41:35Z"
}

Errors

CodeWhen
404Chamada de saída não encontrada. (not found).

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026