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

# List versions

> Lists versions of one schema, newest first. Requires the admin:schemas:read scope.



## OpenAPI

````yaml /products/specter/openapi.yaml get /api/admin/schemas/{name}/versions
openapi: 3.1.0
info:
  contact:
    email: support@hellgate.io
    name: Starfish GmbH & Co. KG
    url: https://hellgate.io/cpa/specter
  description: Composable decision engine and fraud prevention service.
  license:
    name: Hellgate API Terms
    url: https://hellgate.io/terms-and-conditions
  title: Specter API
  version: '1.0'
servers:
  - description: Managed instance of Specter
    url: https://{instance}.{env}.on-hellgate.cloud
    variables:
      instance:
        default: my-instance
        description: Your unique instance slug, provided during onboarding.
      env:
        default: eu1
        description: Deployment environment (currently eu1).
security: []
tags:
  - description: Evaluate transactions and retrieve decision results.
    name: Decisions
  - description: Close decisions that were flagged for manual review.
    name: Resolutions
  - description: Report payment lifecycle events for a prior decision.
    name: Lifecycle Events
  - description: Manage rulesets and their activation lifecycle.
    name: Rulesets
  - description: Register and version custom decision-payload schemas.
    name: Schemas
  - description: Configure interceptors and intercept live payment requests.
    name: Interceptors
  - description: Subscribe to decision and event notifications.
    name: Webhooks
  - description: Manage blocked field values.
    name: Blacklist
paths:
  /api/admin/schemas/{name}/versions:
    get:
      tags:
        - Schemas
      summary: List versions
      description: >-
        Lists versions of one schema, newest first. Requires the
        admin:schemas:read scope.
      operationId: admin_schema_versions_list
      parameters:
        - description: Schema name
          in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SchemaVersionList'
          description: Version list
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
      callbacks: {}
      security:
        - bearerAuth: []
components:
  schemas:
    SchemaVersionList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SchemaVersion'
          type: array
        links:
          properties:
            next:
              description: >-
                Always null — the list is returned whole; the registry is not
                paginated.
              type:
                - string
                - 'null'
          type: object
      title: SchemaVersionList
      type: object
    Error:
      description: Generic error response with classifier, code, and message
      example:
        classifier: NOT_FOUND
        code: 404
        message: The requested resource does not exist
      properties:
        classifier:
          type: string
        code:
          type: integer
        message:
          type: string
      required:
        - classifier
        - code
        - message
      title: Error
      type: object
    SchemaVersion:
      properties:
        carry_over:
          description: >-
            Whether velocity counters carry over from the previous version for
            field paths present in both versions. When false, rulesets bound to
            this version count from zero — counters of earlier versions are
            untouched and keep serving the rulesets bound to them. Blacklist
            entries are not versioned — they are global and unaffected by this
            flag. Fixed at publication and immutable thereafter. Always true for
            version 1.
          type: boolean
        created_at:
          description: >-
            Null for version 1 of a built-in schema, which ships with the
            platform.
          format: date-time
          type:
            - string
            - 'null'
        deprecated_at:
          format: date-time
          type:
            - string
            - 'null'
        document:
          description: >-
            The JSON Schema document. Each field carries `x-specter-type` (one
            of the 23 entries of the type vocabulary — `string`, `integer`,
            `number`, `boolean`, `email`, `iban`, `country-code`,
            `currency-code`, `language-code`, `date`, `datetime`, `url`, `uuid`,
            `phone`, `ip`, `amount`, `pan`, `masked-pan`, `scheme-enum`,
            `card-funding-type-enum`, `card-segment-enum`, `object`, `array`)
            and optionally `x-data-classification` (`any` — the default — `pii`,
            `pci-pan`, `pci-sad`). A `pan` field is always `pci-pan`;
            `masked-pan` defaults to `pii`. Types validate the decision payload
            at ingestion; markers drive the PCI gate, redaction, and retention.
            See [Schemas](/products/specter/concepts/schemas).
          type: object
        name:
          example: customer-registration
          type: string
        status:
          enum:
            - active
            - deprecated
          type: string
        version:
          description: >-
            System-assigned monotonic integer per schema, starting at 1.
            Merchants never choose it.
          example: 2
          type: integer
      title: SchemaVersion
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: >-
        HS256-signed JWT bearer token, obtained via the OAuth2
        client-credentials grant (see Authentication).
      scheme: bearer
      type: http

````