Webhooks
Real-time integrations on Pandium with webhooks: how third-party events reach your integration, how payloads and headers are delivered, and the trade-offs.
Webhooks are how Pandium handles real-time syncing. The direction flips from batch: instead of Pandium polling for changes, the third-party system calls Pandium the moment something happens. You register a URL, the platform posts events to it as they occur, and Pandium hands the payload to your integration to react to, usually by calling another API.

How it works on Pandium
Webhook is one of the four trigger types described in Run Triggers. The integration itself is the same short-lived script as a batch run. What changes is what starts it.
Each tenant connector gets its own webhook URL. When a tenant connects, Pandium generates a unique URL for that tenant and connector. You can find it under Connector Info on the tenant details page. Because the URL is unique and unguessable, only a system you have given it to can trigger runs for that tenant.
Subscriptions can be created for you. For connectors whose API supports creating webhook subscriptions programmatically, Pandium registers the selected events with the third party when the tenant connects, and removes them on disconnect. See the FAQ.
The payload reaches your script as a file. Each webhook becomes a run trigger in the
PAN_CTX_RUN_TRIGGERSenvironment variable, with the body saved to a file and the request headers included alongside it. If the third party signs its payloads, the signature header is there for your script to verify against the secret it holds.Bursts are consolidated. Sequential webhooks arriving for the same tenant are bundled into a single run rather than one run per event. If a webhook lands while a run is already in progress, Pandium queues a follow-up run that starts when the current one completes.
Strengths and trade-offs
Webhooks give you a near-real-time reaction without polling: no wasted calls checking for changes that have not happened, and load scales with event volume rather than tenant count.
The trade-off is that delivery is on the third party's terms. Most platforms deliver at least once, in no guaranteed order, and retry on failure, so your integration needs to be idempotent: processing the same event twice must not create a second record. Because a webhook can be missed, most real-time integrations still pair with a scheduled batch run as a backstop.
When to use it
Use webhooks when event volume is manageable and you need a fast reaction to something that just happened. It works across any tool that emits webhooks, in any industry.
Real-world examples
A new support ticket in a helpdesk tool triggering a sync to a project tracker
A successful payment in a billing platform updating a customer's account status
An order created in an ecommerce platform being mirrored into a fulfillment or tax system within seconds
Related reading
PubSub, for when webhook volume outgrows a single endpoint
Last updated
Was this helpful?