Send push notification to the target user ids with the same message payload
Path Parameters
Name
Type
Description
client-menu-id*
String
the unique id of client menu
Headers
Name
Type
Description
Authorization*
String
client-credential access token with client-menu scope
Request Body
Name
Type
Description
to*
String[]
target user id. Up to 1,000 are allowed in a single request
payload*
Object
push notification payload. maximum 4KB per payload
payload.title*
String
push notification title
payload.message*
String
push notification message.
Support template message with following properties firstname, lastname, and email.
payload.redirectUri*
String
redirect uri to get into sub-page of client menu
Status 200: OK
{"to": [ "<TARGET_USER_ID>", ... ],"payload": {"redirectUri":"<REDIRECT_URI>","title":"Title is here","message":"What's up ${firstname} ${lastname}. How are you today?", }}
{"referenceId":"<string>"}
Push notification to target user ids with their own payload
client-credential access token with client-menu scope
Request Body
NameTypeDescription
payload*
object
push notification payload. maximum size 4KB
payload.title*
String
push notification title
payload.message*
String
push notification message
payload.redirectUri*
String
redirect uri to get into sub-page of client menu
directoryIds*
String[]
target directory ids to send push notification. Up to 5 are allowed in a single requests
excludes
String[]
A list of User IDs which don't want to send push notify to them in case of they are in the target recipients. Up to 1000 are allowed in a single request.
[
{
"to": "<TARGET_USER_ID>",
"payload": {
"redirectUri": "<REDIRECT_URI>",
"title": "Title is here",
"message": "What's up ${firstname} ${lastname}. How are you today?",
}
}
]
{
"payload": {
"redirectUri": "<REDIRECT_URI>",
"title": "title here",
"message": "What's up! How are you today."
},
"excludes": [
"<USER_ID>",
"<ANOTHER_USER_ID>"
],
"directoryIds": [
"<TARGET_DIRECTORY_ID>"
]
}