API

Stream Device configuration changes

Streams signal-only change events for the authenticated Device.

configuration_changed means the Device must refetch its effective configuration. company_updated means the Device's company changed and the Device must refetch it. The Device must refetch both after every reconnect. The stream never contains configuration, company or credential data; periodic comments keep idle streams active.

GET/v1/hq/devices/{device_id}/stream

Authorization

DeviceTokenAuth

AuthorizationBearer <token>

Bearer token issued to a paired device; an operation's scopes list the device types allowed to call it, such as checkin.

In: header

Scope: checkin

Path Parameters

device_id*string
Example"dwawd8awudawd"

Response Body

text/event-stream

curl -X GET "https://api.noona.is/v1/hq/devices/dwawd8awudawd/stream"
"event: configuration_changed\ndata: {\"device_id\":\"dwawd8awudawd\"}\n\nevent: company_updated\ndata: {\"company_id\":\"Kx7yPq2LmN4vRt8w\"}\n"
Empty
Empty
Empty
Empty
Empty
Empty