Pushwoosh

App · 25 actions

Send and cancel Pushwoosh push notifications, manage applications, tags, segments and campaigns, export segments, read message and application statistics, and follow new and sent messages.

Actions

ActionWhat it does
Cancel messageStop a scheduled message from sending.
Create applicationCreate an application (project).
Create campaignCreate a campaign to group messages for statistics.
Create segmentCreate a segment from a Segmentation Language expression, such as T("City", eq, "Madrid").
Create tagCreate a tag, a piece of user data such as a plan or a city.
Delete applicationDelete an application and its subscribers.
Delete campaignDelete a campaign.
Delete messageDelete a scheduled or sent message, and remove a scheduled one from Message History.
Delete segmentDelete a segment by name.
Delete tagDelete a tag and every value it holds.
Export segmentStart exporting the subscribers in a segment to a file.
Get applicationGet an application's title, the platforms it sends to and its subscribers' languages.
Get messageGet a message's status, content and send time.
Get segment exportGet a segment export's status, device count and file link once ready.
Get statistics resultsGet the results of a statistics request, once Pushwoosh has counted them.
Get subscriber countsCount an application's subscribers on each platform.
List applicationsList the account's applications (projects) by code and title, 100 a page.
List campaignsList an application's campaigns.
List messagesList an application's sent messages with their sends, deliveries and opens.
List segmentsList an application's segments (filters) with their conditions.
List tagsList the account's tags with their types.
Rename applicationChange an application's title.
Request application statisticsStart counting an application's opens, installs, registrations and sends for a period.
Request campaign statisticsStart counting a campaign's sends and opens for a period.
Send push notificationSend a push notification to chosen users, devices or a segment, now or at a set time.

Cancel message

Stop a scheduled message from sending. It stays in Message History as canceled.

Inputs

Message codemessagetextRequired
The message code, which Send push notification returns.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "status_code": 1,
    "status_message": "example"
  }
}

Create application

Create an application (project). Its platforms are set up in Pushwoosh afterwards.

Inputs

TitletitletextRequired
The application's name.
Open to all API tokensauthorize_all_tokenstrue/false
Let every API token on the account use it.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "application": "example"
  }
}

Create campaign

Create a campaign to group messages for statistics.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
NamenametextRequired
The campaign's name.
Descriptiondescriptiontext
A description.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "campaign": "example"
  }
}

Create segment

Create a segment from a Segmentation Language expression, such as T("City", eq, "Madrid").

Inputs

NamenametextRequired
The segment's name.
Conditionsfilter_expressiontextRequired
The conditions, in Pushwoosh's Segmentation Language.
Expires onexpiration_datedate
Delete the segment automatically on this day.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "name": "example"
  }
}

Create tag

Create a tag, a piece of user data such as a plan or a city.

Inputs

NamenametextRequired
The tag's name.
TypetypetextRequired
The kind of value it holds.One of: 1 (Integer), 2 (String), 3 (List), 4 (Date), 5 (Boolean), 6 (Decimal), 7 (Version).
One value per useruser_specifictrue/false
Keep one value per user, shared by all their devices, rather than one per device.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "name": "example",
    "result": true
  }
}

Delete application

Delete an application and its subscribers.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {}
}

Delete campaign

Delete a campaign.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
CampaigncampaigntextRequired
The campaign.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "status_code": 1,
    "status_message": "example"
  }
}

Delete message

Delete a scheduled or sent message, and remove a scheduled one from Message History.

Inputs

Message codemessagetextRequired
The message code, which Send push notification returns.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "status_code": 1,
    "status_message": "example"
  }
}

Delete segment

Delete a segment by name.

Inputs

Segment namenametextRequired
The segment's name.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {}
}

Delete tag

Delete a tag and every value it holds.

Inputs

TagnametextRequired
The tag.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "result": true
  }
}

Export segment

Start exporting the subscribers in a segment to a file. Get segment export returns its link.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
Segmentfilter_codetext
The segment to export.
Conditionsfilter_expressiontext
Or conditions in Pushwoosh's Segmentation Language, such as A("XXXXX-XXXXX") for every subscriber.
Exportexport_datalist
What to export for each subscriber. Leave empty for the default columns.One or more of: hwids (Device IDs (HWIDs)), push_tokens (Push tokens), users (User IDs), tags, location, ad_identifiers (Ad identifiers).
Tagstagslist
Only these tags' values.
Formatformattext
The file's format. Leave empty for CSV.One of: csv, json_each_line (JSON, one device per line).
Include users without tokensinclude_without_tokenstrue/false
Include users without a push token.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "task_id": "example"
  }
}

Get application

Get an application's title, the platforms it sends to and its subscribers' languages.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "icon_url": "example",
    "languages": {},
    "providers": {
      "android": true,
      "chrome": true,
      "email": true,
      "firefox": true,
      "ios": true,
      "safari": true,
      "sms": true
    },
    "title": "example"
  }
}

Get message

Get a message's status, content and send time. A message sent now to fewer than 10 users isn't kept.

Inputs

Message codemessagetextRequired
The message code or message ID.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "message": {
      "code": "example",
      "content": {},
      "created": "example",
      "data": {},
      "id": 1,
      "ignore_user_timezone": "example",
      "platforms": "example",
      "send_date": "example",
      "status": "example"
    }
  }
}

Get segment export

Get a segment export's status, device count and file link once ready.

Inputs

Task IDtask_idtextRequired
The task ID Export segment returns.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "devicesCount": "example",
    "filename": "example",
    "status": "example"
  }
}

Get statistics results

Get the results of a statistics request, once Pushwoosh has counted them.

Inputs

Request IDrequest_idtextRequired
The request ID a statistics request returns.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "conversion": {},
    "formatter": "example",
    "rows": [
      {
        "action": "example",
        "count": 1,
        "datetime": "example"
      }
    ]
  }
}

Get subscriber counts

Count an application's subscribers on each platform.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "AMAZON": 1,
    "ANDROID": 1,
    "FIREFOX": 1,
    "IOS": 1,
    "OSX": 1,
    "SAFARI": 1,
    "WINDOWS": 1
  }
}

List applications

List the account's applications (projects) by code and title, 100 a page.

Inputs

Pagepagenumber
The page to read. Leave empty for the first.At least 1.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "applications": [
      {
        "code": "example",
        "title": "example"
      }
    ],
    "page": 1,
    "total": 1
  }
}

List campaigns

List an application's campaigns.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
Campaigns to returnlimitnumber
How many to return.At least 1.
Next page cursorcursortext
The cursor from the last page, to read the next page.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "campaigns": [
      {
        "code": "example",
        "description": "example",
        "name": "example"
      }
    ],
    "cursor": "example",
    "limit": 1
  }
}

List messages

List an application's sent messages with their sends, deliveries and opens.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
Fromdate_fromdate
Only messages created on or after this day. Leave both dates empty for the last 31 days.
Todate_todate
Only messages created on or before this day, at most 30 days after From.
Campaigncampaigntext
Only messages in this campaign.
Sourcesourcetext
Only messages from this source.One of: API, CP (Control Panel), AB_TEST (A/B test), AUTO_PUSH (Auto push), CSV (CSV upload), CUSTOMER_JOURNEY (Customer Journey), EMAIL_API (Email API), EMAIL_CP (Email from the Control Panel), GEO_ZONE (Geozone), PUSH_ON_EVENT (Push on event), RSS.
Message typemessage_typetext
Only broadcast or only transactional messages.One of: ALL, BROADCAST, TRANSACTIONAL.
Messages per pageper_pagenumber
How many to return, up to 499. Leave empty for 500.From 1 to 499.
Pagepagenumber
The page to read, starting at 0.At least 0.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "items": [
      {
        "code": "example",
        "created_date": "example",
        "id": 1,
        "platforms": [
          "example"
        ],
        "push_info": {
          "details": {
            "content": {},
            "filter_code": "example",
            "filter_name": "example",
            "title": "example"
          },
          "metrics": [
            {
              "deliveries": 1,
              "errors": 1,
              "opens": 1,
              "platform": 1,
              "sends": 1
            }
          ]
        },
        "send_date": "example",
        "source": "example",
        "status": "example"
      }
    ],
    "total": 1
  }
}

List segments

List an application's segments (filters) with their conditions.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "filters": [
      {
        "application": "example",
        "code": "example",
        "expiration_date": "example",
        "filter_expression": "example",
        "name": "example"
      }
    ]
  }
}

List tags

List the account's tags with their types.

Inputs

None.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "tags": [
      {
        "isUserSpecific": true,
        "name": "example",
        "type": 1
      }
    ]
  }
}

Rename application

Change an application's title.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
TitletitletextRequired
The new title.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {}
}

Request application statistics

Start counting an application's opens, installs, registrations and sends for a period. Get statistics results returns them.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
Fromdate_fromdate and timeRequired
The start of the period.
Todate_todate and timeRequired
The end of the period.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "request_id": "example"
  }
}

Request campaign statistics

Start counting a campaign's sends and opens for a period. Get statistics results returns them.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
CampaigncampaigntextRequired
The campaign.
Fromdate_fromdate and timeRequired
The start of the period.
Todate_todate and timeRequired
The end of the period.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "request_id": "example"
  }
}

Send push notification

Send a push notification to chosen users, devices or a segment, now or at a set time.

Inputs

ApplicationapplicationtextRequired
The Pushwoosh project (application).
MessagecontenttextRequired
The notification's text.
Titletitletext
The notification's title.
User IDsuserslist
User IDs to send to, up to 1,000.
Devicesdeviceslist
Device IDs (HWIDs) or push tokens to send to, up to 1,000.
Segmentfiltertext
A segment to send to.
Send to everyoneeveryonetrue/false
Send to every subscriber of the application. Leave off to send only to the users, devices or segment chosen.
Platformsplatformslist
Only these platforms. Leave empty for all of them.One or more of: 1 (iOS), 3 (Android), 7 (macOS), 8 (Windows), 9 (Amazon), 10 (Safari), 11 (Chrome), 12 (Firefox), 17 (Huawei).
Send atsend_atdate and time
When to send. Leave empty to send now.
Same moment everywhereignore_user_timezonetrue/false
Send at that moment everywhere. Turn off to send at that time in each user's time zone.
Linklinktext
A web page or deep link to open when it's tapped.
Custom datadataobject
Custom data for your app, by name.
Campaigncampaigntext
A campaign to file the message under, for statistics.
Preset codepresettext
A push preset's code, whose settings fill in the rest.
Message typemessage_typetext
Transactional messages skip silent hours, frequency capping and control groups. Leave empty for marketing.One of: marketing, transactional (Transactional (skips silent hours and control groups)).
Message namecampaign_nametext
A name for the message in Message History.

Outputs

dataobject
The response from Pushwoosh.
Example output
{
  "data": {
    "message_code": "example",
    "message_codes": [
      "example"
    ]
  }
}

On this page