audit

Get Audit Logs

Gets audit logs visible to the user with pagination and filtering.

  • Page numbers start at 1 (not 0)
  • Results are sorted by timestamp (newest first)
  • Optional filters can be applied for policy_id, action, and date range
get/api/v1/audit/

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/api/v1/audit/
  • Auth: API key in header X-ONEGREP-API-KEY

Query parameters

pageinteger

Page number (1-indexed)

page_sizeinteger

Items per page

policy_idstring nullable

Filter by policy ID

actionstring nullable

Filter by action type

start_datestring date-time nullable

Filter logs after this date (ISO format)

end_datestring date-time nullable

Filter logs before this date (ISO format)

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.