Skip to main content
GET

Overview

List the campaigns created by the user who owns the API key. Deleted campaigns are never returned. Results are paginated and sorted by last update, newest first.

Prerequisites

  • An API key for your workspace

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
Your user ID. The path needs a value, but it isn’t used to filter: campaigns are always returned for the user who owns the API key.
integer
default:"1"
Page number.
integer
default:"10"
Number of campaigns per page.
Case-insensitive text matched against the campaign name and queue_status. Partial matches are returned.
string
Only return campaigns of this channel: voice, video, whatsapp or web_chat. If omitted, campaigns of every channel are returned.
string
Filter by a group of statuses. What each value matches depends on channel_type:
  • Voice (or channel_type omitted):
    • active – in-progress, plus completed campaigns updated in the last 2 hours. in-progress campaigns are listed first.
    • inactive – pending, paused, freezed or failed.
    • completed – completed campaigns last updated more than 2 hours ago.
  • Video and web chat: active (link not revoked) or inactive (link revoked).
  • WhatsApp: active or inactive.
Any other value, or no value, returns every status.
string
Only return campaigns with exactly this queue_status, for example paused.
string
Only return campaigns of this type: outbound, inbound or mixed.
string
Only return campaigns created at or after this date (ISO 8601).
string
Only return campaigns created at or before this date (ISO 8601).

Response

array[object]
required
The campaigns on this page.
string
required
Campaign ID.
string
required
Campaign name.
string
Campaign type: outbound, inbound or mixed.
string
Channel, for video, WhatsApp and web chat campaigns. Voice campaigns may not have this field.
string
required
Campaign status. For voice campaigns: pending, in-progress, paused, freezed (outside the calling window), completed or failed.
integer
Number of contacts (leads) in the campaign.
integer
Legacy counter of dials placed. Use callStats instead.
integer
Legacy counter of dials that lasted 10 seconds or more. Use callStats instead.
object
Per-contact call statistics for the campaign’s whole history. They are updated every few minutes, so recent calls may not be counted yet. Missing when no statistics are available yet.
  • leads – contacts counted in the statistics
  • leadsConnected – of those, contacts with a connected call
  • connectivityPct – leadsConnected as a percentage of leads
  • dials – total call attempts
  • basis – always lead
  • legacy – the totalCalls, callsPicked and callsCompleted counters
string
When the campaign was created (ISO 8601).
string
When the campaign was last updated (ISO 8601).
object
required
Pagination details: total, page, limit, totalPages, hasNextPage and hasPrevPage. page and limit are returned as strings when you pass them in the query.

Error Handling

  • 401 Unauthorized – Missing or invalid API key.
  • 500 Internal Server Error – Unexpected server error.
When no campaign matches, the response is 200 with an empty batches array.
Use GET /api/call/batch-details/{batchId} to get the details and calls of one campaign.