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
Parameter | Description |
---|---|
application | Your Pushwoosh application ID where you send the message to (cannot be used together with “applications_group”) |
auth | API access token from the Pushwoosh control panel |
send_date | Set the time you want the message to be sent (in UTC) or use ‘now’ to send it immediately. |
content | The text for your push notification. |
users | A 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}"] }}