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#
| Field | Meaning |
|---|---|
| id | Stream ID |
| workspace_id | The workspace |
| name | Name |
| destination_type | webhook, datadog or splunk |
| url | Destination URL, without its query string |
| has_secret | Whether a signing secret, API key or token is stored |
| app | { id, name } when the stream sends one app's events, else null (every app) |
| categories | Event categories sent. Empty means all |
| enabled | Whether the stream sends |
| status | active, paused (by someone) or auto_paused (after failures) |
| auto_paused_at | When it paused itself |
| consecutive_failures | Failed deliveries in a row |
| last_delivery_at, last_delivery_status, last_error | The latest attempt |
| created_at, updated_at | Timestamps |
List log streams#
/v1/workspaces/:workspace_id/log_streamsAPI key + M2M tokencurl https://api.scute.io/v1/workspaces/$SCUTE_WORKSPACE_ID/log_streams \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "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#
/v1/workspaces/:workspace_id/log_streams/:idAPI key + M2M tokencurl 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.
/v1/workspaces/:workspace_id/log_streams/:id/deliveriesAPI key + M2M tokencurl "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"{ "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" } ]}| Status | error_code | When |
|---|---|---|
| 403 | person_required | A write was sent with a key instead of a signed-in owner or admin |
| 404 | log_stream_not_found | The stream is not in the workspace |
| 404 | workspace_not_found | The workspace does not exist |