---
title: "Get Audit Log"
method: GET
path: "/v1/audit-logs/{audit_log_id}/"
tags: ["Audit Logs"]
---

# Get Audit Log

`GET /v1/audit-logs/{audit_log_id}/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/audit-logs/{audit_log_id}/`
- 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/:audit_log_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get details for a specific audit log.

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

## Path parameters

- `audit_log_id` string, uuid, required: Audit log ID

## Response `200`

Successful Response

- AuditLogDetailRead
  - `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
  - `metadata` object, nullable, required

## 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)
