---
title: "List Audit Events"
method: GET
path: "/api/audit_events"
tags: ["Audit"]
---

# List Audit Events

`GET /api/audit_events`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/audit_events`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Return audit events for the caller's org, newest first.

Enterprise plan only. Admin only (enforced by `get_current_admin_user`).
Paginate by passing `before_id=<last row's id>` from the previous page.

## Query parameters

- `event_type` string, nullable: Filter by event type (e.g. auth.login.success)
- `start` string, nullable: ISO 8601 start timestamp (inclusive)
- `end` string, nullable: ISO 8601 end timestamp (inclusive)
- `before_id` integer, nullable: Cursor: return events with id < this
- `limit` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
