Campaigns API

API methods to manage Campaigns

createCampaign

/createCampaign

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

Creates a push campaign within the app.

Request Body

NameTypeDescription

auth*

string

API access token from Pushwoosh Control Panel.

application*

string

Pushwoosh application code.

name*

string

Campaign name.

description

string

Campaign description.

{
  "status_code": 200,
  "status_message": "OK",
  "response": {
    "campaign": "XXXXX-XXXXX"
  }
}

For Custom Plan subscriptions only. For more details, please contact our Sales team.

    {
      "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

/deleteCampaign

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

Deletes a particular campaign.

Request Body

NameTypeDescription

auth*

string

API access token from Pushwoosh Control Panel.

campaign*

string

ID of a campaign to delete.

{
  "status_code": 200,
  "status_message": "OK",
  "response": null
}

For Custom Plan subscriptions only. For more details, please contact our Sales team.

Example
  {
      "request": {
        "auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
        "campaign": "XXXXX-XXXXX" // required, ID of a campaign to delete
      }
  }

getCampaigns

/getCampaigns

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

Retrieves the list of campaigns for the app.

Request Body

NameTypeDescription

auth*

string

API access token from Pushwoosh Control Panel.

application*

string

Pushwoosh application code.

cursor

string

Indicates the last campaign retrieved in the previous request.

limit

integer

The 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": "jLcRP74KodNa2UW........ztFSOJAQNAB9f5Za", // 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.
     }
}

Last updated

#1600: moved in-app statistics to in-apps, added a link to statistics

Change request updated