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

# List audit events

> List audit events for the current organization with optional filters. Results are always scoped to the user's organization (no cross-org access). Requires organization admin permissions.



## OpenAPI

````yaml /openapi/em-runtime-governance-v2.yaml get /governance/audit
openapi: 3.1.0
info:
  title: em_runtime_governance
  version: 5.27.0
servers: []
security: []
paths:
  /governance/audit:
    get:
      tags:
        - audit
      summary: List audit events
      description: >-
        List audit events for the current organization with optional filters.
        Results are always scoped to the user's organization (no cross-org
        access). Requires organization admin permissions.
      operationId: list_audit_events
      parameters:
        - name: project_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by project
            title: Project Id
          description: Filter by project
        - name: actor_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by actor
            title: Actor Id
          description: Filter by actor
        - name: action
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by action
            title: Action
          description: Filter by action
        - name: resource_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by resource type
            title: Resource Type
          description: Filter by resource type
        - name: resource_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by resource ID
            title: Resource Id
          description: Filter by resource ID
        - name: start_time
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: Start of time range
            title: Start Time
          description: Start of time range
        - name: end_time
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: End of time range
            title: End Time
          description: End of time range
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number
            default: 1
            title: Page
          description: Page number
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Page size (max 100)
            default: 50
            title: Page Size
          description: Page size (max 100)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditEventListResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '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:
    AuditEventListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AuditEventResponse'
          type: array
          title: Data
          description: List of audit events
        pagination:
          $ref: '#/components/schemas/Pagination'
          description: Pagination metadata
      type: object
      required:
        - data
        - pagination
      title: AuditEventListResponse
      description: Paginated list of audit events.
    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
    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.
    Pagination:
      properties:
        page:
          type: integer
          minimum: 1
          title: Page
          description: Current page number (starts at 1)
        limit:
          type: integer
          maximum: 100
          minimum: 1
          title: Limit
          description: Items per page (max 100)
        total_items:
          type: integer
          minimum: 0
          title: Total Items
        total_pages:
          type: integer
          minimum: 0
          title: Total Pages
        next_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Page
        prev_page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prev Page
      type: object
      required:
        - page
        - limit
        - total_items
        - total_pages
      title: Pagination
      description: Pagination metadata for list responses.
    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

````