Get latest values of all device data streams
GET/api/v1/orgs/{orgId}/devices/{deviceId}/data-streams/values/latest
Retrieve all latest data objects from data streams for the device within the system-defined retention period (default: 25 hours).
Parameters
deviceId(string, required): Unique ID of the device. Example:74fe488d5d35
Response Fields:
deviceId(string): Device unique ID.time(DateTime): Response generation timestamp, not the individual sample's timestamp.dataStreams(array): One entry per data stream that currently has data. Each item:dataStreamId(Guid): Unique ID of the data stream.dataStreamName(string): Name of the data stream.dataType(string): Data type of the sample value (e.g. double, boolean, integer, string).displayName(string, nullable): Human-readable label.unitDisplay(string, nullable): Display unit (e.g. °C).dataObject(object): Latest sample, withtimestamp(DateTime) andvalue(typed per dataType).
Responses
200 OK: Returns one latest-value entry per data stream that currently has data, including its value, value type, timestamp, and data stream name; streams with no data in the retention window are omitted from the array.204 No Content: None of the device's data streams have data in the retention window. This is a normal empty-result state, not an error; no retry is needed for the same request, poll again later once the device reports new values.400 Bad Request: Invalid request parameters.
Security
- This API requires authentication.
Request
Responses
- 200
- 204
- 400
- 401
- 403
Returns deviceId, time, and dataStreams[]: one latest-value entry per data stream that currently has data (dataStreamId, dataStreamName, dataType, displayName, unitDisplay, dataObject{timestamp,value}); streams with no data in the retention window are omitted.
None of the device's data streams have data in the retention window; this is a normal empty-result state.
Invalid request parameters.
The request is missing a bearer token, or the token is malformed, expired, or otherwise fails signature/issuer validation.
The bearer token is valid but does not grant access to this request: either it lacks the data-stream.read scope required by this endpoint, or its resource_access claim does not grant the caller access to the organization identified by orgId.