Which webhook events does a connector support? Native, virtual and none
Whether you get webhooks for a connector, and which ones, depends on the provider. Each connector works one of three ways:
Native | Virtual | None | |
|---|---|---|---|
How it works | The provider sends events to Apideck, and Apideck forwards them to you | Apideck regularly checks the provider for changes and sends you events | No webhooks for this connector |
Speed | Near real time | Depends on the polling interval, often hours | |
Events | What the provider sends, for example |
| |
Examples | QuickBooks, Xero, HubSpot, Shopify | NetSuite, Sage Intacct, BambooHR, Fortnox |
How to check a connector
On its page: open the connector in the connector catalog. The Overview tab says whether it has native or virtual webhooks.
In code: the Connector API (
GET /connector/connectors/{id}) returnswebhook_support.mode(native,virtualornone) andsupported_events: the list of event types, each markednativeorvirtual.
Subscribe only to events in that list. Events for other resources never arrive for that connector.
Native webhooks: setup at the provider
For some native connectors, such as QuickBooks, Xero and HubSpot, the provider sends webhooks to one URL per developer app, which you set in that app's settings at the provider. So:
You need your own OAuth app. Native webhooks don't work with Apideck's shared credentials. See Do I need my own OAuth app?
You paste Apideck's webhook URL into your app at the provider. Copy the Webhook Execute URL from the connector's settings in the Apideck dashboard.
Connector-specific steps: Xero, Shopify.
Virtual webhooks: things to know
The first sync records a starting point. Events start from the second sync, so records that already existed don't send
createdevents. See Virtual webhooks: why am I not receiving events?Deleted records don't send events at the moment, even where
.deletedevents are listed for the connector. If you need to know about deletions, compare with a full list periodically.Updated events without a new timestamp. An
updatedevent can arrive whileupdated_athasn't changed. When a provider doesn't give reliable timestamps, Apideck detects changes by comparing the content of each record as the provider returns it. A change to any of those fields sends anupdatedevent, even a field Apideck doesn't map. Treatupdatedas "fetch the record again", and compare with what you have stored.
No webhooks
For connectors without webhooks, poll on a schedule and fetch only what changed, using filter[updated_since] where the connector supports it. See Understanding Connector Coverage and Limitations.
Contact Apideck support through the Customer Portal (the Requests link at the top of this help center), your Slack channel with us, or support@apideck.com if events for a connector don't arrive.
