> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel-docs-benchmark-writeup-and-tooling.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get conversation thread around an audit log entry



## OpenAPI

````yaml /openapi.json get /admin/audit/conversation
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax, Xiaomi MiMo,
    OpenCode Go, Oracle, Ollama, Bailian). Drop-in OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /admin/audit/conversation:
    get:
      tags:
        - admin
      summary: Get conversation thread around an audit log entry
      parameters:
        - description: Anchor audit log entry ID
          name: log_id
          in: query
          required: true
          schema:
            type: string
        - description: Max entries in thread (default 40, max 200)
          name: limit
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/auditlog.ConversationResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    auditlog.ConversationResult:
      type: object
      properties:
        anchor_id:
          type: string
        entries:
          type: array
          items:
            $ref: '#/components/schemas/auditlog.LogEntry'
    core.GatewayError:
      type: object
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        provider:
          type: string
        status_code:
          type: integer
        type:
          $ref: '#/components/schemas/core.ErrorType'
    auditlog.LogEntry:
      type: object
      properties:
        alias_used:
          type: boolean
        auth_key_id:
          type: string
        auth_method:
          type: string
        cache_type:
          type: string
        client_ip:
          type: string
        data:
          description: Data contains flexible request/response information as JSON
          allOf:
            - $ref: '#/components/schemas/auditlog.LogData'
        duration_ns:
          description: DurationNs is the request duration in nanoseconds
          type: integer
        error_type:
          type: string
        id:
          description: ID is a unique identifier for this log entry (UUID)
          type: string
        method:
          type: string
        path:
          type: string
        provider:
          description: canonical provider type used for routing and filters
          type: string
        provider_name:
          type: string
        request_id:
          description: Extracted fields for efficient filtering (indexed in relational DBs)
          type: string
        requested_model:
          description: Core fields (indexed for queries)
          type: string
        resolved_model:
          type: string
        status_code:
          type: integer
        stream:
          type: boolean
        timestamp:
          description: Timestamp is when the request started
          type: string
        user_path:
          type: string
        workflow_version_id:
          type: string
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
    auditlog.LogData:
      type: object
      properties:
        api_key_hash:
          type: string
        error_code:
          type: string
        error_message:
          description: Error details (message can be long, so kept in JSON)
          type: string
        failover:
          description: |-
            Failover captures runtime redirect details when translated execution
            moved from the primary selector to a configured failover target.
          allOf:
            - $ref: '#/components/schemas/auditlog.FailoverSnapshot'
        max_tokens:
          type: integer
        request_body:
          description: >-
            Optional bodies (when LOGGING_LOG_BODIES=true)

            Stored as interface{} so MongoDB serializes as native BSON documents
            (queryable/readable)

            instead of BSON Binary (base64 in Compass)
        request_body_too_big_to_handle:
          description: Body capture status flags (set when body exceeds 1MB limit)
          type: boolean
        request_headers:
          description: |-
            Optional headers (when LOGGING_LOG_HEADERS=true)
            Sensitive headers are auto-redacted
          type: object
          additionalProperties:
            type: string
        response_body: {}
        response_body_too_big_to_handle:
          type: boolean
        response_headers:
          type: object
          additionalProperties:
            type: string
        temperature:
          description: Request parameters
          type: number
        user_agent:
          description: Identity
          type: string
        workflow_features:
          description: >-
            WorkflowFeatures captures the request-time effective workflow
            features

            after runtime caps were applied. This keeps audit views historically
            accurate

            even if the active process config changes later.
          allOf:
            - $ref: '#/components/schemas/auditlog.WorkflowFeaturesSnapshot'
    auditlog.FailoverSnapshot:
      type: object
      properties:
        target_model:
          type: string
    auditlog.WorkflowFeaturesSnapshot:
      type: object
      properties:
        audit:
          type: boolean
        budget:
          type: boolean
        cache:
          type: boolean
        fallback:
          type: boolean
        guardrails:
          type: boolean
        usage:
          type: boolean
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````