Departments API Reference
API endpoints for managing departments.
List Departments
https://api.igloohome.co/works/departmentsQuery Parameters
limitinteger- Constraints:
>= 1,<= 300 - Default:
100
- Constraints:
cursorstringsortstring- Default:
desc - Allowed values:
asc,desc
- Default:
Request Example
Responses
OK.
Unauthorized, invalid or expired authorization token
Forbidden. One of: (1) the token is valid but lacks the required scope for this endpoint (no body); (2) the user revoked the OAuth client's access ('{error: "The user has revoked access for this application..."}').
Response body
nextCursorstring
Present only if another page exists.payloadarray of objectidstringdepartmentNamestringpropertyRefarray of object
Response body
errorstring
Response body
errorstring
Response body
errorstring
No example response recorded for this status code.
Example response — 402-account-suspended:
Example response — 402-trial-ended:
No example response recorded for this status code.
List Department Properties
https://api.igloohome.co/works/departments/{departmentId}/propertiesPath Parameters
| Parameter | Type | Required |
|---|---|---|
| departmentId | string | Yes |
Query Parameters
limitinteger- Constraints:
>= 1,<= 300 - Default:
100
- Constraints:
cursorstringsortstring- Default:
desc - Allowed values:
asc,desc
- Default:
Request Example
Responses
OK. Empty 'payload' (not a 404) if the department has zero properties.
Unauthorized, invalid or expired authorization token
Forbidden. One of: (1) the token is valid but lacks the required scope for this endpoint (no body); (2) the user revoked the OAuth client's access ('{error: "The user has revoked access for this application..."}').
Department not found.
Response body
nextCursorstring
Present only if another page exists.payloadarray of objectidstringnamestringtimezonestringtotalLockinteger
Response body
errorstring
Response body
errorstring
Response body
errorstring
Response body
errorstring
No example response recorded for this status code.
Example response — 402-account-suspended:
Example response — 402-trial-ended:
No example response recorded for this status code.
List Department Access
https://api.igloohome.co/works/departments/{id}/accessSame response shape as GET /devices/{id}/access, scoped to the department.
Path Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Query Parameters
limitinteger- Constraints:
>= 1,<= 300 - Default:
100
- Constraints:
cursorstringsortstring- Default:
desc - Allowed values:
asc,desc
- Default:
Request Example
Responses
OK.
Unauthorized, invalid or expired authorization token
Forbidden. One of: (1) the token is valid but lacks the required scope for this endpoint (no body); (2) the user revoked the OAuth client's access ('{error: "The user has revoked access for this application..."}').
Department not found.
Response body
nextCursorstring
Present only if another page exists.payloadarray of objectidstringnamestringaccessTypestring- Allowed values:
pin,ekey,nfc,fingerprint
- Allowed values:
bluetoothDeviceNamestringisCustomPinboolean
Present only if accessType===pin.pinstring
Present only if accessType===pin.pinTypestring
Present only if accessType===pin. The API stores and reports AlgoPIN daily/hourly variants asduration.- Allowed values:
otp,duration,permanent
- Allowed values:
startDateTimestring<date-time>endDateTimestring<date-time>recipientobject
Present only ifaccessTypeisekey.namestringemailstring
createdAtstring<date-time>
Response body
errorstring
Response body
errorstring
Response body
errorstring
No example response recorded for this status code.
Example response — 402-account-suspended:
Example response — 402-trial-ended:
No example response recorded for this status code.
List Department Devices
https://api.igloohome.co/works/departments/{id}/devicesSame response shape as GET /devices, scoped to the department.
Path Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Query Parameters
limitinteger- Constraints:
>= 1,<= 300 - Default:
100
- Constraints:
cursorstringsortstring- Default:
desc - Allowed values:
asc,desc
- Default:
Request Example
Responses
OK.
Unauthorized, invalid or expired authorization token
Forbidden. One of: (1) the token is valid but lacks the required scope for this endpoint (no body); (2) the user revoked the OAuth client's access ('{error: "The user has revoked access for this application..."}').
Department not found.
Response body
nextCursorstring
Present only if another page exists.payloadarray of objectidstringtypestring- Allowed values:
Lock,Bridge,Keypad,Fob
- Allowed values:
deviceIdstringdeviceNamestringbatteryLevelnumberpairedAtstring<date-time>lockStatusstring
Present only onGET /devices/{id}, and only for a Lock linked to a Bridge. No list endpoint that returns this schema populates it.propertiesarray of objectidstringnamestringtimezonestring
linkedDevicesarray of objectidstringtypestringdeviceIdstringnamestring
linkedAccessoriesarray of objectidstringtypestringdeviceIdstringnamestring
lastSyncstring<date-time>
Response body
errorstring
Response body
errorstring
Response body
errorstring
No example response recorded for this status code.
Example response — 402-account-suspended:
Example response — 402-trial-ended:
No example response recorded for this status code.