Skip to content

Send a push by User ID

To send a push to a list of users, you can either use /createMessage API call, or upload a CSV file with the User ID’s.

Sending a push by User ID via API

createMessage

Request parameters

ParameterDescription
applicationYour Pushwoosh application ID where you send the message to (cannot be used together with “applications_group”)
authAPI access token from the Pushwoosh control panel
send_dateSet the time you want the message to be sent (in UTC) or use ‘now’ to send it immediately.
contentThe text for your push notification.
usersA list of User IDs your push message is sent to. You can send a push to a 1000 User IDs at once.

Request example

{
"request": {
"application": "APPLICATION_CODE",
"auth": "API_ACCESS_TOKEN",
"notifications": [{
"send_date": "now",
"content": "Hello world!",
"users":["external_user_1"]
}]
}
}

Response example

{
"status_code":200,
"status_message":"OK",
"response": {
"Messages":["{Notification code}"]
}
}