Receiving webhooks
Give another service an address at your website to call when something happens: a payment, a form, a booking, a shipment. Signature checks, retries and where to see deliveries.
On this page
A webhook is an address at your website that another company's server calls when something happens on their side: a payment cleared, a form was submitted, a parcel shipped, a meeting was booked. Your website receives the event and acts on it.
Setting one up
When a payment clears in our payment provider, mark the order paid. The builder writes the handler as a public backend function and lists it on the API tab under Webhooks.
Providers sign their deliveries. The builder asks for the provider's signing secret through a secret card, and the handler checks every delivery against it before doing anything.
The Webhooks list on the API tab shows the exact address with a copy button. Paste it into the provider's dashboard and choose the events to send.
The same list marks each address Receiving or Not reachable. Point at the mark to see how recent deliveries went.
Good handlers
- Verify first. The handler checks the provider's signature on the raw delivery before anything else. Anyone can post to a public address; a signature proves who did.
- Answer fast. A provider waits only a few seconds. The handler records the event and returns; slow work runs afterwards.
- Expect repeats. Providers retry. The handler records the provider's own event id and ignores a duplicate, so a retried payment does not create a second order.
The address
Webhook addresses live at your website's own domain under /api/webhooks/ followed by the handler's name. They take GET and POST and work once the website is published; the API tab tells you when one is not reachable.
Sending events out
To tell another service when something changes in your website, use an automation with a data-change trigger whose function calls that service. See Automations.
What went wrong? Pick any that apply.
That didn't send. Try again in a moment.