Users API Reference
API endpoints for managing users.
List Users
https://api.igloohome.co/works/usersReturns a plain array of user records. Unlike other list endpoints, this response is not wrapped in {payload: [...]} and does not support pagination.
Request Example
Responses
OK. Raw array, not '{payload}'-wrapped.
'{message: "Company ID missing", code: "COMPANY_ID_MISSING"}'.
Unauthorized, invalid or expired authorization token
'{message: "Internal server error", code: "INTERNAL_SERVER_ERROR"}'.
Response body
messagestringcodestring
Response body
errorstring
Response body
errorstring
Response body
messagestringcodestring
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.
Create User
https://api.igloohome.co/works/usersCreates the user and sends them an invitation.
Body Parameters
emailstring<email> requiredfirstNamestring requiredlastNamestring requireduserTypestring required- Allowed values:
ADMIN,MANAGER,GUEST
- Allowed values:
departmentRefarray of string
Department IDs. Required for non-ADMIN users in multi-department accounts; not allowed in single-department accounts; ignored for ADMIN (admins get all departments).mobileNumberstring
Requires mobileCountryCode in the same request. Must be unique within the account.mobileCountryCodestring
Required if mobileNumber is set. Prefix such as+65, prepended to mobileNumber.mfaPreferenceboolean
Request Example
Responses
Created.
Bad Request
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..."}').
USER_ALREADY_EXISTS.
FLAT_ORG_DEPT_NOT_FOUND, COGNITO_CREATE_FAILED, COGNITO_REF_MISSING, USER_RECORD_CREATION_FAILED.
Response body
messagestringuserobject
Response body
messagestringcodestring
Response body
errorstring
Response body
errorstring
Response body
errorstring
Response body
messagestringcodestring
Response body
messagestringcodestring
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.
Update User
https://api.igloohome.co/works/users/{id}Path Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Body Parameters
fullNamestring
Full name as one string. Create usesfirstNameandlastName; update takesfullNameinstead.mobileCountryCodestringmobileNumberstring
Requires mobileCountryCode in the same request. Must be unique within the account.langstringuserTypestring- Allowed values:
ADMIN,MANAGER,GUEST
- Allowed values:
departmentRefarray of string
Department IDs. Replaces the user's current departments. Not allowed for single-department accounts or when userType is ADMIN.mfaPreferenceboolean
Request Example
Responses
Updated. Returns '{message: "No changes provided to update", user}' if every provided field matched the existing value.
MOBILE_COUNTRY_CODE_REQUIRED, PHONE_NUMBER_IN_USE, DEPARTMENT_REF_NOT_ALLOWED, admin-cannot-have-department.
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..."}').
USER_NOT_FOUND.
Response body
messagestringuserobject
Response body
messagestringcodestring
Response body
errorstring
Response body
errorstring
Response body
errorstring
Response body
messagestringcodestring
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.
Delete User
https://api.igloohome.co/works/users/{id}Behavior branches on whether the user has confirmed their invite yet: unconfirmed → cancels the invite and soft-deletes; confirmed → disables the user (isEnabled: false) and removes their eKey/MFA access instead of deleting the record outright.
Path Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Request Example
Responses
"User invitation cancelled successfully" or "User deactivated successfully".
Unauthorized, invalid or expired authorization token
USER_NOT_FOUND.
USER_ACCEPTED_INVITATION (trying to cancel an invite that was already accepted).
Response body
messagestringuserobject
Response body
errorstring
Response body
errorstring
Response body
messagestringcodestring
Response body
messagestringcodestring
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.