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 tocreateMessage
Anchor link toRequest body parameters
Anchor link to| Parameter | Description |
|---|---|
| application | Your Pushwoosh application ID where you send the message to |
| 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
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}"] }}