Skip to main content
Documentation for version v74

Activate campaign

Description

Request to activate a campaign.

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/activate

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint1YesCampaign ID
activate_datestring"2025-03-15T10:00:00Z"YesActivation date in RFC 3339 format
deactivate_datestring"2025-03-20T15:30:00Z"NoDeactivation date in RFC 3339 format
completed_datestring"2025-04-01T18:45:00Z"NoCompletion date in RFC 3339 format
tip

If you send start_date without a date value, the campaign is activated immediately.

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"start_date": "2025-04-01T18:45:00Z",
"deactivate_date": "2025-05-01T18:45:00Z",
"completed_date": "2025-05-01T18:45:00Z"
}

Response example

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

Returned parameters

ParameterTypeDescription
errorintError code
error_textstringError description
datanullNo data returned