© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
Zarkex

Database Webhook with body

Is there any way to send a body with Database Webhooks?
I'm trying to trigger OneSignal with it which uses the following curl command but I get stuck at the "data-binary" part.
“

curl --include \
     --request POST \
     --header "Content-Type: application/json; charset=utf-8" \
     --header "Authorization: Basic ZjlhNTzgxZmFh" \
     --data-binary "{\"app_id\": \"b27055a1-d5c9-4d52-a103-e39998abc056\",
\"contents\": {\"en\": \"Someone likes you, check it out.\"},
\"headings\": {\"en\": \"New like\"},
\"channel_for_external_user_ids\": \"push\",
\"include_external_user_ids\": [\"a32139cd-1209-4f47-beb7-5fb4b29ec027\"]}" \
     https://onesignal.com/api/v1/notifications

curl --include \
     --request POST \
     --header "Content-Type: application/json; charset=utf-8" \
     --header "Authorization: Basic ZjlhNTzgxZmFh" \
     --data-binary "{\"app_id\": \"b27055a1-d5c9-4d52-a103-e39998abc056\",
\"contents\": {\"en\": \"Someone likes you, check it out.\"},
\"headings\": {\"en\": \"New like\"},
\"channel_for_external_user_ids\": \"push\",
\"include_external_user_ids\": [\"a32139cd-1209-4f47-beb7-5fb4b29ec027\"]}" \
     https://onesignal.com/api/v1/notifications
“
Any ideas?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Database Webhook not working with Discord
SupabaseSSupabase / help-and-questions
13mo ago
Database API-Webhook help
SupabaseSSupabase / help-and-questions
13mo ago
Database webhook not firing
SupabaseSSupabase / help-and-questions
4y ago
Database webhook overwritten by trigger
SupabaseSSupabase / help-and-questions
4y ago