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

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

Response example

{
"data": {
"content": [
{
"from_email": "",
"from_name": "John",
"message_id": 1,
"replyto_email": "",
"replyto_name": "",
"subject": "Welcome!"
},
{
"from_email": "",
"from_name": "Jane",
"message_id": 1,
"replyto_email": "",
"replyto_name": "",
"subject": "Welcome!"
}
],
"data_id": 1,
"data_type": "list",
"id": 1,
"update_time": "2010-10-20T00:00:00Z",
"updated_user": "John",
"is_active": false,
"is_completed": false,
"name": "Splittest",
"resource_id": 1,
"send_email_content": true,
"send_push_content": false,
"send_sms_content": false,
"status": "Inactive",
"subid": "API",
"type": "splittest",
"virtual_sender_id": 1
},
"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