Skip to main content

Get campaign information

Description

Retrieves detailed campaign information.

Request URL

Method: POST

https://example.com/api/v1.1/campaigns/get

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
By default – json
idint1YesCampaign ID

Request example

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

Response example

{
"data": {
"id": 118,
"name": "Daily weather notification",
"description": "",
"type": "regular",
"updated_user": "roman",
"update_time": "2024-05-20T09:17:53.362Z",
"is_active": false,
"is_completed": false,
"data_id": 1,
"data_type": "list",
"content": [
{
"subject": "",
"from_email": "",
"from_name": "",
"replyto_email": "",
"replyto_name": "",
"message_id": 21
}
],
"status": "Inactive",
"subid": "",
"virtual_sender_id": 2,
"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",
"android-huawei",
"ios-huawei",
"android-rustore"
],
"push_sending_mode": "fanout",
"resource_id": 26,
"channel": "push",
"for_confirm": false
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParametersTypeDescription
errorintError code
error_textstringError text
contentJSON arrayMessage templates list
data_idintAudience source ID
data_typestringAudience source type
idintCampaign ID
update_timestringDate the campaign was last edited
updated_userstringName of the user who edited the campaign
is_activeboolCampaign active flag
is_completedboolCampaign finished flag
namestringCampaign name
resource_idintResource ID
send_email_contentboolEmail channel active
send_push_contentboolPush channel active
send_sms_contentboolSMS channel active
push_sending_modestringPush notification sending mode (push channels only)
for_confirmboolMessages with opt-in link flag
statusstringCampaign status
subidstringCampaign SubID
typestringCampaign type
virtual_sender_idintVirtual sender ID
descrstringCampaign description