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

# List the audit log of one cluster



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /org/clusters/{cluster_id}/audit-logs
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/clusters/{cluster_id}/audit-logs:
    get:
      tags:
        - Organisation API
      summary: List the audit log of one cluster
      operationId: list_cluster_audit_logs
      parameters:
        - in: path
          name: cluster_id
          required: true
          schema:
            format: uuid
            type: string
        - in: query
          name: page
          required: false
          schema:
            default: 1
            type: integer
        - in: query
          name: page_size
          required: false
          schema:
            default: 50
            maximum: 200
            type: integer
        - in: query
          name: search
          required: false
          schema:
            type: string
        - in: query
          name: user_id
          required: false
          schema:
            format: uuid
            type: string
        - in: query
          name: action_type
          required: false
          schema:
            type: string
        - in: query
          name: resource_type
          required: false
          schema:
            type: string
        - in: query
          name: start_date
          required: false
          schema:
            format: date-time
            type: string
        - in: query
          name: end_date
          required: false
          schema:
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuditLogListResponse'
          description: One cluster's slice of the organisation audit trail, newest first.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuditDetailError'
          description: Missing the audit.read permission
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuditDetailError'
          description: Cluster not found in the caller's organisation
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation error
components:
  schemas:
    OrgAuditLogListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OrgAuditLogItem'
          type: array
        page:
          type: integer
        page_size:
          type: integer
        total:
          type: integer
        total_pages:
          type: integer
      required:
        - items
        - total
        - page
        - page_size
        - total_pages
      type: object
    OrgAuditDetailError:
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    OrgAuditLogItem:
      properties:
        action_type:
          type: string
        details:
          type: object
        ip_address:
          anyOf:
            - type: string
            - type: 'null'
        log_id:
          format: uuid
          type: string
        resource_id:
          anyOf:
            - type: string
            - type: 'null'
        resource_type:
          type: string
        timestamp:
          format: date-time
          type: string
        user_email:
          type: string
        user_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
      required:
        - log_id
        - timestamp
        - user_id
        - user_email
        - action_type
        - resource_type
        - resource_id
        - details
        - ip_address
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````