Send message data out of OneSignal in real-time to your chosen destination.
Trigger Webhook
Event Selection
Filtering events by template
Copying the Template ID of a template
https://dashboard.onesignal.com/apps/{APP_ID}/templates/{TEMPLATE_ID}
https://dashboard.onesignal.com/apps/{APP_ID}/notifications/{MESSAGE_ID}
https://dashboard.onesignal.com/apps/{APP_ID}/email/{MESSAGE_ID}
https://dashboard.onesignal.com/apps/{APP_ID}/sms/{MESSAGE_ID}
Authorization
header, where YOUR_TOKEN
is provided by your system or 3rd party like:
Basic {{YOUR_TOKEN}}
Bearer {{YOUR_TOKEN}}
ApiKey {{YOUR_API_KEY}}
X-API-Key: {{YOUR_API_KEY}}
Configure Webhook
content-length
referer
metadata-flavor
x-google-metadata-request
host
x-onesignal*
Event Stream Body Options
cURL Preview of Event Stream
Custom Body
user.language
directly in conditionals, not in variables like userLang
, for better compatibility.content/title/en
for reliability.Event Stream Logs and Metrics
event.id
for each event. This can be used as a header or in the body of the message as a way to check and potentially deduplicate requests if you see the same ones coming through.
The URL matches the "Your unique URL" from webhook.site
Push message events selected, but any can be used for testing.
Example using webhook.site