Skip to main content
Documentation for version v74

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

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

Response example

{
"data": null,
"error": 0,
"error_text": "Successful operation"
}

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.