API Request

Registers a mobile device token with your Pushblitz channel. If the token is already registered, this will update the subscription (e.g., updating the device platform or custom attributes).

  • URL: https://api.pushblitz.com/subscribe
  • Method: POST

Headers

HeaderDescription
X-Channel-IDRequired. The UUID of your Pushblitz channel.
Content-Typeapplication/json

Body Parameters (JSON)

ParameterTypeRequiredDescription
platformstringYesMust be exactly "android" or "ios".
provider_tokenstringYesThe FCM token (Android) or APNS device token (iOS).
attributesobjectNoOptional JSON object for custom metadata (max 10 keys). Key names max 50 chars, values max 255 chars (e.g., {"user_id": "123"}).