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

# Get audit event by ID

> Get a specific audit event by its ID. Returns 404 if the event doesn't exist or belongs to a different organization.



## OpenAPI

````yaml /openapi/em-runtime-governance-v2.yaml get /governance/audit/{event_id}
openapi: 3.1.0
info:
  title: em_runtime_governance
  version: 5.27.0
servers: []
security: []
paths:
  /governance/audit/{event_id}:
    get:
      tags:
        - audit
      summary: Get audit event by ID
      description: >-
        Get a specific audit event by its ID. Returns 404 if the event doesn't
        exist or belongs to a different organization.
      operationId: get_audit_event
      parameters:
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            description: Unique identifier of the audit event
            title: Event Id
          description: Unique identifier of the audit event
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditEventResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          description: Event not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    AuditEventResponse:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier of the audit event
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: When the event occurred
        org_id:
          type: string
          title: Org Id
          description: Organization ID
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Project ID if applicable
        actor_id:
          type: string
          title: Actor Id
          description: ID of the actor who performed the action
        actor_type:
          type: string
          title: Actor Type
          description: Type of actor (user, service, system)
        action:
          type: string
          title: Action
          description: The action performed
        resource_type:
          type: string
          title: Resource Type
          description: Type of resource acted upon
        resource_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource Id
          description: ID of the specific resource
        source_service:
          type: string
          title: Source Service
          description: Service that emitted the event
        source_pod:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Pod
          description: Pod that emitted the event
        trace_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Trace Id
          description: Distributed trace ID
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: Additional event details
      type: object
      required:
        - id
        - timestamp
        - org_id
        - actor_id
        - actor_type
        - action
        - resource_type
        - source_service
      title: AuditEventResponse
      description: Full audit event representation.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````