TransactionalSuppress a device token

Suppress a device token

Add a device token to the workspace's suppression list. This is the only way to block a single token from delivery: the row is read on every send, so the next push to this token comes back with status: skipped and skip_reason: device_token_suppressed, and the provider is never invoked. Requires push:send.

Keep the id from the response — it is the only way to lift the suppression later, and there is no route that lists existing suppressions.

The workspace always comes from the API key; a workspace_id in the body is ignored. The raw token is never echoed back — responses and logs carry only the masked form.

curl -X POST "https://api.flameup.ai/api/v1/workspaces/example_string/push/tokens/suppress" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "device_token": "example_string",
  "platform": "ios",
  "suppression_type": "uninstalled",
  "reason": "example_string",
  "source_push_id": "123e4567-e89b-12d3-a456-426614174000",
  "source_campaign_id": "123e4567-e89b-12d3-a456-426614174000"
}'
{
  "success": true,
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "device_token": "example_string",
  "platform": "ios",
  "suppression_type": "uninstalled",
  "suppressed_at": "2024-12-25T10:00:00Z",
  "already_suppressed": true
}
POST
/workspaces/{workspaceId}/push/tokens/suppress
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Your Flameup API key (passed as Bearer token)

Your Flameup API key (passed as Bearer token)
Content-Typestring
Required

The media type of the request body

Options: application/json
device_tokenstring
Required

The device token to suppress.

platformstring
Required
Options: ios, android, web, huawei
suppression_typestring
Required

Why the token is being suppressed. Anything outside this set is a 400 listing the accepted values.

Options: uninstalled, disabled, invalid_token, opt_out
reasonstring

Optional free-text note.

source_push_idstring

Optional push record that prompted the suppression. Must be a UUID naming a push record in this workspace — anything else is a 400.

Format: uuid
source_campaign_idstring

Optional campaign the suppression is attributed to. Must be a UUID.

Format: uuid
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Your Flameup API key (passed as Bearer token)

Path Parameters

Body

application/json
device_tokenstring
Required

The device token to suppress.

platformstring
Required
Allowed values:iosandroidwebhuawei
suppression_typestring
Required

Why the token is being suppressed. Anything outside this set is a 400 listing the accepted values.

Allowed values:uninstalleddisabledinvalid_tokenopt_out
reasonstring

Optional free-text note.

source_push_idstring

Optional push record that prompted the suppression. Must be a UUID naming a push record in this workspace — anything else is a 400.

source_campaign_idstring

Optional campaign the suppression is attributed to. Must be a UUID.

Responses

successboolean
idstring

The suppression id, required to lift it later.

device_tokenstring

Masked — the raw token is never echoed back. A token of normal length comes back as its first and last 4 characters around ***.

platformstring
Allowed values:iosandroidwebhuawei
suppression_typestring
Allowed values:uninstalleddisabledinvalid_tokenopt_out
suppressed_atstring
already_suppressedboolean

True when the token was already suppressed under this type — the 200 case rather than the 201.