The helpdesk endpoints act on the Microsoft Entra tenants of your workspaces: list the clients, read what was done, and run account and device actions in a tenant. An MSP or Master workspace reads its clients; a client or standard workspace is its own tenant.
Authentication#
API key + M2M token
Send an app key or workspace key in Authorization and an M2M token in X-Authorization. The M2M token's app must be in the workspace named in the URL. To act on a client tenant, use an M2M token of an app in that client workspace.
Authorization: Bearer scworks_...X-Authorization: Bearer scm2m_...The M2M token needs its read scope for GET calls and its write scope for the rest (403 insufficient_scope).
| Status | error_code | When |
|---|---|---|
| 401 | A credential is missing or invalid. | |
| 403 | workspace_access_denied | The M2M token's app is not in the workspace in the URL. |
| 404 | Workspace not found. |
List helpdesk clients#
The tenants a workspace works on, in one read: the workspace itself first (unless it is an MSP, which has no tenant of its own), then every client workspace below it by name.
/v1/workspaces/:workspace_id/helpdesk/clientsAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/helpdesk/clients \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "workspace_id": "0193f8aa-1111-7222-8333-444444444444", "clients": [ { "id": "0193f8aa-5555-7666-8777-888888888888", "slug": "wayne-industries", "name": "Wayne", "workspace_type": "msp_client", "parent_workspace_id": "0193f8aa-1111-7222-8333-444444444444", "own_tenant": false, "entra_connected": true, "entra_enabled": true, "tenant_id": "6f2c1a9e-3b4d-4e5f-8a7b-9c0d1e2f3a4b", "target_app_public_id": "app_3mxZRrzWxhPZ08dXvqq6", "push": true, "duo": false, "admin_actions_enabled": true } ], "truncated": false}| Field | Description |
|---|---|
| name | The workspace's branding display name, else its name. |
| own_tenant | true for the workspace in the URL. |
| entra_connected, entra_enabled | An Entra connection exists, and it is on. |
| tenant_id | The Microsoft tenant ID. |
| target_app_public_id | The app the tenant's synced users live in. |
| push | Microsoft Authenticator push is available. |
| duo | The workspace has a Duo connection. |
| admin_actions_enabled | Helpdesk actions are on for this tenant. |
At most 500 clients are returned; truncated is true when there are more.
Get the activity feed#
The helpdesk actions run across an MSP's or Master's clients, newest first, each row naming its client. A Master's own tenant is included. Each tenant's rows are read on that tenant's own terms: a client that would refuse the read is left out and listed under skipped.
/v1/workspaces/:workspace_id/helpdesk/activityAPI key + M2M tokencurl "https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/helpdesk/activity?limit=2&ok=true" \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "ok": true, "data": { "entries": [ { "id": "0193fb10-2222-7333-8444-555555555555", "at": "2026-11-19T13:58:02Z", "action": "password_reset", "actor": "helpdesk-server", "actor_type": "api_key", "target": "jane@wayne.example", "ok": true, "provider": "entra", "verification": "challenge", "verification_id": "48da3b64-413f-48f3-bd22-40443fc0019d", "forced": false, "psa_ticket": null, "meta": {}, "client": { "id": "0193f8aa-5555-7666-8777-888888888888", "slug": "wayne-industries", "name": "Wayne" } } ], "next_before": "0193fb10-2222-7333-8444-555555555555", "clients": [ { "id": "0193f8aa-5555-7666-8777-888888888888", "slug": "wayne-industries", "name": "Wayne" } ], "skipped": [ { "client": { "id": "0193f8aa-9999-7aaa-8bbb-cccccccccccc", "slug": "acme-co", "name": "Acme" }, "reason": "admin_actions_disabled" } ] }}next_before is present while older rows remain. verification says how the action was let through: challenge (with verification_id), override, or none. truncated: true appears when the workspace has more than 500 connected clients.
A skipped reason is one of admin_actions_disabled, operator_not_permitted, operator_paused or approval_required.
With format=csv the response is a CSV file with a client column first. The headers X-Export-Rows and X-Export-Truncated say how many rows it holds and whether it stopped at the cap.
| Status | error | When |
|---|---|---|
| 422 | rollup_not_available | The workspace is not an MSP or Master. A client reads its own feed with Get a tenant's audit log. |
| 422 | invalid_client | client is not a connected client under this workspace. |
| 422 | invalid_since, invalid_until | Not a date or time. |
| 422 | invalid_cursor | before is not the ID of a row in this feed. |