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

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

Response example

{
"data": [
{
"id": 3,
"name": "New campaign 1",
"type": "broadcast",
"is_active": false,
"for_confirm": false,
"ui_tags": [],
"groups": [
{
"id": 0,
"name": "main"
}
]
},
{
"id": 5,
"name": "New campaign 2",
"type": "broadcast",
"is_active": false,
"for_confirm": false,
"ui_tags": [],
"groups": [
{
"id": 0,
"name": "main"
}
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 17
}

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