---
title: "List Audit Logs"
method: GET
path: "/v1/audit-logs/"
tags: ["Audit Logs"]
---

# List Audit Logs

`GET /v1/audit-logs/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/audit-logs/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `organization:auditlog`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/audit-logs/get.ts> (a function with typed inputs; its response is checked against the schema)

List audit logs for an organization.

Requires an API key with the `organization:auditlog` scope.
Only available for organizations with an enterprise_cloud subscription or self-hosted deployments.

The time range cannot exceed 90 days.

## Query parameters

- `start_time` string, date-time, required: Start time for audit logs
- `end_time` string, date-time, nullable: End time for audit logs
- `action` 'INSERT' | 'UPDATE' | 'DELETE' | 'VIEW' | 'LOGIN' | 'FAILED_LOGIN' | 'LOGOUT' | 'CLAIM_INVITATION' | 'REVOKE_INVITATION' | 'VERIFY' | 'SSO_SIGN_IN_ATTEMPT' | 'VIEW_SECRET', nullable: Filter by action type

## Response `200`

Successful Response

- AuditLogInfoRead[]
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `organization_name` string, nullable, required
  - `project_name` string, nullable, required
  - `user_name` string, nullable, required
  - `action` union, required
    - 'INSERT' | 'UPDATE' | 'DELETE' | 'VIEW' | 'LOGIN' | 'FAILED_LOGIN' | 'LOGOUT' | 'CLAIM_INVITATION' | 'REVOKE_INVITATION' | 'VERIFY' | 'SSO_SIGN_IN_ATTEMPT' | 'VIEW_SECRET'
    - string
  - `resource_type` string, nullable, required
  - `record_id` string, uuid, nullable, required
  - `ip_address` union, required
    - string, ipv4
    - string, ipv6

## Other responses

- `422`: Validation Error
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
