Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v75
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
    • Get campaign information
    • Get campaign list
    • Activate campaign
    • Complete campaign
    • Deactivate campaign
    • Get campaign status
  • 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
  • Campaigns
  • Deactivate campaign
Documentation for version v75

Deactivate campaign

Description​

Deactivate a campaign immediately. Deactivation stops sending messages from running mailings.

Access rights

To use this method, the API token must have:

  • Campaigns — Run
  • Access to the groups where the campaigns are located

Configure permissions in Settings → Tokens.

Request URL​

Method: POST

https://example.com/api/v1.1/scampaigns/deactivate

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint18YesCampaign ID

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 18
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>18</id>
</xml>

Response example​

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

Returned parameters​

ParameterTypeDescription
errorintError code
error_textstringError description
datanullNo data returned
info

Deactivation temporarily pauses the campaign. All settings and data are preserved for potential reactivation.

Last updated on Oct 16, 2024
Previous
Complete campaign
Next
Get campaign status
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Returned parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.