Create a webhook
- Go to Webhooks and create one in your project.
- Choose the event it emits, like
checkout.completed. - Copy its URL, and paste it in the other service’s webhook settings.
https://api.nelkap.com/webhooks/<secret>. Then register a workflow that listens for the event:
What the webhook accepts
Each call is a POST with a JSON body. Nelkap answers:
A webhook emits an event with no tags and no
wakeOn key, so it starts runs but doesn’t wake waiting ones. To wake a run from another service’s call, receive the call in your app and emit the event yourself.
Keep the URL private
The secret in the URL is what proves a call is meant for your project, so treat the URL like a password:- If it leaks, rotate the webhook’s secret. The old URL stops working at once, so paste the new one in the other service right after.
- To accept calls only from the service’s servers, set the webhook’s allowed IPs: up to 20 addresses or ranges, like
203.0.113.7or203.0.113.0/24, in IPv4 or IPv6.
emit. The order fulfillment example does this for Stripe.
Turn a webhook off
Disable a webhook to stop it for a while without losing its URL. While it’s disabled, its calls get a404 and emit nothing. Enable it again, and the same URL works as before.