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

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

Response example

{
"data": [
{
"id": 15,
"name": "Regular campaign 1",
"type": "regular",
"is_active": true,
"for_confirm": false,
"ui_tags": [
"B2C"
],
"groups": [
{
"id": 1,
"name": "subaccount"
}
]
},
{
"id": 78,
"name": "Regular campaign 2",
"type": "regular",
"is_active": false,
"for_confirm": false,
"ui_tags": [
"B2C"
],
"groups": [
{
"id": 1,
"name": "subaccount"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 3
}

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