API reference

Helpdesk

The client tenants a helpdesk works on, and the activity feed of helpdesk actions across them.

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.

Headershttp
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).

Statuserror_codeWhen
401A credential is missing or invalid.
403workspace_access_deniedThe M2M token's app is not in the workspace in the URL.
404Workspace 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.

GET/v1/workspaces/:workspace_id/helpdesk/clientsAPI key + M2M token
workspace_idstringrequired
Path. UUID or slug.
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/helpdesk/clients \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "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}
FieldDescription
nameThe workspace's branding display name, else its name.
own_tenanttrue for the workspace in the URL.
entra_connected, entra_enabledAn Entra connection exists, and it is on.
tenant_idThe Microsoft tenant ID.
target_app_public_idThe app the tenant's synced users live in.
pushMicrosoft Authenticator push is available.
duoThe workspace has a Duo connection.
admin_actions_enabledHelpdesk 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.

GET/v1/workspaces/:workspace_id/helpdesk/activityAPI key + M2M token
workspace_idstringrequired
Path. An MSP or Master workspace.
clientstring
Query. One connected client under the workspace, by ID or slug.
actionsstring
Query. Comma-separated action names as rows show them (account_locked, password_reset), or full event slugs.
actorstring
Query. Only rows by this actor (case-insensitive).
okboolean
Query. Only rows that succeeded (true) or failed (false).
sincestring
Query. A date or time. Rows at or after it.
untilstring
Query. A date or time. Rows at or before it.
limitinteger
Query. Rows per page. Default 25, at most 100.
beforestring
Query. The id of the last row you have. Returns older rows.
formatstring
Query. csv downloads the rows instead, at most 5,000.
Requestbash
curl "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"
Response 200json
{  "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.

StatuserrorWhen
422rollup_not_availableThe workspace is not an MSP or Master. A client reads its own feed with Get a tenant's audit log.
422invalid_clientclient is not a connected client under this workspace.
422invalid_since, invalid_untilNot a date or time.
422invalid_cursorbefore is not the ID of a row in this feed.
Account actions
Lock, reset, revoke, MFA, licenses and groups in a tenant.
Device actions
Devices, BitLocker keys, LAPS passwords and Intune actions.
JIT admin and vault
Temporary admin accounts and kept admin passwords.