Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
    • Activate mailing
    • Deactivate mailing
    • Get mailing list
    • Get mailing information
    • Get mailing log
    • Clone mailing
    • Delete mailing
    • Get mailing status
    • Broadcast mailings
      • Get broadcasts list
      • Get broadcast information
      • Create broadcast mailing
      • Update broadcast mailing
      • Launch a broadcast mailing
    • Regular mailings
    • Trigger mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Mailings
  • Broadcast mailings
  • Create broadcast mailing
Documentation for version v74

Create broadcast mailing

Description​

Creates a new broadcast mailing.

Request URL​

Method: POST

https://example.com/api/v1.1/campaigns/broadcasts/add

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
namestring"Broadcast mailing name"YesMailing name
is_activebooltrueNoActivate mailing on creation
data_typestring"list"YesAudience source type
data_idint12YesAudience source ID
resource_idint24NoResource ID
contentJSON array
YesMessage template object
send_channelstring"email"
"sms"
"push"
YesSending channel
content_typestring"email"NoDeprecated. If you pass this parameter, the mailing will use the email channel for sending, no matter what value you specify. It is recommended to use send_channel.
send_email_contentbooltrueNoDeprecated. If you pass this parameter, the mailing will use the email channel for sending, no matter what value you specify. It is recommended to use send_channel.
send_push_contentbooltrueNoDeprecated. If you pass this parameter, the mailing will use the email channel for sending, no matter what value you specify. It is recommended to use send_channel.
send_sms_contentbooltrueNoDeprecated. If you pass this parameter, the mailing will use the email channel for sending, no matter what value you specify. It is recommended to use send_channel.
subidstring"Adv_1"NoMailing SubID
start_scheduleJSON object
NoStart schedule object
limitint0NoMailing cycle limitation
aglimit_countint0NoIncrease limit each cycle — number
agllimit_percentfloat99.0NoIncrease limit each cycle — percent
policy_idint1NoSending policy ID
push_sending_modestring"fanout" (default)
"last"
NoPush notification sending mode (push channels only)
attributesobject"season":"summer_2024"NoAssigned attributes and their values
Smart settings
virtual_sender_idint12NoVirtual sender ID
(Smart accounts)
is_random_tracking_prefixboolfalseNoRandom tracking domain prefix
(Smart accounts)
custom_tracking_domainsJSON array["trk.example.com", "trk2.example.com"]NoTracking domain list
(Smart accounts)
blind_carbon_copyJSON array["john@example.com", "george@example.com"]NoHidden copy email addresses
(Smart accounts)
unconditional_sendingbooltrueNoSend messages regardless of subscription status
(Smart accounts)
watched_list_idint12NoMailing watchers database ID
(Smart accounts)
watcher_limitint100NoWatchers limit
(Smart accounts)

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"virtual_sender_id": 5,
"content": [
{
"from_email": "example@example.com",
"from_name": "Victor",
"message_id": 15,
"replyto_email": "example@example.com",
"replyto_name": "Victoria",
"subject": "Hello"
}
],
"custom_tracking_domains": [
"trk.example.com",
"trk.example.org"
],
"data_id": 1,
"data_type": "list",
"is_active": true,
"limit": 1,
"name": "New broadcast",
"resource_id": 21,
"send_channel": "email",
"start_schedule": {
"start_hours": [
1,
2,
3,
4
],
"start_mins": [
1,
2,
3,
4
],
"start_mdays": [
1
],
"start_months": [
12
],
"start_wdays": [],
"start_years": [
2024
]
}
}
<xml>
<token>{{token}}</token>
<virtual_sender_id>5</virtual_sender_id>
<content array='true'>
<from_email>example@example.com</from_email>
<from_name></from_name>
<message_id>14</message_id>
<replyto_email>example@example.com</replyto_email>
<replyto_name></replyto_name>
<subject>Hello!</subject>
</content>
<custom_tracking_domains>trk.example.com</custom_tracking_domains>
<custom_tracking_domains>trk.example.org</custom_tracking_domains>
<data_id>1</data_id>
<data_type>list</data_type>
<is_active>true</is_active>
<limit>1</limit>
<name>Broadcast</name>
<resource_id>21</resource_id>
<send_channel>email</send_channel>
<start_schedule>
<start_hours>1</start_hours>
<start_hours>2</start_hours>
<start_hours>3</start_hours>
<start_hours>4</start_hours>
<start_mins>1</start_mins>
<start_mins>2</start_mins>
<start_mins>3</start_mins>
<start_mins>4</start_mins>
<start_mdays array='true'>1</start_mdays>
<start_months array='true'>12</start_months>
<start_wdays array='true'></start_wdays>
<start_years array='true'>2024</start_years>
</start_schedule>
</xml>

Response example​

  • JSON
  • XML
{
"data": {
"saved_id": 90
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<saved_id>90</saved_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
saved_idintNew mailing ID
Last updated on Oct 17, 2024
Previous
Get broadcast information
Next
Update broadcast mailing
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.