TransactionalValidate a device token

Validate a device token

Format-only validation of a device token — iOS tokens must be 64 hex characters, Android FCM tokens 140-200 characters, web push tokens at least 100. It does NOT check the token against the provider, so a well-formed but revoked token still validates. Requires push:send.

curl -X POST "https://api.flameup.ai/api/v1/workspaces/example_string/push/tokens/validate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "device_token": "example_string",
  "platform": "ios"
}'
{
  "valid": true,
  "device_token": "example_string",
  "platform": "example_string",
  "error": "example_string"
}
POST
/workspaces/{workspaceId}/push/tokens/validate
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
platformstring
Required
Options: ios, android, web
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
platformstring
Required
Allowed values:iosandroidweb

Responses

validboolean
device_tokenstring

Echoed back masked (first and last 4 characters).

platformstring
errorstring

Present only when valid is false.