List audit events
PreviewReturns a paginated, workspace-scoped stream of audit events. Requires an Enterprise plan. Covers API key lifecycle, SSO enforcement changes, permission grants/revocations, workflow transitions, and AI-initiated actions. Not a raw data endpoint — metadata is allowlisted, actor names are omitted, and internal fields are never surfaced.
/api/v1/audit-logAuthorization
audit:readapi key scoperequiredaccount:audit_readsession capabilityoptionalQuery parameters
event_typestringoptionalExample: api_key.created
event_type_prefixstringoptionalExample: sso.
actor_typestringoptionalExample: user
resource_typestringoptionalExample: api_key
project_idstringoptionalExample: proj_abc123
fromstringoptionalExample: 2026-01-01T00:00:00Z
tostringoptionalExample: 2026-12-31T23:59:59Z
limitnumberoptionalExample: 50
cursorstringoptionalExample: eyJvY2N1cnJlZF9hdCI6IjIwMjYtMDUtMTNUMDk6MDA6MDAuMDAwWiIsImlkIjoiYWJjIn0=
Request
curl -X GET "https://www.digitalstack360.com/api/v1/audit-log" \
-H "Authorization: Bearer $DS_API_KEY"Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.
Response
{
"data": [
{
"id": "uuid-event-1",
"event_type": "api_key.created",
"actor_type": "user",
"actor_id": "uuid-user-123",
"triggered_by": null,
"resource_type": "api_key",
"resource_id": "key_abc123",
"project_id": null,
"summary": "API key 'Integrations' created.",
"metadata": {
"source": "ui"
},
"occurred_at": "2026-05-13T09:00:00.000Z"
},
{
"id": "uuid-event-2",
"event_type": "sso.enforcement.enabled",
"actor_type": "user",
"actor_id": "uuid-admin-456",
"triggered_by": null,
"resource_type": "sso_config",
"resource_id": "sso_xyz789",
"project_id": null,
"summary": "SSO enforcement enabled.",
"metadata": {
"mode": "enforced",
"source": "ui"
},
"occurred_at": "2026-05-12T14:30:00.000Z"
}
],
"pagination": {
"limit": 50,
"cursor": "eyJvY2N1cnJlZF9hdCI6IjIwMjYtMDUtMTJUMTQ6MzA6MDAuMDAwWiIsImlkIjoidXVpZC1ldmVudC0yIn0=",
"has_more": true
}
}Errors
missing_authNo credentials provided
invalid_api_keyAPI key is invalid or revoked
scope_insufficientKey lacks audit:read scope
enterprise_feature_requiredAccount is not on an Enterprise plan
not_foundproject_id not found or not in your workspace