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
    • 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
  • Activate mailing
Documentation for version v74

Activate mailing

Description​

Activates a mailing.

Can be used to activate and launch a mailing instantly.
Also you can override mailing audience source for a different database or segment.

If run_now = true, the specified mailing launches instantly.

override_source_type and override_source_id are valid only if run_now = true.

override_limit parameter sets sending limitations for the current run.

If no override options are set - mailings will use their default audience sources and sending limitations.

Request URL​

Method: POST

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

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint12YesMailing ID
run_nowbooltrueNoLaunch mailing instantly
override_source_typeenum"list" or "segment"NoOverride audience source
override_source_idint5NoNew audience source ID
override_limitint300NoOverride mailing limitations
contentJSON object{"field":"value"}NoAdditional content for API content filter node and template apicontent variables
attachJSON array[]NoAttach file(s) to mailing messages

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 82,
"override_source_id": 1,
"override_source_type": "list",
"run_now": true
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>82</id>
<override_source_id>1</override_source_id>
<override_source_type>list</override_source_type>
<run_now>true</run_now>
</xml>

Response example​

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

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
Last updated on May 29, 2024
Previous
Mailings
Next
Deactivate mailing
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.