SmartGare
API referenceEndpoints

Listen for what changes

A server-sent event stream: one `notice` event per business fact announced on this server — its type, the kind and id of what it is about, when it happened — and a keep-alive comment every fifteen seconds; only the notices of modules the caller may read. It closes when the sign-in expires, after thirty minutes at most, or when the screen falls behind; reconnect then. Four streams per person at most. **Required permission:** `platform.live:read`

GET/platform/v1/live

A server-sent event stream: one notice event per business fact announced on this server — its type, the kind and id of what it is about, when it happened — and a keep-alive comment every fifteen seconds; only the notices of modules the caller may read. It closes when the sign-in expires, after thirty minutes at most, or when the screen falls behind; reconnect then. Four streams per person at most.

Required permission: platform.live:read

AuthorizationBearer <token>

In: header

Query Parameters

types?string

The event types to hear, by their start, comma-separated, such as siv.,cycle.; every module the caller may read when left out; a module it may not read is refused.

Response Body

text/event-stream

curl -X GET "https://example.com/platform/v1/live"
{  "timeout": 0}