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

# List audit log archives

> Use this endpoint to list all audit log archives. Archives contain historical audit log data that has been compressed and moved to long-term storage. Supports offset-based pagination.



## OpenAPI

````yaml /en/openapi/v3-current/matcher.yaml get /v1/governance/archives
openapi: 3.1.0
info:
  title: Matcher APIs
  description: >-
    Complete API reference for the Matcher reconciliation engine, providing
    automated transaction matching between Midaz Ledger and external systems.
  version: v2.1.1
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
servers:
  - url: https://matcher.sandbox.lerian.net
security: []
paths:
  /v1/governance/archives:
    get:
      tags:
        - Governance
      summary: List audit log archives
      description: >-
        Use this endpoint to list all audit log archives. Archives contain
        historical audit log data that has been compressed and moved to
        long-term storage. Supports offset-based pagination.
      operationId: listArchives
      parameters:
        - description: A unique identifier for tracing the request across services.
          in: header
          name: X-Request-Id
          schema:
            type: string
        - description: The maximum number of items to include in the response.
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
        - description: The number of items to skip before returning results.
          in: query
          name: offset
          schema:
            type: integer
            minimum: 0
            default: 0
        - description: Start date filter (YYYY-MM-DD or RFC 3339 format)
          in: query
          name: from
          schema:
            type: string
        - description: End date filter (YYYY-MM-DD or RFC 3339 format)
          in: query
          name: to
          schema:
            type: string
      responses:
        '200':
          description: List of audit log archives
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListArchivesResponse'
        '400':
          description: The request contains invalid parameters or payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have permission to access this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ListArchivesResponse:
      description: Paginated list of audit log archives
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ArchiveMetadataResponse'
        limit:
          type: integer
          description: Maximum items per page
          example: 20
        hasMore:
          type: boolean
          description: Whether more results are available
    ErrorResponse:
      description: Standard error response returned by all API endpoints
      type: object
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: HTTP status code as a string.
          example: '404'
        title:
          type: string
          description: Error type identifier.
          example: not_found
        message:
          type: string
          description: Human-readable error message with details.
          example: context not found
        error:
          type: string
          description: Deprecated. Error message for backward compatibility.
          deprecated: true
        details:
          description: Additional error context as key-value pairs
          additionalProperties: {}
          type: object
    ArchiveMetadataResponse:
      description: Metadata for an audit log archive
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the archive
          example: 019c96a0-2a10-7dfe-b5c1-8a1b2c3d4e5f
        partitionName:
          type: string
          description: Name of the archived partition
        dateRangeStart:
          type: string
          format: date-time
          description: Start of the archived date range
        dateRangeEnd:
          type: string
          format: date-time
          description: End of the archived date range
        rowCount:
          type: integer
          format: int64
          description: Number of audit log entries in the archive
        compressedSizeBytes:
          type: integer
          format: int64
          description: Size of the compressed archive in bytes
        storageClass:
          type: string
          description: Storage class of the archive
          enum:
            - STANDARD
            - GLACIER
            - DEEP_ARCHIVE
        status:
          type: string
          description: Archive status
          example: COMPLETE
        archivedAt:
          type: string
          format: date-time
          description: Timestamp when the archive was created
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token authentication (format: "Bearer {token}")'

````