Rift Orders API

Market order creation and execution

Operations 1

POST /order/market Create a market order #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rift-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rift-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rift Router Orders API
  version: v3-beta
  description: Rift is a decentralized exchange (DEX) aggregator that routes swap orders across 20+ venues and bridges to guarantee best-price execution with no added fees. This Router API exposes market quoting, market order creation, and health/provider status endpoints. Reconstructed faithfully from the published API reference at https://docs.rift.trade; the API is in beta.
  contact:
    name: Rift
    url: https://rift.trade
  x-apis-json-generated: '2026-07-21'
  x-apis-json-method: generated
  x-apis-json-source: https://docs.rift.trade/api
servers:
- url: https://router-gateway-v3-production.up.railway.app
  description: Production router gateway (v3, beta)
tags:
- name: Orders
  description: Market order creation and execution
paths:
  /order/market:
    post:
      operationId: createMarketOrder
      summary: Create a market order
      description: Creates a market order from a previously returned quoteId. Requires a client-supplied idempotencyKey so retries do not create duplicate orders.
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrderRequest'
      responses:
        '200':
          description: Order created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '409':
          description: Conflict (e.g. idempotency or expired quote)
        '413':
          description: Payload too large
        '500':
          description: Internal server error
        '502':
          description: Bad gateway
        '503':
          description: Service unavailable
        '504':
          description: Gateway timeout
components:
  schemas:
    Order:
      type: object
      properties:
        orderId:
          type: string
        orderAddress:
          type: string
        amountToSend:
          type: string
        quoteId:
          type: string
        orderType:
          type: string
        from:
          type: string
        to:
          type: string
        status:
          type: string
        expiry:
          type: string
          format: date-time
        estimatedOut:
          type: string
        route:
          type: array
          items:
            type: object
        amountFormat:
          type: string
          enum:
          - readable
          - raw
        refundMode:
          type: string
          enum:
          - evmSignature
          - token
        refundAuthorizer:
          type:
          - string
          - 'null'
        refundToken:
          type:
          - string
          - 'null'
        expectedSwapTimeMs:
          type: integer
          minimum: 0
    CreateOrderRequest:
      type: object
      required:
      - quoteId
      - fromAddress
      - toAddress
      - idempotencyKey
      - refundAuthorizer
      properties:
        quoteId:
          type: string
          format: uuid
          description: The quoteId returned by getMarketQuote.
        fromAddress:
          type: string
          minLength: 1
          maxLength: 128
        toAddress:
          type: string
          minLength: 1
          maxLength: 128
        idempotencyKey:
          type: string
          minLength: 16
          maxLength: 128
          pattern: ^[A-Za-z0-9._:-]+$
          description: Client-supplied key that makes order creation idempotent.
        refundAuthorizer:
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 128
        refundAddress:
          type: string
          minLength: 1
          maxLength: 128
        integrator:
          type: string
          minLength: 1
          maxLength: 128
          description: Optional integrator identifier for attribution.
        refundMode:
          type: string
          enum:
          - evmSignature
          - token
          default: evmSignature
        amountFormat:
          type: string
          enum:
          - readable
          - raw
          default: readable