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
| Header | Description |
|---|---|
X-Channel-ID | Required. The UUID of your Pushblitz channel. |
Content-Type | application/json |
Body Parameters (JSON)
| Parameter | Type | Required | Description |
|---|---|---|---|
platform | string | Yes | Must be exactly "android" or "ios". |
provider_token | string | Yes | The FCM token (Android) or APNS device token (iOS). |
attributes | object | No | Optional JSON object for custom metadata (max 10 keys). Key names max 50 chars, values max 255 chars (e.g., {"user_id": "123"}). |