Send a push notification
Sends a push notification to the devices of the persons named by personIds and distinctIds, and answers 202 while the deliveries continue in the background; follow them with GET .../push-notifications/{pushNotificationId}/deliveries.
Distinct ids that name no person are reported in unresolvedDistinctIds, not refused. Devices of a push service the project has not enabled are skipped. Repeating a send with the same Idempotency-Key header returns the first one instead of sending again.
Guide: Push notifications
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | recipients_required | Without at least one person. |
| 403 | permission_denied | push_notifications_not_enabled | When push notifications are not enabled for the organization. |
| 409 | conflict | push_notifications_not_configured | When the project has no enabled push service. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Push notifications
Something wrong or missing on this page? Tell us by email or on Discord.