---
title: "Get Audit Logs"
method: GET
path: "/audit"
tags: ["Audit Logging"]
---

# Get Audit Logs

`GET /audit`

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.

## Query parameters

- `page` integer
- `page_size` integer
- `changed_by` string, nullable — Filter by user or system that performed the action
- `changed_by_api_key` string, nullable — Filter by API key hash that performed the action
- `action` string, nullable — Filter by action type (create, update, delete)
- `table_name` string, nullable — Filter by table name that was modified
- `object_id` string, nullable — Filter by ID of the object that was modified
- `start_date` string, nullable — Filter logs after this date
- `end_date` string, nullable — Filter logs before this date
- `object_team_id` string, nullable — Filter by team_id present in before_value or updated_values JSON (PostgreSQL only)
- `object_key_hash` string, nullable — Filter by token (key hash) present in before_value or updated_values JSON (PostgreSQL only)
- `sort_by` string, nullable — Column to sort by (e.g. 'updated_at', 'action', 'table_name')
- `sort_order` string — Sort order ('asc' or 'desc')

## Response `200`

Successful Response

- PaginatedAuditLogResponse — Response model for paginated audit logs
  - `audit_logs` AuditLogResponse[], required
    - `id` string, required
    - `updated_at` string, date-time, required
    - `changed_by` string, required
    - `changed_by_api_key` string, required
    - `action` string, required
    - `table_name` string, required
    - `object_id` string, required
    - `before_value` object, nullable
    - `updated_values` object, nullable
  - `total` integer, required — Total number of audit logs matching the filters
  - `page` integer, required — Current page number
  - `page_size` integer, required — Number of items per page
  - `total_pages` integer, required — Total number of pages

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/79928a3d37d3/schema)
