Webhooks
Receive real-time event notifications from Fiddle instead of polling the API.
Updated June 21, 20261 min read
Webhooks push event notifications to a URL you control, so your integration reacts to changes in Fiddle the moment they happen — no polling required.
How webhooks work
- You register a publicly reachable HTTPS endpoint.
- You subscribe it to the events you care about (for example, when a sales order is created or stock is adjusted).
- When an event fires, Fiddle sends an HTTP
POSTto your endpoint with a JSON payload describing what changed. - Your endpoint responds with a
2xxstatus to acknowledge receipt.
Register an endpoint
curl -X POST https://fiddle.io/rest/api/v2/webhooks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/fiddle",
"events": ["sales_order.created", "stock.adjusted"]
}'
Respond quickly and idempotently
- Return a
2xxstatus fast, then do heavy work asynchronously. Slow responses may be treated as failures and retried. - Deduplicate by event ID — the same event can be delivered more than once.
If your endpoint returns an error or times out, Fiddle retries delivery with backoff. Make handlers idempotent so retries don’t create duplicate records on your side.
While developing, point a webhook at a request inspector or a tunneling tool to see live payloads before wiring up your real handler.
Next steps
Pair webhooks with the API to fetch full records — see common API recipes.
Was this article helpful?
Related articles
REST API overviewWhat the Fiddle REST API does, where to find the docs, and how requests are structured.Get an API keyCreate, name, and safely store an API key to authenticate REST API requests.Authentication and rate limitsHow to authenticate REST API requests and how many calls you can make per minute.
Still need help?
Ask Filo, our built-in AI assistant, for an instant answer — or get in touch with our team and we'll take it from there.