Diska
Campaigns

Add recipients

Adds up to 1000 recipients per request (up to 5000 per campaign).
POST https://api.diska.ai/v1/campaigns/{campaign_id}/recipients

Scope: campaigns:write

Repeated numbers and repeated external_id values are skipped, so you can retry the request. Numbers on the do-not-call list become excluded. The response counts what was added, duplicated, excluded and invalid (with each one's reason).

Parameters

Path

NameTypeRequiredDescription
campaign_idstringYesThe campaign's ID.

Request body

application/json

FieldTypeRequiredDescription
recipientsarrayYesThe recipients (1 to 1000).
recipients[].phonestringYesAngolan mobile. 3 to 40 characters.
recipients[].namestring | nullNoName, so the agent can address the person. Up to 120 characters.
recipients[].emailstring | nullNoEmail. Up to 254 characters.
recipients[].variablesobjectNoCall variables.
recipients[].external_idstring | nullNoYour own ID; a repeat is skipped. Up to 120 characters.
{
  "recipients": [
    {
      "phone": "+244923000000",
      "name": "Ana Silva",
      "external_id": "crm-1042",
      "variables": {
        "consulta": "sexta, 10h"
      }
    },
    {
      "phone": "+244924000000",
      "name": "João Neto",
      "external_id": "crm-1043"
    }
  ]
}

Examples

curl -X POST "https://api.diska.ai/v1/campaigns/<campaign_id>/recipients" \
  -H "Authorization: Bearer $DISKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipients":[{"phone":"+244923000000","name":"Ana Silva","external_id":"crm-1042","variables":{"consulta":"sexta, 10h"}},{"phone":"+244924000000","name":"João Neto","external_id":"crm-1043"}]}'

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/campaigns/{campaign_id}/recipients
Starts with dsk_. It stays in this browser tab only.
path
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
addedintegerAdded.
duplicatesintegerSkipped as duplicates.
excludedintegerOn the do-not-call list.
invalidarrayRefused, with the reason.
invalid[].rowintegerPosition in the request (from 1).
invalid[].phonestringNumber sent.
invalid[].reasonstringReason.
warningsarrayAdded with warnings (for example, variables dropped).
warnings[].rowintegerPosition in the request (from 1).
warnings[].phonestringNumber sent.
warnings[].reasonstringReason.
totalintegerCampaign recipients after the request.
{
  "added": 0,
  "duplicates": 0,
  "excluded": 0,
  "invalid": [
    {
      "row": 0,
      "phone": "…",
      "reason": "…"
    }
  ],
  "warnings": [
    {
      "row": 0,
      "phone": "…",
      "reason": "…"
    }
  ],
  "total": 1
}

Errors

CodeWhen
404Campaign not found.
409The campaign already ended or was cancelled.

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

Copyright © 2026