Skip to main content

Get broadcasts list

Description

Retrieves broadcast campaigns list.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
from_idint2NoFirst in the list broadcast ID
By default – 1
limitint10NoResponse broadcast list limit
By default – 1000
formatstring"json"NoResponse data format
By default – json
typestring"broadcast"YesCampaign type
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 groups IDs
By default – []

Request example

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

Response example

{
"data": [
{
"id": 1,
"name": "New campaign1",
"type": "broadcast",
"is_active": false,
"for_confirm": false,
"ui_tags": [
"tag1",
"tag2"
],
"Groups": [
{
"Id": 1,
"Name": "subaccount"
}
]
},
{
"id": 2,
"name": "New campaign2",
"type": "broadcast",
"is_active": false,
"for_confirm": false,
"ui_tags": [
"tag3"
],
"Groups": [
{
"Id": 0,
"Name": "main"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 6
}

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 campaigns count
ui_tags[]StringList of tags
groups[]StringList of groups