From Bright Pattern Documentation
Contents
- Introduction
- API Specification
- General Information
- 1 Get campaigns
- Add a record
- Add a number of records
- Update a record
- Query a record
- Delete all records
- Get completed records
- Get updated records
- Get all records
- Add records to DNC
- Replace records in DNC
List Management API Specification
Get campaigns
This returns the list of enabled campaigns, their current states, and calling lists associated with such campaigns.
URL
http[s]://<host>/admin/ws/t/<tenant_url>/campaign/getAll/
Method
GET
Returns
200 – Names of campaigns with current states and associated calling lists (content type: application/json)
Example
[ { "name": "CAMPAIGN1", "lists": ["LIST1", "LIST2"], "state": “RUNNING” }, … ]
If enabled campaigns do not exist, an empty array is returned.
Errors
400 – Bad request (missing mandatory fields or incorrect format)
401 – Authentication failed
403 – Authentication succeeded, but authorization failed (no privileges)