Skip to content

Campaigns API

createCampaign

POST https://api.pushwoosh.com/json/1.3/createCampaign

Creates a push campaign within the app.

Request Body

NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
application*stringPushwoosh application code.
name*stringCampaign name.
descriptionstringCampaign description.
{
"status_code": 200,
"status_message": "OK",
"response": {
"campaign": "XXXXX-XXXXX"
}
}
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX", // required. Pushwoosh application code
"name": "CAMPAIGN_NAME", // required.
"description": "CAMPAIGN_DESCRIPTION" // optional.
}
}

deleteCampaign

POST https://api.pushwoosh.com/json/1.3/deleteCampaign

Deletes a particular campaign.

Request Body

NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
campaign*stringID of a campaign to delete.
{
"status_code": 200,
"status_message": "OK",
"response": null
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"campaign": "XXXXX-XXXXX" // required. ID of a campaign to delete
}
}

getCampaigns

POST https://api.pushwoosh.com/json/1.3/getCampaigns

Retrieves the list of campaigns for the app.

Request Body

NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
application*stringPushwoosh application code.
cursorstringIndicates the last campaign retrieved in the previous request.
limitintegerThe max number of campaigns for a single response.
{
"status_code": 200,
"status_message": "OK",
"response": {
"campaigns": [{
"code": "7CFF3-63A7B",
"name": "CAMPAIGN_NAME_1",
"description": "DESCRIPTION1"
}, {
"code": "C284C-33DD3",
"name": "CAMPAIGN_NAME_2",
"description": "DESCRIPTION2"
}],
"limit": 100,
"cursor": "+4PxJPhhwITD4PFsiKui1BA=="
}
}
Example
{
"request": {
"auth": "jLbec2UW........ztFSOf5Za", // required. API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX", // required. Pushwoosh application code
"cursor": "+4PxJPhhwITD4PFsiKui1BA==", // optional. Indicates the last campaign retrieved in the previous request.
"limit": 100 // optional. The max number of campaigns
// for a single response.
}
}