POST GET campaigns/lookup
Get full details of a campaign record
* required
Parameters
| Name | Type | Description |
|---|---|---|
| campaignID | integer | Unique ID of a campaign. Required if campaignIDs is not provided. |
| campaignIDs | array[integer] |
Multiple campaignIDs. Requests that use this parameter will change the response data from a single object to an array of objects. Required if campaignID is not provided.
25
|
Response Data
Returns a fully populated campaign object, or an array of campaign objects if looking up multiple campaignIDs
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| campaignID | integer | Unique ID of campaign | |||||||||||||||||||||||||||||||||
| contentCounts | object |
Counts of content assigned to the campaign
|
|||||||||||||||||||||||||||||||||
| contentIDs | object |
IDs of content assigned to the campaign
|
|||||||||||||||||||||||||||||||||
| dateAdded | datetime | Date record was added | |||||||||||||||||||||||||||||||||
| dateModified | datetime | Date record was modified | |||||||||||||||||||||||||||||||||
| description | string | Description of campaign | |||||||||||||||||||||||||||||||||
| endDate | date | Last date of campaign | |||||||||||||||||||||||||||||||||
| metadata | object |
AI metadata associated with the campaign. Omitted for accounts with AI disabled.
|
|||||||||||||||||||||||||||||||||
| startDate | date | First date of campaign | |||||||||||||||||||||||||||||||||
| status | string | Current status of campaign. One of: Active, Inactive | |||||||||||||||||||||||||||||||||
| title | string | Title of campaign | |||||||||||||||||||||||||||||||||
| userID | integer | ID of system user the campaign belongs to (owner) |
Example Calls
Lookup campaign by ID
GET
/campaigns/lookup?campaignID=123
cURL
Copy
Response Data
Lookup multiple campaigns by array of IDs
POST
/campaigns/lookup
cURL
Copy
Response Data
API Console
The console uses production data, so BE CAREFUL!
GET
campaigns/lookup