Device Status SSE Stream
GET/api/v1/device/status/stream
Server-Sent Events endpoint that pushes real-time device status updates (discovery, delivery, deploy). Optionally filter by projectId and/or deviceIds query parameters.
Each SSE message has the format: { data, id, type } where data is a JSON-serialized DeviceStatusEventDto.
Note: Not all properties are present on every event — availability depends on the statusType:
- DISCOVERY:
deviceId,status,timestamp, and optionallymessage,error,metadata. - DELIVERY:
deviceId,releaseId,projectId,status,timestamp, and optionallyprogress,message,error. - DEPLOY:
deviceId,releaseId,projectId,status,timestamp, and optionallyprogress,message,error.
Request
Query Parameters
Filter events by project ID
Filter events by specific device IDs (comma-separated or repeated query params)
Responses
- 200
SSE stream emitting device status update messages
- application/json
- Schema
- Example (from schema)
Schema
data
object
Default value: device_status_update
The device identifier
Project ID the release belongs to. Present for DELIVERY and DEPLOY events.
Release/catalog ID being delivered or deployed. Present for DELIVERY and DEPLOY events.
Possible values: [discovery, delivery, deploy, status]
Which pipeline stage: discovery, delivery, or deploy
Possible values: [new, discovered, Start, Done, Error, Download, Installing, Continue, Pause, Cancelled, Uninstall, Deleted]
Current lifecycle status value (e.g. Start, Done, Error, Download, Installing). Present for DISCOVERY/DELIVERY/DEPLOY events.
Possible values: [updating, error, restricted]
Resolved operational conditions (updating/error/restricted). Present for STATUS-type events.
ISO 8601 timestamp of when the event occurred
Human-readable description of the event
Error message when status is Error
Possible values: <= 100
Progress percentage (0-100) for DELIVERY/DEPLOY events
metadata
object
Device details. Typically present only for DISCOVERY events.
Possible values: [online, active, offline, disconnected]
Connectivity state, computed at read-time: online > active > offline > disconnected.
Possible values: [updating, error, restricted]
Operational conditions; a device may have several at once (updating/error/restricted).
True when the device currently holds an open reactive (managed-command) SSE channel.
The device's platform type name (server-derived from the platform_type catalog).
Platform instance id reported by the agent.
Unique event ID (timestamp-based)
SSE event type
{
"data": {
"type": "device_status_update",
"deviceId": "string",
"projectId": "string",
"releaseId": "string",
"statusType": "discovery",
"status": "new",
"deviceStatus": [
"updating"
],
"timestamp": "2026-06-10T10:00:00.000Z",
"message": "string",
"error": "string",
"progress": 0,
"metadata": {
"id": "string",
"lastUpdatedDate": "2026-11-08T13:48:44.824Z",
"lastConnectionDate": "2026-11-08T13:48:44.824Z",
"name": "string",
"OS": "string",
"availableStorage": "string",
"power": 0,
"bandwidth": 0,
"operativeState": true,
"state": "online",
"status": [
"updating"
],
"online": true,
"metaData": {},
"groupName": "string",
"groupId": 0,
"uid": "string",
"formations": [
"string"
],
"platformName": "string",
"platformTypeName": "string",
"deviceTypeName": "string",
"devices": [
"string"
],
"platformId": "string"
}
},
"id": "1718010000000",
"type": "device_status_update"
}