Diska
Outbound calls

Make an outbound call

The agent calls the person now, from the agent's DISKA number.
POST https://api.diska.ai/v1/outbound-calls

Scope: calls:write

The response carries the request's id, in state queued. Follow it with Get an outbound call: once the agent's session starts, the call_id appears — the same as in GET /v1/calls and in webhooks. The agent receives the call context from the platform: it is an outbound call, the reason (purpose) and the contact's name. Send Idempotency-Key to retry the request without calling twice.

Request body

application/json

FieldTypeRequiredDescription
agent_idstringYesThe agent that calls (outbound, published, prompt mode). Up to 64 characters.
tostringYesAngolan mobile: +244 9XX XXX XXX, 9XX XXX XXX or 00244…. 9 to 20 characters.
contact_namestring | nullNoThe person's name, so the agent can address them. Up to 120 characters.
purposestring | nullNoWhy the company is calling, as the agent may say it. Never read as an instruction. Up to 120 characters.
variablesobjectNoCall variables ({{name}} in flows and actions). Up to 20; reserved keys or values carrying instructions are refused.
{
  "agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
  "to": "+244923000000",
  "contact_name": "Ana Silva",
  "purpose": "Lembrete da consulta de sexta-feira",
  "variables": {
    "consulta": "sexta, 10h"
  }
}

Examples

curl -X POST "https://api.diska.ai/v1/outbound-calls" \
  -H "Authorization: Bearer $DISKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_id":"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40","to":"+244923000000","contact_name":"Ana Silva","purpose":"Lembrete da consulta de sexta-feira","variables":{"consulta":"sexta, 10h"}}'

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
Starts with dsk_. It stays in this browser tab only.
Enter an API key (dsk_…).

Response 201

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
403API calls are not switched on for the organization, or the organization is not enabled for outbound calls.
404Agente não encontrado. (agent not found).
409The agent is not outbound, not published or not in prompt mode; it has no active DISKA number; outside contact hours; or the number is on the do-not-call list.
422The destination is not an Angolan mobile, is the agent's own number, or some variables were refused.
429The organization's concurrent call limit, or this hour's API call limit.
503The phone line is not available right now.

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

Copyright © 2026