Audit
AuditService provides access to audit logs for admin operations
Base path: /audit
POST /audit/ListAuditLogs
Section titled “POST /audit/ListAuditLogs”ListAuditLogs retrieves audit logs with optional filtering Filters use AND logic: all provided filters must match No filters = timeline (all logs, most efficient) Operation filter only = uses GSI2 index (efficient) Actor filters = both actor_type and actor_id required (uses GSI3, efficient) Both operation and actor = uses GSI2 + client-side actor filtering (less efficient)
Request (ListAuditLogsRequest)
| Field | Type | Description |
|---|---|---|
operation | string? | |
actor | ActorFilter? | |
page_size | int32? | |
page_token | string? |
Response (ListAuditLogsResponse)
| Field | Type | Description |
|---|---|---|
logs | AuditLog[] | |
next_page_token | string |
POST /audit/ListActors
Section titled “POST /audit/ListActors”ListActors returns all actors of a specific type with pagination
Request (ListActorsRequest)
| Field | Type | Description |
|---|---|---|
actor_type | ActorType | |
page_size | int32? | |
page_token | string? |
Response (ListActorsResponse)
| Field | Type | Description |
|---|---|---|
actors | ActorEntry[] | |
next_page_token | string |
POST /audit/ListOperations
Section titled “POST /audit/ListOperations”ListOperations returns all available operations that have audit logs
Request (ListOperationsRequest)
No fields.
Response (ListOperationsResponse)
| Field | Type | Description |
|---|---|---|
operations | string[] |