List campaigns

API Docs by APIMATIC
API OverviewCampaigns

List campaigns
#

List Campaigns
#

The List Campaigns API is part of Voiso's Campaigns APIs. Use it to obtain a list of all campaign names, IDs, and other metadata. The API description is here.

Prerequisites
#

You must have at least one campaign configured for your contact center.

Making requests
#

The List_campaigns API requires the base URL (cluster_id) and the contact center API key. The following table lists the optional filters you can use to refine your request.

ParameterDescriptionTypeRequiredNotes
filter[name]A campaign namestringOptional
filter[strategy]A campaign strategy typestringOptionalValid values are: simple, advanced, and predictive_ai
filter[status]The current status of the campaignstringOptionalValid values are: draft, active, paused, stopping, completed, processing, stopped, auto_paused, pausing, auto_pausing, import_error
filter[method]The method of uploading numbers to the campaignstringOptionalValid values are: csv, bitrix_crm, dynamics_crm, falcon_crm, hubspot_crm, panda_crm, popcorn_crm, proftit_crm, puma_crm, salesforce_crm, and zoho_crm
filter[live]Whether or not the campaign type is liveBooleanOptional

Make a request to return a list of campaigns. For example:

GET /api/dialer/v1/campaigns?filter[name]=campaign%20name&filter[strategy]=advanced&filter[status]=active&filter[method]=csv&filter[live]=false

HTTP/1.1
Host: cluster1.voiso.com
Accept: application/json
Authorization: Bearer 63c526cqwg05ce85e8bwtbt208943f93131c9d0d1d237b7c

JSON request example:

{
  "method": "GET",
  "url": "https://cluster1.voiso.com/api/dialer/v1/campaigns",
  "headers": {
    "Accept": "application/json",
    "Authorization": "Bearer 63c526cqwg05ce85e8bwtbt208943f93131c9d0d1d237b7c"
  },
  "params": {
    "filter[name]": "campaign name",
    "filter[strategy]": "advanced",
    "filter[status]": "active",
    "filter[method]": "csv",
    "filter[live]": "false"
  }
}

Response
#

The following table describes the elements of the response.

ElementDescriptionTypeNotes
idThe ID assigned to the campaign when it was created.numberThis number corresponds to the number in the ID column of the Dialer campaigns page.
nameThe name of the campaign.string
statusThe current status of the campaignstringValid values are: draft, active, paused, stopping, completed, processing, stopped, auto_paused, pausing, auto_pausing, import_error
strategyA campaign strategy typestringValid values are: simple, advanced, and predictive_ai
methodThe method of uploading numbers to the campaignstringValid values are: csv, bitrix_crm, dynamics_crm, falcon_crm, hubspot_crm, panda_crm, popcorn_crm, proftit_crm, puma_crm, salesforce_crm, and zoho_crm
liveWhether or not the campaign type is liveBoolean
created_atThe date and time that the campaign was created.stringISO 8601 format

Response sample
#

{
    "campaigns": [
        {
            "id": 25735,
            "name": "Canada Campaign",
            "status": "paused",
            "strategy": "simple",
            "method": "file_import",
            "live": true,
            "created_at": "2023-10-20T13:06:09.310178+00:00"
        },
        {
            "id": 25473,
            "name": "Wasson Campaign October",
            "status": "completed",
            "strategy": "simple",
            "method": "hubspot_crm",
            "live": false,
            "created_at": "2023-10-03T13:33:28.746311+00:00"
    ]
    "metadata": {
        "limit": 25,
        "offset": 0,
        "total": 2
    }
}

Troubleshooting
#

The following issues are sometimes encountered:

The API key specified is invalid
#

The List campaigns API uses the contact center API key to validate the request. If you see this error, "error": "Invalid API key", check that you are using the correct contact center API key. For more information about API keys, refer to Authentication.


Was this page helpful?

Thank you! Your feedback has been received.