Get campaign description

Retrieve the full details of a specific campaign by ID. This API is used to fetch all configured campaign settings and values, including its status, dialer parameters, and agent group assignments.

This API is used to fetch all configured campaign settings and values, including its status, dialer parameters, and agent group assignments.

Prerequisites

  • You must have access to your contact center API key.
  • You must know the campaign ID of the campaign you wish to retrieve.

Endpoint

GET /api/v1/campaigns/{campaign_id}

Path parameters

ParameterDescriptionTypeRequired
campaign_idThe numeric ID of the campaign to retrieve.numberYes

Authentication

This endpoint requires authentication using the Call Center Bearer Token. The token must be included in the request header:

Authorization: Bearer {callcenter_token}

Response

Returns the complete configuration and status of the specified campaign.

FieldDescriptionType
idUnique campaign ID.number
nameName of the campaign.string
statusCurrent status of the campaign (active, paused, completed, etc.).string
dialer_modeDialer mode used for the campaign.string
assigned_agent_group_idsList of agent group IDs assigned to the campaign.array
start_timeTimestamp indicating when the campaign starts.string (ISO 8601)
end_timeTimestamp indicating when the campaign ends.string (ISO 8601)
timezoneTimezone of the campaign’s schedule.string
max_attemptsMaximum number of contact attempts per number.number
caller_idCaller ID used for outbound dialing.string
wrapup_timeConfigured wrap-up time between calls, in seconds.number
retry_strategyStrategy used to retry failed calls.object
created_atTimestamp of when the campaign was created.string
updated_atTimestamp of the last update to the campaign.string

The full structure of the response may vary depending on the dialer mode or campaign type.

Response example

{
  "id": 12345,
  "name": "Product Launch Follow-up",
  "status": "active",
  "dialer_mode": "predictive",
  "assigned_agent_group_ids": [3, 7],
  "start_time": "2024-10-01T09:00:00Z",
  "end_time": "2024-10-05T17:00:00Z",
  "timezone": "America/New_York",
  "max_attempts": 3,
  "caller_id": "15551234567",
  "wrapup_time": 30,
  "retry_strategy": {
    "delay_seconds": 60,
    "max_retries": 2
  },
  "created_at": "2024-09-28T15:22:10Z",
  "updated_at": "2024-10-01T08:59:00Z"
}

Errors

CodeMessageDescription
401UnauthorizedMissing or invalid bearer token.
404Campaign not foundNo campaign exists with the specified ID.

See also