Skip to main content

Get regular campaign information

Description

Retrieves a regular campaign detailed information.

Request URL

Method: POST

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

Request parameters

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

Request example

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

Response example

{
"data": {
"id": 4428,
"name": "Regular campaign name",
"is_active": false,
"data_id": 2416,
"data_type": "segment",
"content": [
{
"subject": "Hello",
"from_email": "",
"from_name": "",
"replyto_email": "",
"replyto_name": "",
"message_id": 4
}
],
"content_type": "",
"send_channel": "email",
"channel": "email",
"resource_id": 1,
"subid": "api_campaign",
"limit": 0,
"aglimit_count": 0,
"aglimit_percent": 0,
"start_schedule": {
"start_mins": [ 0 ],
"start_hours": [ 0 ],
"start_mdays": [ 1 ],
"start_wdays": [],
"start_months": [ 12 ],
"start_years": [ 2016 ]
},
"virtual_sender_id": 98,
"is_random_tracking_prefix": false,
"custom_tracking_domains": [],
"watcher_list_id": 0,
"watcher_limit": 0
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
idintCampaign ID
namestringCampaign name
is_activeboolCampaign active flag
resource_idintResource ID
data_idintAudience source ID
data_typestringAudience source type
contentJSON arrayMessage template object
send_channelstringSending channel
channelstringChannel
for_confirmboolMessages with opt-in link flag
subidstringCampaign SubID
start_scheduleJSON objectStart schedule object
limitintCampaign cycle limitation
aglimit_countintIncrease limit each cycle - number
agllimit_percentfloatIncrease limit each cycle - percent
policy_idintSending policy ID
push_sending_modestringPush notification sending mode (push channels only)
descrstringCampaign description
Smart settings
virtual_sender_idintVirtual sender ID
(Smart accounts)
is_random_tracking_prefixboolRandom tracking domain prefix
(Smart accounts)
custom_tracking_domainsJSON arrayTracking domains list
(Smart accounts)
blind_carbon_copyJSON arrayHidden copy email addresses
(Smart accounts)
unconditional_sendingboolSend messages regardless of subscription status
(Smart accounts)
watcher_list_idintCampaign watchers database ID
(Smart accounts)
watcher_limitintWatchers limit
(Smart accounts)