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

# Get a listing's version history

> Every version of the listing, oldest first, each a full snapshot of what was published.



## OpenAPI

````yaml /api-reference/openapi.yaml get /discovery/resources/{id}/versions
openapi: 3.1.0
info:
  title: Rail402
  version: 0.0.0
  summary: x402 facilitator and Bazaar discovery layer for Stellar.
  description: >
    The Rail402 HTTP service. `/supported`, `/verify` and `/settle` follow the
    x402 version 2 facilitator

    interface; `/discovery/*` serves the Bazaar catalog and search.


    Every endpoint except `/health`, `/ready` and `/metrics` is rate-limited per
    client address. A limited

    request gets HTTP 429 with a `Retry-After` header and the code
    `rate_limited`.
  license:
    name: Apache-2.0
    identifier: Apache-2.0
servers:
  - url: https://testnet.rail402.dev
    description: Hosted testnet facilitator (stellar:testnet only, no API key)
security: []
tags:
  - name: Facilitator
    description: x402 facilitator interface.
  - name: Discovery
    description: Bazaar catalog and natural-language search.
  - name: Operations
    description: Health, readiness, metrics and usage.
paths:
  /discovery/resources/{id}/versions:
    get:
      tags:
        - Discovery
      summary: Get a listing's version history
      description: >-
        Every version of the listing, oldest first, each a full snapshot of what
        was published.
      operationId: getResourceVersions
      parameters:
        - $ref: '#/components/parameters/ListingId'
      responses:
        '200':
          description: The version history.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionList'
        '404':
          $ref: '#/components/responses/ListingNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    ListingId:
      name: id
      in: path
      required: true
      description: A listing's id (`rail402.listings[].id`).
      schema:
        type: string
        format: uuid
  schemas:
    VersionList:
      type: object
      required:
        - x402Version
        - id
        - versions
      properties:
        x402Version:
          type: integer
          const: 2
        id:
          type: string
          format: uuid
        versions:
          type: array
          items:
            type: object
            required:
              - version
              - createdAt
              - cause
              - owner
              - trust
              - state
              - content
            properties:
              version:
                type: integer
              createdAt:
                type: string
                format: date-time
              cause:
                type: string
                enum:
                  - settlement
                  - origin_verification
                  - ownership_transfer
                  - domain_verification
                  - quarantine
              transaction:
                type: string
                description: The settlement that caused this version, when there was one.
              owner:
                type: string
              trust:
                type: string
                enum:
                  - settled
                  - origin_verified
                  - domain_verified
              state:
                type: string
                enum:
                  - pending
                  - published
                  - quarantined
              content:
                type: object
                description: >-
                  The published content, with the catalog's field names (`kind`,
                  `method` or `toolName`, `bazaar`, `accepts`).
                additionalProperties: true
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - reason
            - retryable
          properties:
            code:
              type: string
            reason:
              type: string
            retryable:
              type: boolean
            details:
              type: object
              additionalProperties: true
  responses:
    ListingNotFound:
      description: No listing has this id (`discovery_listing_not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            error:
              code: discovery_listing_not_found
              reason: No listing has this identifier.
              retryable: false
    RateLimited:
      description: Rate limited (`rate_limited`).
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  headers:
    RetryAfter:
      description: Seconds until a retry can succeed.
      schema:
        type: integer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.