API reference

Log streams

Read a workspace's log streams, which send its audit events to an HTTPS endpoint, Datadog or Splunk, and their delivery attempts.

A log stream sends a workspace's audit events to an HTTPS endpoint (webhook), Datadog (datadog) or Splunk HEC (splunk) as they are recorded. A workspace can have 10 streams. A stream pauses itself after 10 failed deliveries in a row.

With an API key and M2M token you can read streams and their deliveries. Creating, changing, testing, deleting a stream and rotating its signing secret need a signed-in owner or admin; a key returns 403 with error_code person_required. Secrets are never returned by these reads, and a URL's query string is removed.

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.

Stream object#

FieldMeaning
idStream ID
workspace_idThe workspace
nameName
destination_typewebhook, datadog or splunk
urlDestination URL, without its query string
has_secretWhether a signing secret, API key or token is stored
app{ id, name } when the stream sends one app's events, else null (every app)
categoriesEvent categories sent. Empty means all
enabledWhether the stream sends
statusactive, paused (by someone) or auto_paused (after failures)
auto_paused_atWhen it paused itself
consecutive_failuresFailed deliveries in a row
last_delivery_at, last_delivery_status, last_errorThe latest attempt
created_at, updated_atTimestamps

List log streams#

GET/v1/workspaces/:workspace_id/log_streamsAPI key + M2M token
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/log_streams \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "log_streams": [    {      "id": "0193fd00-2222-7333-8444-000000000005",      "workspace_id": "0193f8aa-0000-7000-8000-000000000000",      "name": "SIEM",      "destination_type": "webhook",      "url": "https://siem.example.com/ingest",      "has_secret": true,      "app": null,      "categories": ["auth", "security"],      "enabled": true,      "status": "active",      "auto_paused_at": null,      "consecutive_failures": 0,      "last_delivery_at": "2026-11-19T09:58:01.000Z",      "last_delivery_status": "delivered",      "last_error": null,      "created_at": "2026-10-01T12:00:00.000Z",      "updated_at": "2026-11-19T09:58:01.000Z"    }  ],  "destination_types": ["webhook", "datadog", "splunk"],  "categories": ["auth", "user", "token", "verification", "workspace", "app", "security", "system", "agents"],  "limit": 10,  "auto_pause_after": 10}

Retrieve a log stream#

GET/v1/workspaces/:workspace_id/log_streams/:idAPI key + M2M token
Requestbash
curl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/log_streams/0193fd00-2222-7333-8444-000000000005 \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

Returns {"log_stream": {...}}. An unknown stream returns 404 with error_code log_stream_not_found.

List deliveries#

Returns a stream's delivery attempts, newest first. Attempts are kept 7 days.

GET/v1/workspaces/:workspace_id/log_streams/:id/deliveriesAPI key + M2M token
limitinteger
Default 25, maximum 100.
Requestbash
curl "https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/log_streams/0193fd00-2222-7333-8444-000000000005/deliveries?limit=10" \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "deliveries": [    {      "id": "0193fd10-3333-7444-8555-000000000077",      "event_id": "0193fb00-0000-7000-8000-000000000123",      "event_type": "auth.login.new_device",      "test": false,      "status": "delivered",      "attempts": 1,      "response_code": 200,      "error": null,      "duration_ms": 112,      "delivered_at": "2026-11-19T09:58:01.000Z",      "created_at": "2026-11-19T09:58:00.000Z"    }  ]}
Statuserror_codeWhen
403person_requiredA write was sent with a key instead of a signed-in owner or admin
404log_stream_not_foundThe stream is not in the workspace
404workspace_not_foundThe workspace does not exist