Stop a scheduled or currently outgoing notification

Used to stop a scheduled or currently outgoing notification.

🚧

Requires Authentication Key

Requires your OneSignal App's REST API Key, available in Keys & IDs.

unless the notification was created using include_player_ids and targeting only one user.

Path Parameters

ParameterTypeDescription
idStringRequired Notification id
app_idStringRequired App id

Example Code - Cancel notification

curl --include \
         --request DELETE \
     --header "Authorization: Basic YOUR_REST_API_KEY" \
 https://onesignal.com/api/v1/notifications/YOUR_NOTIFICATION_ID?app_id=YOUR_APP_ID

Result Format - Cancel notification

{'success': "true"}
Language
Authentication
Basic
base64
: