> ## Documentation Index
> Fetch the complete documentation index at: https://tyk.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one audit record

> Returns a single record including request/response dumps when detailed recording is on



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /audit/records/{id}
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /audit/records/{id}:
    get:
      tags:
        - Audit
      summary: Get one audit record
      description: >-
        Returns a single record including request/response dumps when detailed
        recording is on
      parameters:
        - name: id
          in: path
          description: Record ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.AuditRecord'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.ErrorResponse'
components:
  schemas:
    models.AuditRecord:
      type: object
      properties:
        action:
          type: string
          description: What happened
        auth_method:
          type: string
          description: |-
            AuthMethod is how the actor authenticated: "session" (browser
            cookie) or "api_key" (user API key); empty for unauthenticated
            requests such as failed logins.
        diff:
          type: string
          description: |-
            Diff of changed fields for updates, and the final state for deletes.
            Shape: {"field": {"old": <v>, "new": <v>}}. Sensitive columns are
            redacted before storage.
        duration_ms:
          type: integer
        error:
          type: string
        id:
          type: integer
        ip:
          type: string
          description: Actor
        method:
          type: string
        req_id:
          type: string
        request_dump:
          type: string
          description: Populated only when detailed recording is enabled.
        resource_id:
          type: string
        resource_name:
          type: string
        resource_type:
          type: string
          description: What it touched
        response_dump:
          type: string
        route:
          type: string
        status:
          type: integer
        timestamp:
          type: string
        url:
          type: string
        user:
          type: string
        user_agent:
          type: string
        user_id:
          type: integer
        user_name:
          type: string
    models.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string

````