API reference

Decisions

The logged authorization decisions of every app in a workspace, and a check of their hash chains.

Scute logs authorization decisions: the apps' end-user checks (kind end_user) and the team's own operator checks (kind operator). Each app's rows and the team's rows form separate hash chains.

With an API key and M2M token you read the apps' rows. The team's rows need a signed-in owner or admin. With an app key you read that app's rows only.

Send an API key in Authorization and an M2M token with the read scope in X-Authorization. The token's app must be in the workspace in the URL.

List decisions#

Returns decisions newest first.

GET/v1/workspaces/:workspace_id/decisionsAPI key + M2M token
workspace_idstringrequired
UUID or slug of the workspace.
kindstring
end_user or operator. operator returns 403 for a key.
app_idstring
One app of the workspace (UUID or app_...).
user_idstring
An app user's or team member's UUID.
agent_idstring
An agent's UUID.
task_idstring
An agent task's UUID.
decisionstring
The decision value, for example allow.
permissionstring
The permission checked. Also accepted as action_key.
resourcestring
The resource checked, as stored (for example document:42).
reasonstring
The reason recorded with the decision.
sincestring
Only rows at or after this time.
untilstring
Only rows before this time.
limitinteger
Default 50, maximum 200.
beforestring
The next value of the previous page.
Requestbash
curl "https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/decisions?kind=end_user&limit=20" \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "decisions": [    {      "id": "0193fe00-4444-7555-8666-000000000009",      "at": "2026-11-19T09:30:00.123Z",      "kind": "end_user",      "user_id": "0193f900-aaaa-7bbb-8ccc-000000000001",      "permission": "document:read",      "resource": "document:42",      "decision": "allow",      "reason": "role_grant",      "roles": ["viewer"],      "policy_version": 7,      "latency_ms": 1.204,      "person": { "id": "0193f900-aaaa-7bbb-8ccc-000000000001", "name": "Jane Doe", "email": "jane@example.com" },      "seq": 1180,      "row_hash": "3be1...90fa",      "app": { "id": "app_3mxZRrzWxhPZ08dXvqq6", "name": "Wayne Industries", "slug": "wayne-industries" }    }  ],  "next": "0193fe00-4444-7555-8666-000000000009",  "can_read_operator_log": false}

The example shows a subset of the fields. Rows can also carry agent_id, task_id, explanation, details, agent and target. next is absent on the last page.

Statuserror_codeWhen
403operator_log_admin_onlykind=operator without a signed-in owner or admin
404app_id is not an app of the workspace
422invalidkind, user_id, limit, since or until is malformed

Verify decision chains#

Checks every chain the caller can read: one per app, plus the team's for a signed-in owner or admin. Chains with no rows in the window are left out.

GET/v1/workspaces/:workspace_id/decisions/verifyAPI key + M2M token
fromstring
Check rows from this time.
tostring
Check rows up to this time.
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/decisions/verify \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "ok": true,  "checked": 1180,  "can_read_operator_log": false,  "chains": [    {      "chain": "app:0193f8aa-9999-7aaa-8bbb-cccccccccccc",      "kind": "end_user",      "app": { "id": "app_3mxZRrzWxhPZ08dXvqq6", "name": "Wayne Industries", "slug": "wayne-industries" },      "ok": true,      "checked": 1180,      "head": { "seq": 1180, "row_hash": "3be1...90fa", "at": "2026-11-19T09:30:00.123456Z" }    }  ]}

When a chain is broken, its entry has ok: false and first_break (id, seq, at, reason), and the top level has ok: false and first_break with the chain added. A malformed from or to returns 422 with error_code invalid.