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

Anchor link to

createMessage

Anchor link to

Request parameters

Anchor link to
ParameterDescription
applicationYour Pushwoosh application ID where you send the message to
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

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

Response example

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