Examples
1. Send to a Single Device
{
"title": "New Message",
"subtitle": "You have a new message from John",
"data": {
"messageId": "12345",
"senderId": "user_001"
},
"token": "fGhI1jKlMnOpQrStUvWxYz..."
}
2. Send to Multiple Devices
{
"title": "System Maintenance",
"subtitle": "Scheduled maintenance tonight at 10 PM",
"tokens": [
"fGhI1jKlMnOpQrStUvWxYz...",
"aBcD2eFgHiJkLmNoPqRsTu...",
"xYz3AbCdEfGhIjKlMnOpQr..."
]
}
3. Send to a Topic
{
"title": "Breaking News",
"subtitle": "Major announcement: New product launch!",
"data": {
"articleId": "news_789",
"category": "announcements"
},
"topic": "news"
}
4. Send to Default Topic (All Subscribers)
{
"title": "App Update Available",
"subtitle": "Version 2.0 is now available"
}
03 May 2026