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

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

Response example

{
"data": {
"name": "Regular campaign name",
"is_active": true,
"data_id": 2,
"data_type": "segment",
"content": [
{
"subject": "Hi!",
"from_email": "broadcast@altcraft.com",
"from_name": "",
"replyto_email": "broadcast@altcraft.com",
"replyto_name": "",
"message_id": 15
}
],
"send_channel": "email",
"channel": "email",
"resource_id": 20,
"subid": "",
"limit": 10,
"aglimit_count": 0,
"aglimit_percent": 0,
"start_schedule": {
"start_mins": [
10
],
"start_hours": [
12
],
"start_mdays": [],
"start_wdays": [],
"start_months": [],
"start_years": [],
"tz": "",
"profile": false,
"losers": false
},
"for_confirm": false,
"policy_id": 0,
"description": "",
"virtual_sender_id": 1,
"is_random_tracking_prefix": false,
"custom_tracking_domains": [
"trk.example.com",
"trk.example.org"
],
"watcher_list_id": 0,
"watcher_limit": 0,
"blind_carbon_copy": [],
"unconditional_sending": false,
"skip_unique_checking": false,
"sub_cats_filter": [],
"sub_fields_filter": null,
"id": 15,
"updated_user": "roman",
"update_time": "2024-04-03T15:35:54.024Z"
},
"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)