Send multiple Push notifications
Use this method when sending a large amount of messages or targeting different user segments with different messages to optimize data traffic and increase performance.
Authorizations:
Request Body schema:
application/jsonmessages required | Array of objects List of push requests | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
|
Responses
OK
Bad request
Unauthorized
Forbidden
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "messages": [
- {
- "from": "d417d38814740a23f50b5c876e226445-0f700564-abbf-4b5b-beae-86a4ef410904",
- "to": {
- "externalUserId": "customer_21234"
}, - "text": "This message can be one of many in this message collection.",
- "validityPeriod": 30,
- "validityPeriodTimeUnit": "MINUTES",
- "customPayload": {
- "someData": "someData",
- "targetUrl": "www.someDomain.com"
}, - "notificationOptions": {
- "soundEnabled": false,
- "badge": 1
}, - "notifyContentType": "application/json",
- "callbackData": "DLR callback data"
}, - {
- "from": "c297d38814740a23f50b5c876e226445-0f700564-abbf-4b5b-beae-86a4ef410904",
- "to": {
- "externalUserId": "customer_113456"
}, - "text": "This is the second message in this collection.",
- "notificationOptions": {
- "soundName": "notification_sound.wav"
}
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 500
{- "bulks": [
- {
- "to": {
- "externalUserId": "customer_21234"
}, - "status": {
- "groupId": 1,
- "groupName": "PENDING",
- "id": 26,
- "name": "PENDING_ACCEPTED",
- "description": "Message accepted, pending for delivery"
}, - "messageCount": 1,
- "bulkId": "oungulj9xm9b3hixkupu"
}, - {
- "to": {
- "externalUserId": "customer_113456"
}, - "status": {
- "groupId": 1,
- "groupName": "PENDING",
- "id": 26,
- "name": "PENDING_ACCEPTED",
- "description": "Message accepted, pending for delivery"
}, - "messageCount": 1,
- "bulkId": "gby7cz3x6m244n2e4vzb"
}
]
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See