Skip to main content

Get regular campaigns list

Description

Retrieves regular campaigns list.

Request URL

Method: POST

https://example.com/api/v1.1/campaigns/regulars/list/

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
from_idint11768NoThe first campaign in the list ID.
By default –1
limitint10NoCampaigns list limit.
By default – 1000
formatstring"json"NoResponse data format.
By default – json
is_activebooltrueNoRetrieve active campaigns only
ui_tags[]String[ "tag1", "tag2" ]NoList of tags for search
By default – []
groups[]String[ "group1", "group2" ]NoList of access groups
By default – []
groups_id[]int[ 0, 1 ]NoList of group IDs
By default – []

Request example

{
"limit": 2,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"data": [
{
"id": 11929,
"is_active": true,
"name": "Regular 2",
"type": "regular"
},
{
"id": 11930,
"is_active": false,
"name": "Regular 1",
"type": "regular"
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 5470
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
idintCampaign ID
namestringCampaign name
typestringCampaign type
is_activeboolCampaign active flag
for_confirmboolMessages with opt-in link flag
total_countintTotal campaign count
ui_tags[]StringTag list
groups[]StringGroup list