audit-logs

get

Lists audit log records.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Query parameters
pagination_cursorstringOptional

Cursor for pagination. Pass next_cursor from previous response.

limitintegerOptional

Maximum number of items to return. Greater than 0, less than 1000.

Default: 25
fromstring · date-timeOptional

Filter logs from this timestamp (inclusive).

tostring · date-timeOptional

Filter logs until this timestamp (exclusive).

principalstringOptional

Filter by principal name.

operation_idstringOptional

Filter by operation ID (e.g., createUser).

sort_orderstring · enumOptional

Sort order by timestamp. Defaults to descending (most recent first).

Default: descPossible values:
Responses
chevron-right
200

List of audit log records.

application/json

Paginated list of audit logs using cursor-based pagination.

next_cursorstringOptional

Opaque cursor for fetching the next page. Absent if no more results.

get
/api/v1/audit-logs
delete

Deletes audit log records up to the given timestamp.

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Query parameters
beforestring · date-timeRequired

Delete logs with timestamp before this value (exclusive).

Responses
delete
/api/v1/audit-logs

No content

Last updated

Was this helpful?