Is the Database Webhook payload always empty?
Reading through the documentation (https://supabase.com/docs/guides/database/webhooks#payload), there is a sentence saying
The payload is automatically generated from the underlying table record
#help-and-questions
What does this mean exactly? Is the payload generated and passed in the request body when the trigger gets executed?
I have created a Webhook via the Supabae UI and I selected to use my Edge Function which accepts the POST request.
However, the request body is empty; what is meant by the payload is automatically generated
; is it generated but not added to the request?
Thanks!Database Webhooks | Supabase Docs
Trigger external payloads on database events.
2 Replies
It should be in the body.
After a bit more debugging, I realized I wasn't reading the response body correctly 🤦♂️ . My mistake! Closing question. Added a checkmark that it was answered. Cheers
Thanks for confirming