Syncing Data
Learn how to get the newest data back from us after every sync.
Syncing Data
To sync data from Kombo into your database, just call the endpoints you are interested in and handle the data on your side. To allow for faster syncs, we strongly recommend only fetching the changes that happened since the last sync.
You don’t have to worry about missing changes on your side when following the approach outlined below.
Listen to Webhooks
Kombo provides webhooks to notify you when we finish a sync or receive a webhook about changes from the HRIS/ATS system. We are tracking any changes diligently on our side so you don’t have to worry about what kind of change happened.
You can leverage those webhooks from Kombo to fetch any changes that happened since your last sync with Kombo.
To implement this, create a webhook subscription for the sync-finished
and
remote-event-received
webhooks on the webhook page.
Learn how to use webhooks in development and how to authenticate them here.
React to webhooks
After receiving a webhook, you can use the integration_id
in the body to fetch
updated data from Kombo into your database. Do that by calling the endpoints
you are interested in while providing the updated_after
query parameter. This
parameter is available for all Kombo GET endpoints. The endpoints are still
paginated when using the updated after filter.
We recommend that you persist the timestamp of your last fetching process in
your database and use that as the updated_after
filter.
Here is an example of how this could be implemented in Node.js: