---
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.

## 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
- `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.dev/koboillm/apis/litellm-api.md) · [All operations](https://skmtc.dev/koboillm/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/koboillm/litellm-api/revisions/d4d54fef65be/schema)
