Skip to main content

Pull events from server

Returns events updated after since, paginated with a composite cursor. Pages are 10 events by default (100 when areaIds is provided). When areaIds is set, events are server-side filtered to only those targeting entities in the listed areas.

Unresolved potential duplicates do not block delivery but are surfaced as a warnings array in the response.

Request

Method: GET
Path: /api/sync/pull

Authentication: Not required

Parameters

NameTypeInRequiredDescription
undefinedstringundefinedNo
sincestringqueryNoComposite cursor `timestamp
areaIdsstringqueryNoComma-separated area IDs for selective sync

Responses

200 - Page of events

404 - Tenant not found

Examples

cURL

curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/api/sync/pull

JavaScript

const response = await fetch('http://localhost:3000/api/sync/pull', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.