Skip to main content

Get trigger campaigns list

Description

Retrieves trigger campaigns list.

Request URL

Method: POST

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

Request parameters

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

Request example

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

Response example

{
"data": [
{
"id": 12,
"name": "New trigger campaign 3",
"type": "api_call",
"is_active": true,
"for_confirm": false,
"ui_tags": [],
"groups": [
{
"id": 0,
"name": "main"
}
]
},
{
"id": 14,
"name": "New planetary campaign",
"type": "api_call",
"is_active": true,
"for_confirm": false,
"ui_tags": [],
"groups": [
{
"id": 1,
"name": "subaccount"
}
],
"providers": [
"google",
"mozilla",
"safari",
"safari-native",
"firefox-firebase",
"chrome-firebase",
"opera-firebase",
"yandex-firebase",
"samsung-firebase",
"android-firebase",
"ios-firebase",
"ios-apns",
"yandex-Appmetrica-device-id-ios",
"yandex-Appmetrica-device-id-android",
"yandex-Appmetrica-ios-ifa",
"yandex-Appmetrica-google-aid",
"yandex-Appmetrica-android-token",
"yandex-Appmetrica-ios-token",
"mr",
"android-huawei",
"ios-huawei",
"android-rustore"
]
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 41
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
idintTrigger campaign ID
namestringCampaign name
typestringTrigger type
for_confirmboolMessages with opt-in links flag
is_activeboolCampaign active flag
ui_tags[]StringTag list
groups[]StringGroup list