API reference

Request logs

The API calls made with a workspace's keys over the last 30 days, filtered and paged by cursor.

Scute records each API call made with a workspace's own keys and keeps it for 30 days.

List request logs#

Returns calls newest first. 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. With an app key you see that app's calls only.

GET/v1/workspaces/:workspace_id/request_logsAPI key + M2M token
workspace_idstringrequired
UUID or slug of the workspace.
app_idstring
One app of the workspace (UUID or app_...).
statusstring
2xx, 3xx, 4xx, 5xx or one status code, for example 404.
api_key_idstring
One key's calls, or none for calls whose key did not authenticate.
methodstring
HTTP method, for example POST.
pathstring
Part of the path template. Case insensitive.
fromstring
Only calls at or after this time.
tostring
Only calls at or before this time.
limitinteger
Default 50, maximum 100.
beforestring
The next value of the previous page.
Requestbash
curl "https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/request_logs?status=4xx" \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "request_logs": [    {      "id": "0193fc00-1111-7222-8333-000000000042",      "method": "POST",      "path": "/v1/workspaces/:workspace_id/challenges",      "status": 422,      "duration_ms": 38,      "ip": "198.51.100.7",      "user_agent": "curl/8.4.0",      "request_id": "c1f0a7e2-5b1d-4f0e-9b7a-3d2e1f0a9c8b",      "app": { "id": "app_3mxZRrzWxhPZ08dXvqq6", "name": "Wayne Industries" },      "api_key": { "id": "4821", "label": "Production" },      "created_at": "2026-11-19T09:40:12.000Z"    }  ],  "next": "0193fc00-1111-7222-8333-000000000042",  "keys": [    { "id": "4821", "label": "Production" }  ]}

keys lists the keys with calls in the log, for a filter, and is returned on the first page only (no before). next is absent on the last page.

Statuserror_codeWhen
404app_not_foundapp_id is not an app of the workspace
404workspace_not_foundThe workspace does not exist
422invalidstatus, api_key_id, from, to or before is malformed