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.
/v1/workspaces/:workspace_id/decisionsAPI key + M2M tokencurl "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"{ "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.
| Status | error_code | When |
|---|---|---|
| 403 | operator_log_admin_only | kind=operator without a signed-in owner or admin |
| 404 | app_id is not an app of the workspace | |
| 422 | invalid | kind, 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.
/v1/workspaces/:workspace_id/decisions/verifyAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/decisions/verify \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "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.