Activity API Reference
Enterprise API endpoints for managing activity.
List (translated) activity logs for a device
/devices/{id}/activityPath Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Query Parameters
| Parameter | In | Required |
|---|---|---|
| startDate | query | No |
| endDate | query | No |
| locale | query | No |
| limit | query | No |
| cursor | query | No |
| sort | query | No |
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 OAuth client's access has been revoked ('{error: "The user has revoked access for this application..."}'). Never returned on the API-key auth path, which does not check scope at all.
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 raw device activity logs
/devices/{id}/activityPath Parameters
| Parameter | Type | Required |
|---|---|---|
| id | string | Yes |
Body Parameters
| Parameter | Type | Required |
|---|---|---|
| logsPayload | array | Optional |
Request Example
Responses
'{msg: "Successfully."}', or '{msg: "no.activities.on.lock"}' if 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 OAuth client's access has been revoked ('{error: "The user has revoked access for this application..."}'). Never returned on the API-key auth path, which does not check scope at all.
Missing 'Content-Type: application/json'.
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.