Estimate notification recipients
Changed onReturns the estimated number of recipients for a notification's targeting, without creating or sending anything.
post/notifications/count-unsaved
Request
- Base URLhttps://api.onesignal.com
- URLhttps://api.onesignal.com/notifications/count-unsaved
- Authnone required
Headers
Authorizationstring required
Your App API key with prefix Key . See Keys & IDs.
Request body
Example request
{
"app_id": "YOUR_APP_ID",
"included_segments": [
"Active Users"
],
"excluded_segments": [
"Inactive Users"
],
"include_aliases": {
"external_id": [
"YOUR_USER_EXTERNAL_ID"
]
},
"target_channel": "push"
}Response
Estimated recipient counts for the supplied targeting. No notification is created or sent.
Changes
- info
endpoint added
- info