Get Histories

Retrieve the history of devices within the organization.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This endpoint retrieves the history of devices within the organization. It sends an HTTP GET request to https://hub.xyte.io/core/v1/organization/devices/histories. The response of this request can be documented as a JSON schema.

Each item is a snapshot of a device's state, taken every 5 minutes, newest first. The window (from, to) defaults to the last 7 days and can be at most 31 days.

🚧

Not for measuring uptime

Get Histories doesn't return snapshots for every device, and a device that is offline when a snapshot is taken gets no item. To measure offline windows, see How do I measure device uptime with the API?.

Authorization

This endpoint requires Authorization.

Response

Returns Paginated data of the following format for each item:

KeyTypeDescription
uuidstringUnique identifier of the device. It is a universally unique identifier (UUID).
create_atstringDate and time the snapshot was taken, in ISO 8601 format (e.g., "2024-07-11T06:45:00.000Z").
namestringName of the device.
space_idintegerUnique identifier of the space that claimed the device.
modelstringModel of the device.
partnerstringName of the partner organization responsible for the device.
stateobjectContains the current state of elements of the device, for e.g., temperature, battery, etc.
Query Params
string

"online", "offline", "unavailable" or "error"

string
string
string

Unique Device ID

int32

Unique Space ID

string

Device name

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain