Diska
Campaigns

List campaigns

Lists the organization's campaigns, newest first, with each one's indicators.
GET https://api.diska.ai/v1/campaigns

Scope: campaigns:read

Parameters

Query string

NameTypeRequiredDescription
statusstring | nullNoOnly campaigns in this state. One of: draft, scheduled, running, paused, completed, cancelled. Up to 20 characters.
limitintegerNoHow many per page. Between 1 and 100. Default: 50.
offsetintegerNoHow many to skip. Minimum 0. Default: 0.

Examples

curl "https://api.diska.ai/v1/campaigns" \
  -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.

GEThttps://api.diska.ai/v1/campaigns
Starts with dsk_. It stays in this browser tab only.
query
query
query
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
itemsarrayThe campaigns.
items[].idstringCampaign ID.
items[].namestringName.
items[].statusstringdraft, scheduled, running, paused, completed or cancelled.
items[].agent_idstring | nullAgent.
items[].agent_namestring | nullAgent name.
items[].phone_number_idstring | nullLine used.
items[].phone_numberstring | nullLine number.
items[].scheduleobjectSchedule.
items[].schedule.start_atstring | nullStart (ISO 8601 with time zone), or null to begin when started.
items[].schedule.timezonestringTime zone of the windows. Default: Africa/Luanda.
items[].schedule.windowsarrayWindows per weekday. With no windows, it dials within contact hours.
items[].schedule.max_duration_daysintegerDays the campaign may last; at the end, what is left is cancelled. Between 1 and 90. Default: 7.
items[].limitsobjectLimits.
items[].limits.max_concurrencyintegerSimultaneous calls of the campaign. Between 1 and 50. Default: 2.
items[].limits.reserved_capacityintegerOrganization concurrent calls kept free for other calls. Between 0 and 50. Default: 1.
items[].limits.max_attemptsintegerAttempts per recipient; only unanswered or busy calls are retried. Between 1 and 3. Default: 1.
items[].limits.retry_delay_minutesintegerMinutes between attempts. Between 15 and 1440. Default: 60.
items[].limits.budget_minutesinteger | nullMaximum minutes; the campaign pauses before exceeding them. Between 1 and 100000.
items[].pause_reasonstring | nullWhy it is paused: manual, budget_exhausted, quota_exhausted or emergency_stop.
items[].waiting_reasonstring | nullWhy it is not dialling right now, for example outside_window or no_capacity. One of: outside_window, not_started, no_capacity, capacity_not_configured, line_unavailable, outbound_disabled, agent_unavailable, number_unavailable, halted.
items[].next_window_atstring | nullWhen the next window opens.
items[].deadline_atstring | nullEnd of the maximum duration.
items[].created_atstring | nullCreation date (ISO 8601).
items[].started_atstring | nullWhen it was started.
items[].completed_atstring | nullWhen it finished.
items[].cancelled_atstring | nullWhen it was cancelled.
items[].statsobjectIndicators.
items[].stats.totalintegerRecipients. Default: 0.
items[].stats.pendingintegerLeft to call. Default: 0.
items[].stats.in_flightintegerDialling or in a call. Default: 0.
items[].stats.completedintegerCall placed (answered, not answered or busy). Default: 0.
items[].stats.failedintegerCould not be called. Default: 0.
items[].stats.cancelledintegerCancelled. Default: 0.
items[].stats.excludedintegerOn the do-not-call list. Default: 0.
items[].stats.calls_startedintegerAttempts sent (each retry counts). Default: 0.
items[].stats.answeredintegerAnswered. Default: 0.
items[].stats.no_answerintegerNot answered. Default: 0.
items[].stats.unavailableintegerBusy or unavailable. Default: 0.
items[].stats.answer_ratenumber | nullAnswered ÷ (answered + not answered + unavailable).
items[].stats.total_duration_secondsintegerTotal duration of answered calls. Default: 0.
items[].stats.progressnumberRecipients in a final state ÷ total. Default: 0.
items[].stats.cost_kznumber | nullCost in kwanzas, only when a rate is configured.
items[].stats.with_post_callintegerCalls with a post-call result. Default: 0.
totalintegerTotal campaigns.
limitintegerPage size.
offsetintegerThis page's offset.
{
  "items": [
    {
      "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
      "name": "Exemplo",
      "status": "draft",
      "agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
      "agent_name": "Recepção",
      "phone_number_id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
      "phone_number": "+244900000000",
      "schedule": {
        "start_at": "2026-10-25T18:40:00Z",
        "timezone": "Africa/Luanda",
        "windows": [
          {}
        ],
        "max_duration_days": 7
      },
      "limits": {
        "max_concurrency": 2,
        "reserved_capacity": 1,
        "max_attempts": 1,
        "retry_delay_minutes": 60,
        "budget_minutes": 0
      },
      "pause_reason": "manual",
      "waiting_reason": "outside_window",
      "next_window_at": "2026-10-25T18:40:00Z",
      "deadline_at": "2026-10-25T18:40:00Z",
      "created_at": "2026-10-25T18:40:00Z",
      "started_at": "2026-10-25T18:40:00Z",
      "completed_at": "2026-10-25T18:40:01Z",
      "cancelled_at": "2026-10-25T18:40:00Z",
      "stats": {
        "total": 1,
        "pending": 0,
        "in_flight": 0,
        "completed": 38,
        "failed": 3,
        "cancelled": 1,
        "excluded": 0,
        "calls_started": 0,
        "answered": 0,
        "no_answer": 0,
        "unavailable": 0,
        "answer_rate": 0,
        "total_duration_seconds": 0,
        "progress": 0,
        "cost_kz": 0,
        "with_post_call": 0
      }
    }
  ],
  "total": 1,
  "limit": 50,
  "offset": 0
}

Errors

This endpoint has no errors of its own.

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

Copyright © 2026