> ## Documentation Index
> Fetch the complete documentation index at: https://exchanger-api.iexexchanger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Public contract version registry

> Get the published contracts and their versions. Use a contract identifier to look it up individually.

[Русская версия](https://exchanger-api.iexexchanger.com/api-reference/платформа/get-public-contracts.md)

Public request. No token or signature required.

### Related methods

* [Show one public contract version](https://exchanger-api.iexexchanger.com/en/api-reference/platform/get-public-contracts-by-contract.md)

```bash cURL
curl --request GET \
  --url "https://your-exchange/api/v3/public/contracts" \
  --header 'Accept: application/json'
```


## OpenAPI

````yaml /openapi/openapi.yaml get /public/contracts
openapi: 3.1.0
info:
  title: iEXExchanger Public API
  version: 4.0.0
  description: >
    Use this API to read client and exchange data, create orders, receive

    webhooks, and manage partner payouts. Start with GET /ping to check

    availability and GET /private/scopes to inspect the API scope catalog.


    Private operations require both a Sanctum token in Authorization: Bearer

    <token> and HMAC v2. Send X-Api-Signature-Version with the value v2 together

    with X-Api-Timestamp, X-Api-Nonce and X-Api-Signature. Partner payout
    creation

    also requires an Idempotency-Key. When a private operation lists accepted

    token permissions in x-required-scopes, any one of these scopes is
    sufficient.


    Nonempty HMAC-signed bodies must use application/json or application/*+json.

    Multipart is supported by the upload, order field file and receipt
    operations

    listed below. Send exactly one file part named file. The default JSON body
    limit is 1 MiB. A body

    over the installation's limit returns HTTP 413.

    URL-encoded signed bodies and ambiguous content types return
    invalid_signature.


    JSON responses use one envelope: state=0 means success; state=1 means an

    error. Read error.code for a stable machine-readable reason. List endpoints

    support page pagination, and some support cursor pagination for large lists.

    Reuse an Idempotency-Key when retrying a write request with the same body.

    A replay of webhook management using a saved result from a retired protocol

    returns HTTP 409 with protocol_retired in error.details.reason. A request

    selecting an unsupported webhook payload version returns HTTP 422.


    The English contract is in openapi.yaml and the Russian translation is in

    openapi.ru.yaml. Paths, field names, enum values and error codes are

    identical in both files. The example bodies use the same sandbox data in

    both languages. The server localizes message text according to the request
    locale.

    HTTP 401 indicates missing or invalid authentication or signature. HTTP 403
    indicates an access restriction. HTTP 429 indicates rate or quota limits.
    HTTP 503 indicates the API or site is unavailable.
servers:
  - url: /api/v3
security:
  - sanctumBearer: []
    apiTimestamp: []
    apiNonce: []
    apiSignature: []
tags:
  - name: System
    description: Availability checks.
  - name: Client
    description: The authenticated client's profile and orders.
  - name: Orders
    description: Order lists, status, actions and payment confirmation.
  - name: Exchange
    description: Payment systems, routes, quotes and exchange orders.
  - name: Files
    description: One-time upload intents for verification files.
  - name: Verifications
    description: Identity and card verification requirements and submissions.
  - name: Sandbox
    description: Simulate an exchange order without creating it.
  - name: Reviews
    description: Read published reviews and submit a review for your order.
  - name: Partner
    description: Partner statistics, referrals, exchanges and payouts.
  - name: Platform
    description: Contract versions, JSON schemas and API usage.
  - name: Webhooks
    description: Register destinations and inspect events and delivery attempts.
  - name: Security
    description: Token permissions and request security details.
paths:
  /public/contracts:
    get:
      tags:
        - Platform
      summary: Public contract version registry
      description: >-
        Get the published contracts and their versions. Use a contract
        identifier to look it up individually.
      operationId: getPublicContracts
      responses:
        '200':
          description: Current contract versions.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      result:
                        type: object
                        properties:
                          contracts:
                            type: array
                            items:
                              $ref: '#/components/schemas/ContractVersion'
              examples:
                registryResponse:
                  summary: Registry response
                  value:
                    state: 0
                    message: OK
                    result:
                      contracts:
                        - key: route-api
                          version: v3
                          title: Route API
                          status: current
                          stability: stable
                          description: Версия набора HTTP-маршрутов публичного API.
                          headers:
                            - X-Api-Version
                          schemas: []
                        - key: success-envelope
                          version: api-envelope-v1
                          title: Success envelope
                          status: current
                          stability: stable
                          description: >-
                            Единый JSON-формат успешного ответа: state, message,
                            result, meta.
                          headers:
                            - X-Api-Envelope-Version
                          schemas:
                            - success-envelope.v1
                        - key: error-envelope
                          version: api-error-v1
                          title: Error envelope
                          status: current
                          stability: stable
                          description: >-
                            Единый JSON-формат ошибок с HTTP code и стабильным
                            error.code.
                          headers:
                            - X-Api-Error-Version
                          schemas:
                            - error-envelope.v1
                        - key: operation-contract
                          version: operation-contract-v1
                          title: Operation contract
                          status: current
                          stability: stable
                          description: >-
                            Контракт направления обмена, построенный поверх
                            Angular operation detail.
                          headers:
                            - X-Api-Operation-Contract-Version
                          schemas:
                            - operation-contract.v1
                        - key: route-snapshot
                          version: route-snapshot-v1
                          title: Route snapshot
                          status: current
                          stability: stable
                          description: >-
                            Версионированный слепок условий направления перед
                            preflight/order.
                          headers: []
                          schemas:
                            - route-snapshot.v1
                        - key: route-capabilities
                          version: route-capabilities-v1
                          title: Route capability matrix
                          status: current
                          stability: stable
                          description: >-
                            Карта возможностей направления: поля, действия, rate
                            modes, проверки и endpoint-ы.
                          headers: []
                          schemas:
                            - route-capabilities.v1
                        - key: webhook-payload
                          version: webhook-payload-v2
                          title: Webhook payload
                          status: current
                          stability: stable
                          description: >-
                            Компактное исходящее уведомление и записи центра
                            доставки v2.
                          headers:
                            - X-Api-Webhook-Payload-Version
                          schemas:
                            - webhook-notification.v2
                            - webhook-event.v2
                            - webhook-delivery.v2
                        - key: webhook-signature
                          version: hmac-sha256-v2
                          title: Webhook signature
                          status: current
                          stability: stable
                          description: >-
                            Подпись вебхука связывает исходные байты JSON,
                            идентификатор и тип события, время и номер попытки.
                          headers:
                            - X-Webhook-Signature-Version
                            - X-Webhook-Event-Id
                            - X-Webhook-Event-Type
                            - X-Webhook-Timestamp
                            - X-Webhook-Attempt
                            - X-Webhook-Nonce
                            - X-Webhook-Signature
                          schemas: []
                        - key: request-signature
                          version: hmac-sha256-v2
                          title: Request signature v2
                          status: current
                          stability: stable
                          description: >-
                            Обязательная подпись приватного запроса с явной
                            версией v2. Связывает запрос с ключом
                            идемпотентности.
                          headers:
                            - X-Api-Signature-Version
                            - X-Api-Signature
                            - X-Api-Timestamp
                            - X-Api-Nonce
                          schemas: []
                        - key: idempotency
                          version: idempotency-key-v1
                          title: Idempotency
                          status: current
                          stability: stable
                          description: Повторяемые unsafe-запросы через Idempotency-Key.
                          headers:
                            - Idempotency-Key
                          schemas: []
                        - key: cursor-pagination
                          version: cursor-v1
                          title: Cursor pagination
                          status: current
                          stability: stable
                          description: >-
                            Страница без COUNT-запроса через cursor и стабильную
                            сортировку id/-id.
                          headers: []
                          schemas: []
                        - key: schema-registry
                          version: schema-registry-v1
                          title: Schema registry
                          status: current
                          stability: stable
                          description: >-
                            Каталог JSON Schema для SDK, contract tests и
                            клиентской генерации.
                          headers: []
                          schemas:
                            - schema-registry.v1
                        - key: client-health
                          version: client-health-v1
                          title: Client API health
                          status: current
                          stability: stable
                          description: >-
                            Диагностика текущего клиента, API-ключа, квот,
                            scopes, IP и webhook-состояния.
                          headers: []
                          schemas:
                            - client-health.v1
                    meta:
                      request_id: example-request-1
                      correlation_id: example-correlation-1
                      timestamp: '2026-11-21T18:40:00.000000Z'
        default:
          $ref: '#/components/responses/Error'
      security: []
components:
  schemas:
    SuccessEnvelope:
      type: object
      required:
        - state
        - message
        - result
        - meta
      properties:
        state:
          type: integer
          enum:
            - 0
        message:
          type: string
        result: {}
        meta:
          $ref: '#/components/schemas/Meta'
    ContractVersion:
      type: object
      required:
        - key
        - version
        - title
        - status
        - stability
        - description
        - headers
        - schemas
      properties:
        key:
          type: string
          example: operation-contract
        version:
          type: string
          example: operation-contract-v1
        title:
          type: string
        status:
          type: string
          example: current
        stability:
          type: string
          example: stable
        description:
          type: string
        headers:
          type: array
          items:
            type: string
        schemas:
          type: array
          items:
            type: string
    Meta:
      type: object
      required:
        - request_id
        - correlation_id
        - timestamp
      properties:
        request_id:
          type: string
        correlation_id:
          type: string
        timestamp:
          type: string
          format: date-time
        pagination:
          $ref: '#/components/schemas/Pagination'
        filters:
          oneOf:
            - type: object
            - type: array
              maxItems: 0
              items: {}
        sort:
          type: array
          items:
            type: string
        summary:
          anyOf:
            - $ref: '#/components/schemas/PartnerExchangeListSummary'
            - $ref: '#/components/schemas/PartnerPayoutListSummary'
    ErrorEnvelope:
      type: object
      required:
        - state
        - message
        - code
        - error
        - meta
      properties:
        state:
          type: integer
          enum:
            - 1
        message:
          type: string
        code:
          type: integer
          description: HTTP status code.
        error:
          type: object
          required:
            - code
            - type
            - details
          properties:
            code:
              $ref: '#/components/schemas/ApiErrorCode'
              description: Stable machine-readable API error code.
            type:
              $ref: '#/components/schemas/ApiErrorCode'
              deprecated: true
              description: Backward-compatible alias of `error.code`.
            details:
              $ref: '#/components/schemas/ApiErrorDetails'
        meta:
          $ref: '#/components/schemas/Meta'
    Pagination:
      oneOf:
        - $ref: '#/components/schemas/PagePagination'
        - $ref: '#/components/schemas/CursorPagination'
      discriminator:
        propertyName: mode
        mapping:
          page: '#/components/schemas/PagePagination'
          cursor: '#/components/schemas/CursorPagination'
    PartnerExchangeListSummary:
      type: object
      required:
        - total
        - bonus_sum
        - currency
        - confirmed_accruals
        - by_currency
      properties:
        total:
          type: integer
        bonus_sum:
          type: string
        currency:
          type:
            - string
            - 'null'
        confirmed_accruals:
          type: integer
        by_currency:
          type: array
          items:
            $ref: '#/components/schemas/PartnerBonusCurrencySummary'
    PartnerPayoutListSummary:
      type: object
      required:
        - total
        - paid
        - pending
        - rejected
      properties:
        total:
          type: integer
        paid:
          type: integer
        pending:
          type: integer
        rejected:
          type: integer
    ApiErrorCode:
      type: string
      enum:
        - authentication_required
        - api_token_required
        - api_disabled
        - site_maintenance
        - api_user_disabled
        - account_banned
        - verification_protection
        - api_admin_account_denied
        - ip_not_allowed
        - scope_denied
        - rate_limit_exceeded
        - signature_required
        - invalid_signature
        - signature_expired
        - signature_replay
        - not_found
        - method_not_allowed
        - validation_failed
        - invalid_filter
        - invalid_cursor
        - invalid_scope
        - token_not_found
        - token_inactive
        - quota_exceeded
        - idempotency_conflict
        - idempotency_in_progress
        - invalid_idempotency_key
        - webhook_endpoint_limit_exceeded
        - webhook_endpoint_not_found
        - http_error
        - server_error
    ApiErrorDetails:
      type:
        - object
        - array
        - 'null'
      maxItems: 0
      items: {}
      properties:
        fields:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        issues:
          type: array
          items:
            $ref: '#/components/schemas/ApiIssue'
        required_scopes:
          type: array
          items:
            type: string
        retry_after:
          type:
            - integer
            - 'null'
          minimum: 0
        period:
          enum:
            - day
            - month
        limit:
          type:
            - integer
            - 'null'
        used:
          type: integer
        remaining:
          type:
            - integer
            - 'null'
        resets_at:
          type:
            - string
            - 'null'
          format: date-time
        reason:
          type:
            - string
            - 'null'
        is_banned:
          type: boolean
        ends_at:
          type:
            - string
            - 'null'
          format: date-time
        idempotency_key:
          type: string
        message:
          type: string
        cost:
          type:
            - object
            - 'null'
        headers:
          type: array
          items:
            type: string
          description: >-
            Headers expected by signature verification. For v2 signing errors
            this includes X-Api-Signature-Version.
        algorithm:
          type: string
        ip:
          type:
            - string
            - 'null'
        max:
          type: integer
        locked_until:
          type:
            - string
            - 'null'
          format: date-time
        exceeded:
          type: boolean
    PagePagination:
      type: object
      required:
        - mode
        - current_page
        - per_page
        - total
        - last_page
        - from
        - to
        - has_more
      properties:
        mode:
          const: page
        current_page:
          type: integer
          minimum: 1
        per_page:
          type: integer
          minimum: 1
        total:
          type: integer
          minimum: 0
        last_page:
          type: integer
          minimum: 1
        from:
          type:
            - integer
            - 'null'
        to:
          type:
            - integer
            - 'null'
        has_more:
          type: boolean
    CursorPagination:
      type: object
      required:
        - mode
        - per_page
        - cursor
        - next_cursor
        - has_more
        - sort
      properties:
        mode:
          const: cursor
        per_page:
          type: integer
          minimum: 1
        cursor:
          type:
            - string
            - 'null'
        next_cursor:
          type:
            - string
            - 'null'
        has_more:
          type: boolean
        sort:
          type: array
          items:
            enum:
              - id
              - '-id'
    PartnerBonusCurrencySummary:
      type: object
      required:
        - currency
        - bonus_sum
        - confirmed_accruals
      properties:
        currency:
          type:
            - string
            - 'null'
        bonus_sum:
          type: string
        confirmed_accruals:
          type: integer
    ApiIssue:
      type: object
      required:
        - field
        - code
        - message
      properties:
        field:
          type:
            - string
            - 'null'
        code:
          type: string
        message:
          type: string
        severity:
          enum:
            - error
            - warning
            - info
        meta:
          type:
            - object
            - array
  responses:
    Error:
      description: Standard error envelope.
      headers:
        Retry-After:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    sanctumBearer:
      type: http
      scheme: bearer
      bearerFormat: Sanctum
      description: 'Sanctum token in `Authorization: Bearer <token>` format.'
    apiTimestamp:
      type: apiKey
      in: header
      name: X-Api-Timestamp
      description: >-
        Positive Unix seconds or an absolute ISO 8601 timestamp with seconds and
        a numeric offset or Z. A fractional second may contain up to six digits.
    apiNonce:
      type: apiKey
      in: header
      name: X-Api-Nonce
      description: >-
        Unique nonce per token within the signing window. Use 8 to 128
        characters from A–Z, a–z, 0–9, period, underscore, colon and hyphen.
    apiSignature:
      type: apiKey
      in: header
      name: X-Api-Signature
      description: Hex HMAC-SHA256 signature, optionally prefixed with `sha256=`.

````

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