POST to the webhook_url you pass with each request, so QuBe Sync has
to be able to reach it, and localhost isn’t reachable. For a sandbox app, the CLI forwards them to
your local app:
.env as QUBE_WEBHOOK_URL, and then prints a line for each
delivery with your app’s answer:
webhook_url. Your app reads it from QUBE_WEBHOOK_URL, so the same code sends your
real endpoint in production:
- The URL stays the same for this app on this machine, so it goes into
.envonce. - It’s delivered as in production. The body and the
X-QUBE-Signatureheader reach your app byte for byte, so you verify the signature with the sameQUBE_WEBHOOK_SECRETthatqube envwrote. - Every webhook comes through: request answers, a workflow run’s webhooks and notifications, a connection’s own events, and name index events.
- A path you add is kept. A
webhook_urlof$QUBE_WEBHOOK_URL/runsgoes to the--forward-toURL plus/runs. - Nothing else on your machine is exposed. Only QuBe Sync’s deliveries for this app come through, not requests from the internet, as a tunnel would let in.
- When it isn’t running, a delivery fails and is retried for about 8 hours like any other, and the request’s page in the dashboard has Resend webhook.
qube listenworks for sandbox apps only, and--jsonprints one line per delivery for a script or an agent. See the CLI for its flags.
Without the CLI: a tunnel
A tunnel gives your local server a public HTTPS address. SetQUBE_WEBHOOK_URL to its URL plus your
webhook route.
Keep the URL in configuration
Build every request’s
webhook_url from QUBE_WEBHOOK_URL: the qube listen URL in development,
your real endpoint in production. A free tunnel’s address changes each time it starts, so update it
then.Verify signatures in development too
Your sandbox app has its own webhook secret, so the code path is the same as in production.
Verify the signature.
Missed one while it was down?
QuBe Sync retries each delivery for about 8 hours, and any request’s page in the dashboard has
Resend webhook.
Set up a permanent tunnel
Use Cloudflare Tunnels.

