---
title: "Get audit log entry detail"
method: GET
path: "/admin/audit/detail"
tags: ["admin"]
---

# Get audit log entry detail

`GET /admin/audit/detail`

Returns one audit log entry enriched with usage summary when available.

## Query parameters

- `log_id` string, required

## Response `200`

OK

- AdminAuditLogEntryResponse
  - `alias_used` boolean
  - `auth_key_id` string
  - `auth_method` string
  - `cache_type` string
  - `client_ip` string
  - `data` AuditlogLogData
    - `api_key_hash` string
    - `error_code` string
    - `error_message` string — Error details (message can be long, so kept in JSON)
    - `failover` AuditlogFailoverSnapshot
      - `target_model` string
    - `max_tokens` integer
    - `request_body` unknown
    - `request_body_too_big_to_handle` boolean — Body capture status flags (set when body exceeds 1MB limit)
    - `request_headers` object — Optional headers (when LOGGING_LOG_HEADERS=true) Sensitive headers are auto-redacted
    - `response_body` unknown
    - `response_body_too_big_to_handle` boolean
    - `response_headers` object
    - `temperature` number — Request parameters
    - `user_agent` string — Identity
    - `workflow_features` AuditlogWorkflowFeaturesSnapshot
      - `audit` boolean
      - `budget` boolean
      - `cache` boolean
      - `fallback` boolean
      - `guardrails` boolean
      - `usage` boolean
  - `duration_ns` integer — DurationNs is the request duration in nanoseconds
  - `error_type` string
  - `id` string — ID is a unique identifier for this log entry (UUID)
  - `method` string
  - `path` string
  - `provider` string — canonical provider type used for routing and filters
  - `provider_name` string
  - `request_id` string — Extracted fields for efficient filtering (indexed in relational DBs)
  - `requested_model` string — Core fields (indexed for queries)
  - `resolved_model` string
  - `status_code` integer
  - `stream` boolean
  - `timestamp` string — Timestamp is when the request started
  - `usage` UsageRequestUsageSummary
    - `cache_write_input_tokens` integer
    - `cached_input_ratio` number
    - `cached_input_tokens` integer
    - `entries` integer
    - `estimated_cached_characters` integer
    - `input_tokens` integer
    - `output_tokens` integer
    - `total_tokens` integer
    - `uncached_input_tokens` integer
  - `user_path` string
  - `workflow_version_id` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-05-22** `4473702da82e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/admin/audit/detail/get.md)

---

[API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.dev/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/8c7901df38df/schema)
