device-tokens
Send notification to specific tokens
Send push notification to specific device tokens
post/device-tokens/notifications/send-to-tokens
Request
- Base URLhttps://api.tonewow.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.tonewow.com/device-tokens/notifications/send-to-tokens
- Authnone declared
Request body
Example request
{
"deviceTokens": [
"fcm_token_1",
"fcm_token_2"
],
"payload": {
"title": "New Message",
"body": "You have a new message from John",
"data": {
"messageId": "123",
"senderId": "user456"
},
"imageUrl": "https://example.com/image.jpg",
"clickAction": "OPEN_MESSAGE"
}
}Response
Notification sent successfully
Example response
{
"successCount": 5,
"failureCount": 1,
"results": [
{
"success": true
},
{
"success": false,
"error": "Invalid token"
}
]
}Changes
No recorded changes to this operation across all 6 revisions of this API.