GET /accesses with the cursor the API returns. If you store the cursor between requests, you get each access once and never skip one.
You need a key with the accesses:read scope.
How the list is ordered
Each access has two timestamps:
The list is ordered by arrival (
received_at), not by occurred_at. The two are usually almost the same. But if a device at the gate loses its connection, it sends its accesses when it reconnects: an access from yesterday can arrive today.
Because the list is ordered by arrival, that access shows up after your cursor, and you get it on your next request.
Sync
1
Run the initial load
Request Each response carries a page of accesses,
GET /accesses without a cursor. The list starts at the beginning of the installation’s history.has_more, and next_cursor:limit defaults to 500, with a maximum of 1000.2
Store the accesses and the cursor together
Store the page’s accesses and
next_cursor in the same transaction. Use the access id as the key to insert or update.If your process crashes between pages, resume from the last stored cursor. If you get a page again, the id prevents duplicates.3
Continue while there's more
While The initial load can take many pages. Space out your requests to stay under the limit of 5 per second.
has_more is true, request the next page, sending the latest next_cursor as cursor:4
Poll
has_more: false means there are no more accesses for now. Wait an interval, for example one minute, and repeat the request with the latest next_cursor. Repeat this step forever.Example
save stores the accesses by id and the cursor in the same transaction.
Cursor rules
next_cursoris always present. Always store the latest one, even when the page is empty. The cursor can advance without returning accesses, for example when nothing matches your filters.- Only use cursors from the API. The cursor is opaque: don’t build or change it. An invalid cursor answers
400 invalid_parameter. - Keep the same filters. The cursor doesn’t remember your filters. Send the same
occurred_from,occurred_to,site_ids[],direction, andvisitor_typefor the whole traversal. If you change the filters, start a new traversal without acursor.
Accesses that arrive late
If you request a date range without a cursor, you can miss accesses. For example, a report for yesterday built at 00:05 withoccurred_from and occurred_to misses an access from yesterday that arrives at 00:10.
For reports by date:
- Sync with the cursor, as in this guide.
- Build the report from your copy, filtering by
occurred_at. - When an access arrives with an
occurred_aton a day you already reported, recompute that day.
occurred_from and occurred_to filters form a half-open range [from, to). A date or a time without a time zone is read in Chile’s time zone (America/Santiago).
Deleted accesses
The list only includes current accesses. If an access is deleted after you synced it, the list doesn’t tell you.GET /accesses/{id} answers 404 for a deleted access.

