OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

Audit Logging

Get Audit Logs

Get all audit logs with filtering and pagination.

Returns a paginated response of audit logs matching the specified filters.

Note: object_team_id and object_key_hash use Prisma JSON path filtering, which requires PostgreSQL.

get/audit

Query parameters

pageinteger
page_sizeinteger
changed_bystring nullable

Filter by user or system that performed the action

Filter by user or system that performed the action

changed_by_api_keystring nullable

Filter by API key hash that performed the action

Filter by API key hash that performed the action

actionstring nullable

Filter by action type (create, update, delete)

Filter by action type (create, update, delete)

table_namestring nullable

Filter by table name that was modified

Filter by table name that was modified

object_idstring nullable

Filter by ID of the object that was modified

Filter by ID of the object that was modified

start_datestring nullable

Filter logs after this date

Filter logs after this date

end_datestring nullable

Filter logs before this date

Filter logs before this date

object_team_idstring nullable

Filter by team_id present in before_value or updated_values JSON (PostgreSQL only)

Filter by team_id present in before_value or updated_values JSON (PostgreSQL only)

object_key_hashstring nullable

Filter by token (key hash) present in before_value or updated_values JSON (PostgreSQL only)

Filter by token (key hash) present in before_value or updated_values JSON (PostgreSQL only)

sort_bystring nullable

Column to sort by (e.g. 'updated_at', 'action', 'table_name')

Column to sort by (e.g. 'updated_at', 'action', 'table_name')

sort_orderstring

Sort order ('asc' or 'desc')

Sort order ('asc' or 'desc')

Response

Successful Response

totalinteger required

Total number of audit logs matching the filters

pageinteger required

Current page number

page_sizeinteger required

Number of items per page

total_pagesinteger required

Total number of pages