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

# Get a rules catalog version

> Return the manifest and catalog payload for a specific frozen rules version.



## OpenAPI

````yaml https://api.qa.nlbs.ai/api/openapi.json get /rules/versions/{version}
openapi: 3.1.0
info:
  description: >-
    NL Labs AI AML API. Use Bearer API keys for protected endpoints. The /live
    and /ready probes are public.
  title: NL Labs AI
  version: 0.1.0
servers:
  - url: https://api.qa.nlbs.ai/api
security:
  - ApiKeyAuth: []
tags:
  - description: Runtime health checks and source freshness endpoints.
    name: health
  - description: Canonical entity lookup endpoints used before starting analyses.
    name: entities
  - description: AML analysis creation, status, result, and debug endpoints.
    name: analyses
  - description: Regulatory report (Motor 2) creation, status, result, and debug endpoints.
    name: reports
  - description: Versioned deterministic rules catalog endpoints.
    name: rules
  - description: Versioned regulatory reference catalog endpoints.
    name: regulatory
  - description: Webhook endpoint configuration and delivery-event operations.
    name: webhooks
paths:
  /rules/versions/{version}:
    get:
      tags:
        - rules
      summary: Get a rules catalog version
      description: >-
        Return the manifest and catalog payload for a specific frozen rules
        version.
      operationId: get_rules_version
      parameters:
        - description: Rules catalog version label.
          in: path
          name: version
          required: true
          schema:
            description: Rules catalog version label.
            examples:
              - 0.1.0
            title: Version
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RulesVersionSnapshotResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, expired, or invalid Bearer API key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The authenticated API key does not have the required scope.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rules catalog version was not found.
        '422':
          description: >-
            Invalid request body, path parameter, query parameter, or business
            rule.
      security:
        - HTTPBearer: []
components:
  schemas:
    RulesVersionSnapshotResponse:
      properties:
        catalog:
          description: Frozen rules catalog entries.
          items:
            additionalProperties: true
            type: object
          title: Catalog
          type: array
        manifest:
          $ref: '#/components/schemas/RulesManifestResponse'
          description: Snapshot manifest metadata.
      required:
        - manifest
        - catalog
      title: RulesVersionSnapshotResponse
      type: object
    ErrorResponse:
      properties:
        detail:
          description: Stable public error message.
          examples:
            - Resource not found.
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    RulesManifestResponse:
      examples:
        - catalog_hash: sha256:example
          published_at: '2026-06-23T00:00:00Z'
          signal_count: 42
          version: 0.1.0
      properties:
        catalog_hash:
          description: Deterministic hash of the rules catalog payload.
          examples:
            - sha256:example
          title: Catalog Hash
          type: string
        published_at:
          description: Publication timestamp for this frozen rules snapshot.
          examples:
            - '2026-06-23T00:00:00Z'
          title: Published At
          type: string
        signal_count:
          description: Number of signals in the catalog.
          examples:
            - 42
          title: Signal Count
          type: integer
        version:
          description: Rules catalog semantic version.
          examples:
            - 0.1.0
          title: Version
          type: string
      required:
        - version
        - published_at
        - catalog_hash
        - signal_count
      title: RulesManifestResponse
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````