Skip to content

Tags API

To store structured data such as an order or a list of orders in one tag, use object tags (beta). addTag can’t create them, because it doesn’t take fields.

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

Creates a tag in your account.

Request body

Anchor link to
NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
tag*objectTag parameters.
tag.name*stringTag name.
tag.type*integerTag type. See possible values below.
tag.user_specificbooleanWhen true, the tag value is stored at the user level and shared across all of a user’s devices when set by UserID. When false (default), the tag is device-level and set per HWID.
tag.application_specificbooleanDeprecated. Accepted but ignored, because tags are no longer split into application-specific and account-wide. You can omit it.
{
"status_code": 200,
"status_message": "OK",
"response": {
"result": true
}
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"tag": {
"name": "TAG_NAME", // required.
"type": 1, // required. See possible values below
"user_specific": false // optional. true = user-level tag (shared across all devices); false = device-level tag (default)
}
}
}

Possible tag value types:

  • 1 - Integer
  • 2 - String
  • 3 - List
  • 4 - Date
  • 5 - Boolean
  • 6 - Decimal. Ex: 19.95
  • 7 - Version. Ex: “1.0.0.0”

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

Completely removes a tag with all the associated information from the database.

Request body

Anchor link to
NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
tag*objectTag parameters.
tag.name*stringName of a tag to delete.
{
"status_code": 200,
"status_message": "OK",
"response": {
"result": true
}
}
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel
"tag": {
"name": "TAG_NAME" // required. Name of a tag to delete
}
}
}

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

Retrieves a list of tags on the account.

Request body

Anchor link to
NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
{
"status_code": 200,
"status_message": "OK",
"response": {
"tags": [{
"name":"Language",
"type":2,
"isUserSpecific":true,
"isApplicationSpecific":true
}, {
"name":"List tag",
"type":3,
"isUserSpecific":false,
"isApplicationSpecific":true
}]
}
}

isUserSpecific shows whether the tag is User-specific. isApplicationSpecific is always true and is kept only for backward compatibility, because tags are no longer split into application-specific and account-wide. Don’t rely on this field.

Example
{
"request":{
"auth": "yxoPUlwqm…………pIyEX4H" // API access token from Pushwoosh Control Panel
}
}

Tag types:

  • 1 - Integer
  • 2 - String
  • 3 - List
  • 4 - Date
  • 5 - Boolean
  • 6 - Decimal. Ex: 19.95
  • 7 - Version. Ex: “1.0.0.0”