Activity API Reference
API endpoints for managing activity.
List Device Activity
https://api.igloohome.co/works/devices/{id}/activityReturns the device's activity logs translated into readable events.
Path Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Query Parameters
startDatestring
FormatYYYY-MM-DD(date only, no time component).endDatestring
FormatYYYY-MM-DD(date only, no time component). Must be on or after startDate.localestring
Language to translate activity messages into.- Default:
en - Allowed values:
en,fr,id,ko,zh,ru
- Default:
limitinteger- Constraints:
>= 1,<= 300 - Default:
100
- Constraints:
cursorstringsortstring- Default:
desc - Allowed values:
asc,desc
- Default:
Request Example
Responses
OK.
Query/body validation failure.
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 object
Translated activity records, enriched with related user/lock/access details.
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.
Push Device Activity
https://api.igloohome.co/works/devices/{id}/activityPath Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Body Parameters
logsPayloadarray of string required
Request Example
Responses
'{msg: "Successfully."}', or '{msg: "no.activities.on.lock"}' if there is nothing new to process.
Query/body validation failure.
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..."}').
Missing 'Content-Type: application/json'.
Response body
msgstring
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.