API
Units
Retrieve units data for specified or all accessible stations with optional filters
AuthorizationBearer <token>
In: header
Query Parameters
station_ids?string
Comma-separated list of station IDs
to?string
Default
"2025-10-27T21:10:17.190Z"Format
date-timefrom?string
Default
"2025-10-26T21:10:17.190Z"Format
date-timetype?array<string> & string
The unit types to filter by. Can be repeated (?type=sensor&type=actuator) or comma-separated (?type=sensor,actuator)
Default
[]serial_number?string
The serial number of the unit to filter by
direction?array<string> & string
The directions to filter by. Can be repeated (?direction=input&direction=output) or comma-separated (?direction=input,output)
Default
["output"]Response Body
curl -X GET "https://api.autumnlabs.io/units?station_ids=string&to=2025-10-27T21%3A10%3A17.190Z&from=2025-10-26T21%3A10%3A17.190Z&type=sensor%2Cactuator&serial_number=string&direction=input%2Coutput"{
"data": [
{
"station_id": "string",
"slot": "string",
"unit_serial": "string",
"time_created": "string",
"tz": "string",
"mode": "string",
"tags": [
"string"
],
"unit_type": "string",
"direction": "input",
"result": "string",
"metadata": null
}
],
"message": "string",
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"request_id": "string",
"query_duration_ms": 0
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}{
"error": {
"code": "string",
"message": "string",
"details": null
}
}