Docs / iglooworks / API Reference / Account
Account API Reference
API endpoints for managing account.
Get Account
GET
https://api.igloohome.co/works/accountRequest Example
Responses
200401403
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
payloadobject_idstringcompanyIdstringcompanyNamestringisFlatOrgboolean
A single-department ("flat org") account has no department structure. Its devices and users all belong to one implicit department. Whentrue,departmentId/departmentReffields on other endpoints become optional or not applicable. Whenfalse, an explicit department is required.
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.