Skip to content

How Data Extraction Works

Most integrations that read from Ditio — BI dashboards, data warehouses, payroll systems — follow the same five stages. This page is the map; each stage links to the page with the detail.

1 Create API client Ditio backoffice 2 Get token Identity server 3 Call endpoint Reporting API 4 Paginate Continuation token 5 Sync changes ModifiedSince repeat on a schedule
  1. Create an API client in the Ditio backoffice to get a client id and secret, scoped to the data you need. See Authentication.

  2. Get a token by exchanging those credentials at the identity server. Tokens are short-lived — cache one and reuse it until it expires rather than fetching a new one per call.

  3. Call the endpoint on the reporting base with the token in the Authorization: Bearer header. Pick the endpoint for the data you want from the Data Extraction reference.

  4. Paginate through the result. Each response carries a continuationToken; pass it back on the next call until it comes back empty. This is the same for every extraction endpoint — see Pagination.

  5. Sync changes on a schedule. Instead of re-pulling everything, pass ModifiedSince (your last successful sync time) to get only records created, edited, or deleted since then — including deletions, flagged with isDeleted.

Full syncIncremental sync
TriggerFromDateTime + ToDateTimeModifiedSince (+ optional ModifiedBefore)
ReturnsEverything in the date windowOnly records changed since your last sync
Use forThe first load, or a full re-syncEvery scheduled run after the first
Catches edits to old records?NoYes

The usual pattern is one full sync to seed your store, then incremental syncs on a timer (nightly or hourly) forever after.

You want…EndpointPage
Hours workedv1/time-registrationsTime Registrations
Leave / absencev1/absence-registrationsAbsence Registrations
Machine usagev1/machine-registrationsMachine Registrations
Mass-haul tripsv1/flow-trip-registrationsMass Transport Registrations
HSE incidents & checklistsv1/incident-registrations, v1/checklist-registrationsSafety Reporting
Payroll resultv1/payroll-linesPayroll Lines
Site photosv1/imagesImage Extraction

To resolve the IDs that come back (userId, projectId, resourceId), pull the matching metadata endpoint once and join on your side — see the Data Model.