API reference

Workspace events

Every app's audit events in one feed for a workspace, paged by cursor, and event counts per time slice.

These endpoints read the audit events of every app in a workspace at once. For one app's events see Events.

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 a workspace key the feed covers every app of the workspace; with an app key it covers that app only.

List workspace events#

Returns events newest first.

GET/v1/workspaces/:workspace_id/eventsAPI key + M2M token
workspace_idstringrequired
UUID or slug of the workspace.
app_idstring
One app of the workspace (UUID or app_...). Returns that app's own events.
scopestring
workspace for the workspace's own events (team and workspace changes), app for the rest. Defaults to app when app_id is sent, else both.
categorystring
One or more categories, comma separated. agents selects the agents' events.
slugstring
One event slug.
user_idstring
An app user's UUID.
start_datestring
Only events at or after this time.
end_datestring
Only events 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/events?category=auth&limit=20" \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "events": [    {      "id": "0193fb00-0000-7000-8000-000000000123",      "slug": "auth.login.blocked",      "category": "auth",      "scope": "app",      "note": "Sign-in blocked",      "ip_address": "203.0.113.10",      "user_agent": "Mozilla/5.0",      "metadata": {},      "sequence_number": 4182,      "event_hash": "9f2c...e41a",      "previous_event_hash": "51b0...7d03",      "app_id": "app_3mxZRrzWxhPZ08dXvqq6",      "app": { "id": "app_3mxZRrzWxhPZ08dXvqq6", "name": "Wayne Industries" },      "user": null,      "created_at": "2026-11-18T14:02:11.000Z",      "updated_at": "2026-11-18T14:02:11.000Z"    }  ],  "next": "0193fb00-0000-7000-8000-000000000123"}

The example shows a subset of the fields. user is the app user the event is about, or null. next is absent on the last page.

Statuserror_codeWhen
404app_id is not an app of the workspace
422invalidscope is not workspace or app, user_id is not a UUID, or a date cannot be parsed

Count events per time slice#

Returns how many of each event each app had per slice of a recent period. Workspace events (team and workspace changes) are left out.

GET/v1/workspaces/:workspace_id/events/rollupAPI key + M2M token
workspace_idstringrequired
UUID or slug of the workspace.
rangestring
day (24 hours in 1 hour slices, the default), week (7 days in 6 hour slices) or month (30 days in 1 day slices).
app_idstring
One app of the workspace.
Requestbash
curl "https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/events/rollup?range=week" \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "range": "week",  "from": "2026-11-12T10:00:00Z",  "to": "2026-11-19T10:00:00Z",  "bucket_seconds": 21600,  "rows": [    {      "app_id": "0193f8aa-9999-7aaa-8bbb-cccccccccccc",      "app_public_id": "app_3mxZRrzWxhPZ08dXvqq6",      "at": "2026-11-12T12:00:00Z",      "slug": "auth.login.new_device",      "count": 4    }  ]}

at is the start of the slice in UTC. A range other than the three values returns 422 with error_code invalid.