Skip to content

Receive webhooks ​

The Webhook trigger gives a workflow a public URL. Anything that can send an HTTP POST can start it — a payment provider, a form tool, a monitoring service, a script of your own.

Get the URL ​

Add a Webhook trigger, publish the workflow, and the trigger's config panel shows its URL. Paste that into the other service.

Publishing is what registers the URL, so a webhook on an unpublished draft won't receive anything.

Synchronous or asynchronous ​

ModeBehaviour
Async (default)Onivos accepts the request immediately and runs the workflow in the background.
SyncThe request waits for the workflow, and the reply is whatever your Respond to Webhook node produces.

Use async for notifications — "an order was paid", "a form was submitted". The sender doesn't care what you do with it and shouldn't be kept waiting.

Use sync when the caller needs an answer: a validation endpoint, a lookup, a service that expects a body back. Add a Respond to Webhook node and set the status, headers and body there. Sync runs have a time limit, so keep the graph short — anything slow should answer immediately and do the work asynchronously.

Reading the payload ​

The request body, headers and query arrive under trigger. After the first successful run the field picker knows the payload's shape, so you can build the rest of the graph by clicking rather than guessing.

You can also generate a sample from the detected shape to test against without asking the sender to fire again.

Duplicate deliveries ​

Providers retry. If a service sends a delivery id — a X-GitHub-Delivery, an Idempotency-Key, a Stripe event id, and the common variants — Onivos keys the run on it, so a provider retrying a request it never saw the response to will not run your workflow twice. That's what stops a retried "payment succeeded" from shipping the order twice.

No delivery id, no deduplication

A sender that includes no such header gives us nothing to tell a retry apart from a genuine second event, and inventing one would drop real traffic. If your sender can't provide an id, make the workflow itself idempotent — check whether the record already exists before creating it.

Securing the endpoint ​

The URL is unguessable, but "unguessable" isn't a security control. Three optional protections sit on the workflow's settings, applied before a run is created — a rejected request costs you nothing:

API keys ​

Require an x-api-key header. You can hold several keys at once, which is what makes rotation painless: add the new key, move the sender over, delete the old one — no window where the endpoint is down.

Keys are encrypted, and reading the settings back shows only a short hint, never the key. Save it somewhere when you create it.

IP allowlist ​

Restrict to a list of IPv4 ranges in CIDR notation. Most serious providers publish theirs.

Payload schema ​

Give the endpoint a JSON Schema and requests that don't match are rejected with a 400. This is the one people skip and shouldn't: it turns "the workflow failed weirdly at step 6" into "the sender sent the wrong thing, here at the door".

The body is validated, not rewritten — nothing is coerced, defaulted or stripped. What your graph receives is exactly what was sent. A schema that doesn't compile is refused when you save it, so you can't accidentally configure a check that silently passes everything.

Layer them

API key plus schema is a good default. Add the IP allowlist when the sender publishes stable ranges. All three are opt-in and independent.

Sending webhooks out ​

The other direction is the Webhook (outbound) node — a JSON POST to a URL you name, with authentication from a Connection. For anything more than a fire-and-forget POST, use HTTP Request instead: full verb, header and body control, and the response is available to later steps.

Testing ​

  1. Publish and activate the workflow.
  2. Fire a request from the sending service, or with curl.
  3. Open Run history — the run is there whether it succeeded or failed, with the exact body received.

If nothing arrives at all, check in this order: the workflow is published, it is active, and the request isn't being turned away by one of the three security controls above (those rejections answer 401, 403 or 400 to the sender).