Audit Logs โ
Audit logs capture security-relevant events โ sign-ins, permission changes, scope-set edits, API-key creations, and similar operations that should be reviewable for compliance and forensics.
This is distinct from System Logs, which capture operational telemetry (errors, warnings, info traces). If you need to answer "who did what when" โ this is the right surface.
Scopes โ
| Scope | Reach |
|---|---|
audit:read | Listing, reading audit logs, viewing filters. |
audit:write | Deleting audit log entries. |
WARNING
Deletion exists for tenant data-retention workflows but should be considered a last resort โ audit logs are the platform's tamper-resistant trail of security-sensitive actions. Many compliance regimes require they be retained for fixed periods. Confirm with your operators or compliance team before bulk-deleting.
Endpoints โ
List Audit Logs โ
GET /api/logging/audit/
Returns a page of audit-log entries.
Required scope: audit:read ยท also accepts API key
Query parameters โ standard pagination set; see Conventions โบ Pagination. Defaults: sort_by=timestamp, sort_order=desc. (No hydrate flag on this resource.)
Response 200 โ AuditLogInDbCursorPage
Get Audit Log Filter Metadata โ
GET /api/logging/audit/filters
Returns filter/operator/sort options for List Audit Logs.
Required scope: audit:read
Response 200 โ open metadata object.
Get Audit Log by ID โ
GET /api/logging/audit/{id}
Returns a single audit-log entry.
Required scope: audit:read ยท also accepts API key
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Audit log ID. |
Response 200 โ AuditLogRead
Delete Audit Log by ID โ
DELETE /api/logging/audit/{id}
Permanently removes an audit-log entry.
Required scope: audit:write
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Audit log ID. |
Response 204 โ empty.
See also โ
- System Logs โ operational telemetry (errors, warnings, info traces).
- Admin โบ Sessions โ current sign-in state (complements the audit trail of past sign-ins).
