Skip to main content

Get campaign status

Description

Retrieves a campaign status — whether it is active or inactive.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint12YesCampaign ID

Request example

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

Response example

{
"data": {
"is_active": false,
"is_completed": false,
"status": "Inactive"
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
is_activeboolCampaign active flag
is_completedboolCampaign finished flag
statusstringCurrent campaign status