List facilities
Allows you to retrieve the paginated list of facilities that you have access to.
Query parameters
-
criteria to filter by
-
criteria to sort by
-
amount of results per page to return
-
page number
-
ISO8601 formatted date to query data from
-
Format in which to request the response. Defaults to JSON
Values are
csv
orjson
. -
optional features to include. This is a list of values separated by colons ':'. The avaiable values are: cycle_count (adds cycles_count), utilization_times (adds utilization_minutes and working_minutes), energy_usage (adds kwh_usage and gas_usage), active_alerts (adds active_alerts_count), service_events_count (adds service_events and events_missed), and overuse_data (adds overuse_minutes and overuse_cycles)
-
criteria to search by
-
ISO8601 formatted date to query data until
curl \
--request GET 'http://localhost:4000/api/facilities?start=string' \
--header "Authorization: $API_KEY"
{
"data": [
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"name": "Test Facility",
"booths": 1,
"status": "active",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"working_hours": []
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
{
"data": [
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"name": "Test Facility",
"booths": 1,
"status": "active",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"working_hours": []
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
{
"error": "Error Reason"
}
{
"error": "Error Reason"
}