Get Spaces

Retrieve Information about your organization's spaces.

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

Authorization

This endpoint requires Authorization.

Maintenance filters

Both are optional and combine with the other query parameters.

ParameterTypeDescription
maintenance_scheduled_activeBooleantrue: only spaces a scheduled maintenance window covers now; false: only the others.
has_maintenance_schedulesBooleantrue: only spaces with an enabled maintenance schedule set on them or on an ancestor; false: only the others.

Response

Returns Paginated data of the following format for each item:

KeySubkeyTypeDescription
idIntegerUnique identifier for the space.
nameStringName of the space.
parent_idIntegerUnique identifier for the parent space.
pathstringFull slash (/) delimited path of the space in the tree.
space_typestringroot / room / customer
created_atDatetimeCreation timestamp
configObjectConfiguration settings for the space.
imgStringURL of an image associated with the space.
locationObjectLocation information for the space. See Location table.
priority_factorIntegerPriority factor for events related to the space.-1: High Priority, 0: No Change, 1: Low Priority
inherit_locationBooleanFlag indicating whether location should be inherited from the parent space.
temperature_unitsStringUnits for temperature measurement. Celsius, Fahrenheit
inherit_priority_factorBooleanFlag indicating whether priority factor should be inherited from the parent space.
inherit_temperature_unitsBooleanFlag indicating whether temperature units should be inherited from the parent space.
room_statusStringRoom status the portal Rooms list shows. See Room status.
room_status_updated_atDatetimeWhen the room status last changed. See Room status.
is_vipBooleanThe room is marked VIP.
maintenanceObjectWhether the space is in maintenance, manual or scheduled. See Maintenance table.

Maintenance

Every Spaces endpoint that returns a space (Get Spaces, Get Space, Create Space, Find or Create Space and Update Space) includes this maintenance object.

KeySubkeyTypeDescription
manualObjectManual maintenance, set with Set Maintenance.
activeBooleanThe space is in manual maintenance.
inheritedBooleanThe manual maintenance comes from an ancestor rather than this space itself.
scheduledObjectScheduled maintenance, set with Maintenance Schedules. A window does not change the room status by itself, but a room whose device has an open incident hidden by a window shows Maintenance rather than Error, unless another device in it is in error.
activeBooleanA scheduled maintenance window covers the space now.
untilDatetimeWhen the covering window ends (UTC); null when none is active.
next_start_atDatetimeThe next window start after now (UTC); null when none starts within 7 days.
next_end_atDatetimeEnd of that next window (UTC); null when none starts within 7 days.
has_schedulesBooleanEnabled schedules are set on this space.
inherits_schedulesBooleanAn enabled schedule on an ancestor applies to this space.

Location

KeySubkeyTypeDescription
locationObjectGeospatial coordinates of the space.
latFloatLatitude coordinate of the space.
lngFloatLongitude coordinate of the space.
utc_offsetIntegerUTC offset in minutes.
descriptionStringDescription of the location.
region_nameStringIANA Time Zone database region name.

Room status

Every space also returns:

  • room_status: the room status the portal Rooms list shows. One of no_devices (Empty), maintenance_mode (Maintenance), error (Error), warning (Warning), unknown (Unknown) or healthy (Healthy).
  • room_status_updated_at: when the room status last changed. It can also change when the status of the room's devices changes but room_status stays the same.
  • is_vip: true when the room is marked VIP.

For a space with child spaces, room_status is null, is_vip is normally false and room_status_updated_at is normally null. Unsorted and Unprovisioned spaces are not rooms in the portal. Their room_status may be null or a status the Rooms list doesn't show.

Room status filter

  • room_status: optional query parameter. Returns only spaces with that room status. The value is not case-sensitive (Error works like error). An empty room_status= applies no filter. The filter also returns Unsorted and Unprovisioned spaces that carry that status.
  • Any other value returns 400 { "error": "room_status must be one of the following: no_devices / maintenance_mode / error / warning / unknown / healthy" }.

Query Params
number

Get data about a single Space

string

Case insensitive, partial search by Space name

number

Find all children of a parent Space

string
enum

Find only "root" / "customer" / "room" type of Space

Allowed:
date-time
date-time
string

Deep search in the full space's path for a substring (User "/" as delimiter)

string
enum

Only spaces with this room status. Not case-sensitive. Empty means no filter. Any other value returns 400.

Allowed:
boolean

true: only spaces a scheduled maintenance window covers now; false: only the others

boolean

true: only spaces with an enabled maintenance schedule set on them or on an ancestor; false: only the others

Responses

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