How-to: Receive webhooks
A webhook lets an external system start one of your flows by sending an HTTP request to a URL Publicus gives you. This guide shows how to create that URL, wire it to a flow, and read the incoming request inside the run.
Prerequisites
Section titled “Prerequisites”- Permission to create webhooks and flows in your workspace.
Step 1 — Create the webhook resource
Section titled “Step 1 — Create the webhook resource”- Open Webhooks and click New webhook.
- Give it a descriptive name, e.g. GitHub push events.
- Click Create. Publicus generates a unique URL for this webhook.


The webhook URL follows the pattern:
https://your-publicus.example/webhook/{workspace-id}/{webhook-id}Copy the complete URL from under the webhook’s name, at the top of its page, with Copy. You will configure your external service to POST to this URL.


Step 2 — Wire a Webhook trigger into the flow
Section titled “Step 2 — Wire a Webhook trigger into the flow”-
Open Flows → New flow. The new flow starts with a Start node.
-
Drag a Webhook node from the node picker’s Triggers — start the flow shelf onto the canvas.
-
Connect the Webhook node’s webhook handle to Start’s trigger handle.


-
In the side panel, set Webhook to the webhook you created.
-
Connect Start to your first action node.
-
Click the Webhook node’s badge on the canvas and switch Active on.


Every request to the URL now starts a run at Start. A Webhook node that is armed but not wired into Start starts nothing. Triggered runs execute the flow’s published version, or its draft until you publish it for the first time; see Triggers & arming.
Step 3 — Access the request payload
Section titled “Step 3 — Access the request payload”The inbound HTTP request body is available as $start->payload
throughout the flow. Use a Transformer to
extract the fields you need:
@json($start){ "repo": "$.payload.repository.full_name", "branch": "$.payload.ref", "pusher": "$.payload.pusher.email"}@endjsonThe rest of the request record arrives beside the body: read the
redacted request headers as $start->headers, the HTTP method as
$start->method, and the full URL with its query string as
$start->url.
Validate the payload
Section titled “Validate the payload”Add a ConditionalExit immediately after the Webhook node to reject malformed payloads. The condition is the exit predicate, so phrase it as the reason to stop:
condition: ($start->payload->event ?? '') == ''message: Missing event field, ignoring this request.This stops the flow early without raising an error, keeping your run history clean.
Concurrent request handling
Section titled “Concurrent request handling”With withoutOverlapping: true (the default), a delivery that arrives
while an earlier run of the flow is still in progress is skipped, not
queued. It never runs later, and the skip is recorded on that request in
the traffic log.
To skip only deliveries about the same thing (the same order, the same
ticket), set overlapKey to a JSON path into the payload, such as
$.objectId. If every delivery must run, set withoutOverlapping: false,
and make sure downstream nodes are safe to run concurrently against shared
storage.
Neither setting stops a sender that redelivers an event after its first run
has finished. To run each event once, set dedupKey (Skip repeats of) to
the sender’s event id, such as $.eventId. A repeat within the window, a day
by default, starts nothing and says so on the traffic log
(Skip repeats).
View the request log
Section titled “View the request log”Open Webhooks, then your webhook’s Deliveries tab, to see every inbound request, its outcome, and the runs it started. The same requests appear with all other inbound traffic on the Traffic screen. This is the first place to check if requests appear to arrive but runs are not showing up in Runs.


Test locally
Section titled “Test locally”Send a test request with curl:
curl -X POST https://your-publicus.example/webhook/YOUR_WORKSPACE_ID/YOUR_WEBHOOK_ID \ -H "Content-Type: application/json" \ -d '{"event":"push","repo":"my-repo"}'Open Runs and verify the run completed as expected.
Common patterns
Section titled “Common patterns”GitHub / GitLab push hooks
Section titled “GitHub / GitLab push hooks”Parse $start->payload->ref to extract the branch name, then use a
ConditionalExit to stop if the push is not to main.
Form submissions
Section titled “Form submissions”Use $start->payload->email, $start->payload->name, and so on with a
TableStore / Insert to persist submissions.
Stripe / payment events
Section titled “Stripe / payment events”Check $start->payload->type in a ConditionalExit to stop on any event
other than payment_intent.succeeded.
Related
Section titled “Related”- Webhook node: every field of the trigger.
- Triggers & arming: arming, the canvas badge, and which version a triggered run executes.
- Webhooks — webhook resource management.
- Tutorial: Webhook to Table Store.
- How-to: Conditional logic — guard patterns.