Skip to main content
Answers from QuickBooks arrive as a 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:
It prints your webhook URL, writes it into .env as QUBE_WEBHOOK_URL, and then prints a line for each delivery with your app’s answer:
Pass that URL as your 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 .env once.
  • It’s delivered as in production. The body and the X-QUBE-Signature header reach your app byte for byte, so you verify the signature with the same QUBE_WEBHOOK_SECRET that qube env wrote.
  • 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_url of $QUBE_WEBHOOK_URL/runs goes to the --forward-to URL 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 listen works for sandbox apps only, and --json prints 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. Set QUBE_WEBHOOK_URL to its URL plus your webhook route.
Tips:

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