Request Payload
Required Fields
Field | Type | Description |
|---|---|---|
|
| The notification title (required, must not be empty) |
Optional Fields
Field | Type | Description |
|---|---|---|
|
| The notification body/message text |
|
| Custom key-value pairs to send with the notification. All values must be strings. |
|
| FCM device token for sending to a single device |
|
| Array of FCM device tokens for sending to multiple devices |
|
| FCM topic name for sending to all subscribers of that topic (defaults to |
Targeting Options
You can specify one of the following targeting options:
Single Device: use
tokenMultiple Devices: use
tokens(sends in parallel)Topic: use
topic(or omit to use defaultalltopic)
If multiple targeting options are provided, the priority order is token > tokens > topic.
Custom Redirect URL
You can include a custom redirect URL in data.url to specify where the app should navigate when the notification is tapped.