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

# List tradable listings

> Lists listings that can be traded now, with sold windows, free capacity over time, and terms. Use listingKind secondary for the Market (relisted capacity, open to every member of your organization) and primary for Reserve (shown only to approved organizations; otherwise silently omitted). Listings offered only on Spot are not included. Prices are what you pay, fees included. The response does not include offers; read one listing for its offers.

CLI equivalent: `ornn schedules list --listing-kind secondary`. See [Buy relisted capacity](/guides/secondary-market#use-the-api) for the complete purchase flow.


## OpenAPI

````yaml openapi.yaml GET /v1/markets/schedules
openapi: 3.1.0
info:
  title: Ornn compute API
  version: 1.0.0
  description: >-
    Customer HTTP API for Ornn GPU capacity. It covers reserved capacity and
    nodes, VM and Bare Metal access, Kubernetes and Slurm clusters, SSH keys,
    storage volumes and GitHub repositories, private networks, monitoring,
    buying and selling capacity (Reserve, Market, Spot, and Relist), and
    billing. API keys are scoped to one organization and act with their
    creator's access there; account, team, and API-key management stay in the
    console. Most operations require an approved organization. See
    https://docs.ornn.com/api-keys to create a key and
    https://docs.ornn.com/guides/kubernetes-api for an end-to-end Kubernetes
    integration. Examples use fictional IDs and credentials. The info.version
    field identifies the contract revision, not a shared API path version.
  contact:
    email: support@ornn.com
servers:
  - url: https://api.ornn.com
    description: Production
security:
  - OrnnApiKey: []
tags:
  - name: Authentication
  - name: Reservations
  - name: GPU nodes
  - name: Clusters
  - name: Workers
  - name: Virtual machines
    description: >-
      Choose a VM disk, launch VM access on a reservation, and read each VM's
      status, launch progress, and SSH connection details.
  - name: Bare Metal
    description: >-
      Launch Bare Metal access on a reservation, read a host's readiness and SSH
      connection details, and reboot or hard reset it.
  - name: SSH keys
    description: >-
      Register public keys for your organization, choose which keys a VM or Bare
      Metal reservation uses, and queue key delivery to machines. Slurm clusters
      take organization key IDs at launch. Kubernetes API access does not use
      SSH keys.
  - name: Reserve
    description: >-
      Browse reserved-capacity listings and their terms, and post, cancel, or
      accept offers. Reserve listings are visible to approved organizations.
  - name: Market
    description: >-
      Browse relisted capacity and buy windows at the asking price, paid up
      front. Open to every member of your organization.
  - name: Spot
    description: >-
      Hourly order books for VMs with 1, 2, 4, or 8 GPUs on one node: read
      books, trades, and quotes, place and cancel bids, and follow fills.
  - name: Relist
    description: >-
      Sell whole nodes from a reservation you hold at your asking price, and
      manage those listings.
  - name: Storage
    description: >-
      Managed volumes, their files, and GitHub repository pulls. Volumes belong
      to the API key's creator in the key's organization.
  - name: Networks
    description: >-
      Organization private networks and the WireGuard configs you use to reach
      private machines and clusters.
  - name: Monitoring
    description: >-
      Machine telemetry and console logs for capacity your organization holds.
      Reads are limited to your reservation window.
  - name: Billing
    description: >-
      Invoices, billing summary, usage cost, Ornn credits, and account
      statements. Saving a card and paying invoices stay in the console.
externalDocs:
  description: REST integration walkthrough
  url: >-
    https://docs.ornn.com/guides/kubernetes-access#provision-and-manage-through-rest
paths:
  /v1/markets/schedules:
    get:
      tags:
        - Market
        - Reserve
      summary: List tradable listings
      description: >-
        Lists listings that can be traded now, with sold windows, free capacity
        over time, and terms. Use listingKind secondary for the Market (relisted
        capacity, open to every member of your organization) and primary for
        Reserve (shown only to approved organizations; otherwise silently
        omitted). Listings offered only on Spot are not included. Prices are
        what you pay, fees included. The response does not include offers; read
        one listing for its offers.
      operationId: capacityListSchedules
      parameters:
        - name: listingKind
          in: query
          required: false
          description: primary (Reserve) or secondary (Market). Omit for both.
          schema:
            type: string
            enum:
              - primary
              - secondary
          example: secondary
        - name: gpuSlug
          in: query
          required: false
          description: Only listings for this catalog GPU slug.
          schema:
            type: string
          example: nvidia_h100_sxm
        - name: from
          in: query
          required: false
          description: RFC 3339 time. Only listings that end after it.
          schema:
            type: string
            format: date-time
          example: '2026-10-20T00:00:00Z'
        - name: to
          in: query
          required: false
          description: RFC 3339 time. Only listings that start at or before it.
          schema:
            type: string
            format: date-time
          example: '2026-11-20T00:00:00Z'
      responses:
        '200':
          description: Tradable listings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityScheduleList'
              example:
                schedules:
                  - listingId: eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee
                    listingKind: secondary
                    gpuSlug: nvidia_h100_sxm
                    gpusPerNode: 8
                    nodeCount: 2
                    nodeIds:
                      - 33333333-3333-4333-8333-333333333333
                      - 12121212-1212-4212-8212-121212121212
                    startsAt: '2026-10-20T00:00:00Z'
                    endsAt: '2026-11-03T00:00:00Z'
                    status: active
                    cancelReason: null
                    acceptedWindows:
                      - startsAt: '2026-10-21T00:00:00.000Z'
                        endsAt: '2026-10-23T00:00:00.000Z'
                        isMine: false
                    capacityWindows:
                      - startsAt: '2026-10-20T00:00:00.000Z'
                        endsAt: '2026-10-21T00:00:00.000Z'
                        nodeCount: 2
                      - startsAt: '2026-10-21T00:00:00.000Z'
                        endsAt: '2026-10-23T00:00:00.000Z'
                        nodeCount: 1
                      - startsAt: '2026-10-23T00:00:00.000Z'
                        endsAt: '2026-11-03T00:00:00.000Z'
                        nodeCount: 2
                    typedTerms: true
                    terms:
                      - listingTermId: 88888888-8888-4888-8888-888888888888
                        type: reserved
                        minDurationSeconds: 86400
                        maxDurationSeconds: 604800
                        pricePerGpuHourMicroUsd: 4200000
                        downPaymentCents: null
                        renewable: false
                    askPricePerGpuHourMicroUsd: 4200000
                    spotPricePerGpuHourMicroUsd: 4200000
                    spotGpusInUse: 8
                    spotGpusOffered: 0
                    isMine: false
        '400':
          description: Unknown listingKind or an invalid time.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail:
                  code: invalid_request
                  message: Check the request details and try again.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        default:
          $ref: '#/components/responses/Error'
components:
  schemas:
    CapacityScheduleList:
      type: object
      required:
        - schedules
      properties:
        schedules:
          type: array
          items:
            $ref: '#/components/schemas/CapacitySchedule'
    Error:
      type: object
      properties:
        code:
          type: string
        detail:
          oneOf:
            - type: string
            - type: object
              required:
                - code
                - message
              properties:
                code:
                  type: string
                message:
                  type: string
    CapacitySchedule:
      type: object
      description: >-
        A listing as it trades. Prices are what you pay or, for a listing you
        own, what you receive. Never identifies who supplies the capacity.
      required:
        - listingId
        - listingKind
        - gpuSlug
        - status
        - isMine
      properties:
        listingId:
          type: string
          format: uuid
        listingKind:
          type: string
          description: >-
            primary for Reserve listings; secondary for relisted (Market)
            capacity.
        gpuSlug:
          type: string
        gpusPerNode:
          type:
            - integer
            - 'null'
        nodeCount:
          type: integer
        nodeIds:
          type: array
          items:
            type: string
        startsAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Start of the listing's availability.
        endsAt:
          type:
            - string
            - 'null'
          format: date-time
          description: End of the listing's availability.
        status:
          type: string
          description: active while the listing can trade.
        cancelReason:
          type:
            - string
            - 'null'
        acceptedWindows:
          type: array
          description: Windows already sold on this listing.
          items:
            $ref: '#/components/schemas/CapacitySoldWindow'
        capacityWindows:
          type: array
          description: Free node count over time. Use it to choose a window before buying.
          items:
            $ref: '#/components/schemas/CapacityAvailabilityWindow'
        typedTerms:
          type: boolean
          description: True when the listing sells through terms.
        terms:
          type: array
          description: >-
            Financial terms. When present, send one listingTermId with an offer
            or purchase.
          items:
            $ref: '#/components/schemas/CapacityScheduleTerm'
        pricePerGpuHourMicroUsd:
          type:
            - integer
            - 'null'
          format: int64
          description: 'Reserve listings: the listing price.'
        downPaymentCents:
          type:
            - integer
            - 'null'
          format: int64
          description: 'Reserve listings: the down payment.'
        askPricePerGpuHourMicroUsd:
          type:
            - integer
            - 'null'
          format: int64
          description: 'Market listings: the asking price you pay, fees included.'
        spotPricePerGpuHourMicroUsd:
          type:
            - integer
            - 'null'
          format: int64
          deprecated: true
          description: Older name for askPricePerGpuHourMicroUsd.
        spotGpusInUse:
          type:
            - integer
            - 'null'
          description: GPUs on this listing running Spot VMs now.
        spotGpusOffered:
          type:
            - integer
            - 'null'
          description: GPUs on this listing resting on the Spot book.
        isMine:
          type: boolean
          description: True when your organization owns the listing.
        offers:
          type: array
          description: 'Single-listing reads only: offers posted on this listing.'
          items:
            $ref: '#/components/schemas/CapacityOffer'
    CapacitySoldWindow:
      type: object
      required:
        - startsAt
        - endsAt
        - isMine
      properties:
        startsAt:
          type:
            - string
            - 'null'
          format: date-time
        endsAt:
          type:
            - string
            - 'null'
          format: date-time
        isMine:
          type: boolean
          description: True when your organization bought this window.
    CapacityAvailabilityWindow:
      type: object
      required:
        - startsAt
        - endsAt
        - nodeCount
      properties:
        startsAt:
          type: string
          format: date-time
        endsAt:
          type: string
          format: date-time
        nodeCount:
          type: integer
          description: Nodes still free for this whole interval.
    CapacityScheduleTerm:
      type: object
      required:
        - listingTermId
        - pricePerGpuHourMicroUsd
      properties:
        listingTermId:
          type: string
          format: uuid
        type:
          type:
            - string
            - 'null'
          enum:
            - reserved
            - spot
            - on-demand
            - null
          description: >-
            Reserve offers and Market purchases use reserved terms. spot terms
            are not sold as windows.
        minDurationSeconds:
          type:
            - integer
            - 'null'
        maxDurationSeconds:
          type:
            - integer
            - 'null'
        pricePerGpuHourMicroUsd:
          type: integer
          format: int64
          description: >-
            On a Market listing, the price you pay with fees included. Send this
            value as askPricePerGpuHourMicroUsd when you buy.
        downPaymentCents:
          type:
            - integer
            - 'null'
          format: int64
        renewable:
          type: boolean
    CapacityOffer:
      type: object
      required:
        - offerId
        - listingId
        - status
        - isMine
        - onMyListing
      properties:
        offerId:
          type: string
          format: uuid
          description: Offer ID. An accepted offer's reservation has this same ID.
        listingId:
          type: string
          format: uuid
        listingTermId:
          type:
            - string
            - 'null'
          format: uuid
        startsAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Window start. Acceptance moves it to the acceptance time if that is
            later.
        endsAt:
          type:
            - string
            - 'null'
          format: date-time
        pricePerGpuHourMicroUsd:
          type:
            - integer
            - 'null'
          format: int64
        downPaymentCents:
          type:
            - integer
            - 'null'
          format: int64
        status:
          type: string
          description: open, accepted, or cancelled. Handle unrecognized values.
        cancelReason:
          type:
            - string
            - 'null'
          description: >-
            For example cancelled_by_author, cancelled_by_seller,
            conflict_with_trade (another offer or purchase took the window), or
            listing_cancelled.
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        acceptedAt:
          type:
            - string
            - 'null'
          format: date-time
        isMine:
          type: boolean
          description: True when your organization posted the offer.
        onMyListing:
          type: boolean
          description: True when the offer is on a listing your organization owns.
  responses:
    Unauthorized:
      description: >-
        The credential is missing, invalid, revoked, or no longer belongs to a
        current organization member. Check the HTTP status before parsing the
        body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The credential lacks access to this operation, or the organization
        requires approval. An API key does not bypass these checks.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error:
      description: >-
        Unsuccessful request. Check HTTP status first. Errors may have
        detail.code/detail.message, a string detail and optional top-level code,
        or an empty/non-JSON body. 401: invalid credential; 403: access or
        approval required; 404: not visible or credentials not ready; 409:
        lifecycle conflict; 429: back off; 5xx: service failure. Inspect current
        state before retrying mutations.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    OrnnApiKey:
      type: http
      scheme: bearer
      bearerFormat: ornn_sk_...
      description: >-
        Create an organization API key in Account Settings > Developer. Do not
        send this key to the Kubernetes API server.

````

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