LayerHop Recurring orders API

Solana recurring buys through Jupiter Recurring (beta): deposit a budget once and Jupiter buys a token with it at a fixed interval (every day, every week, …). The order lives on chain in Jupiter's program and the wallet signs every step; LayerHop never holds funds and stores nothing. Jupiter lets integrators charge no fee on these orders, so LayerHop takes none (Jupiter keeps 0.1% of each buy). Cancel any time to get the unspent budget back.

GitHub OpenAPI

Operations 4

POST /v1/recurring-orders Build a recurring order #
GET /v1/recurring-orders List recurring orders #
POST /v1/recurring-orders/submit Submit a signed recurring order transaction #
POST /v1/recurring-orders/{id}/cancel Cancel a recurring 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/layerhop-com:layerhop-com-recurring-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

layerhop-com-recurring-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layerhop Com Recurring orders API
  version: 0.1.0
  contact:
    name: LayerHop
    url: https://docs.layerhop.com
  description: 'Operations tagged Recurring orders across 2 of this provider''s published API definitions: layerhop-com-openapi.yaml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.layerhop.com
  description: Hosted API (production)
- url: http://localhost:8787
  description: Local API (`pnpm --filter @layerhop/api dev`)
security:
- {}
- ApiKey: []
tags:
- name: Recurring orders
  description: 'Solana recurring buys through Jupiter Recurring (beta): deposit a budget once and Jupiter buys a

    token with it at a fixed interval (every day, every week, …). The order lives on chain in Jupiter''s

    program and the wallet signs every step; LayerHop never holds funds and stores nothing. Jupiter

    lets integrators charge no fee on these orders, so LayerHop takes none (Jupiter keeps 0.1% of each

    buy). Cancel any time to get the unspent budget back.'
paths:
  /v1/recurring-orders:
    post:
      tags:
      - Recurring orders
      operationId: createRecurringOrder
      summary: Build a recurring order
      description: 'Builds a Solana recurring order (Jupiter Recurring, time-based): `amount` of `srcToken` (default

        USDC) is deposited when the wallet signs, then spent in `orders` equal buys of `dstToken`, one

        every `intervalSeconds`, starting right away. Returns an unsigned transaction

        (`tx.submitViaApi: true`) and a `requestId`: the `wallet` signs it and you send both to

        `POST /v1/recurring-orders/submit`. Nothing is on chain until then. Jupiter''s limits: at least 2

        orders and each order worth at least $50 (`AMOUNT_TOO_SMALL` otherwise). No LayerHop fee

        (`fees` is always 0). The transaction is checked before it is returned: it must open exactly

        this order for this wallet. Live mode needs the operator to enable recurring orders

        (`FORBIDDEN` until then); an `lh_test_` key builds a test-mode order (provider `sandbox`, a fake

        transaction). Uses the strict rate-limit bucket.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecurringOrderCreateRequest'
            example:
              wallet: 5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9
              srcToken: USDC
              dstToken: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
              amount: '350000000'
              orders: 7
              intervalSeconds: 86400
      responses:
        '201':
          description: Order built; sign `tx` with `wallet` and submit it with `requestId`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringOrderBuild'
              example:
                object: recurring_order_build
                livemode: true
                provider: jupiter
                chainId: 7565164
                wallet: 5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9
                srcToken: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                dstToken: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
                amount: '350000000'
                amountPerOrder: '50000000'
                orders: 7
                intervalSeconds: 86400
                fees:
                  ourFeeBps: 0
                  integratorFeeBps: 0
                requestId: 96974c32-7b0d-468d-b3db-55feb898a430
                tx:
                  vm: svm
                  serializedTx: AQAAAAAAAAAA…
                  submitViaApi: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          description: '`FORBIDDEN`: live recurring orders are not enabled on this deployment yet (test keys always work).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '502':
          $ref: '#/components/responses/ProviderError'
    get:
      tags:
      - Recurring orders
      operationId: listRecurringOrders
      summary: List recurring orders
      description: 'A wallet''s recurring orders, read live from Jupiter: `active` (default) or `history` (completed

        and cancelled), 10 per page. Test-mode callers get an empty list.'
      parameters:
      - name: wallet
        in: query
        required: true
        description: The wallet that owns the orders.
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: '`active` (default) or `history`.'
        schema:
          type: string
          enum:
          - active
          - history
      - name: page
        in: query
        required: false
        description: Page number, from 1.
        schema:
          type: integer
          minimum: 1
          maximum: 100
      responses:
        '200':
          description: A page of recurring orders.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringOrderList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '502':
          $ref: '#/components/responses/ProviderError'
    servers:
    - url: https://api.layerhop.com
      description: Hosted API (production)
    - url: http://localhost:8787
      description: Local API (`pnpm --filter @layerhop/api dev`)
  /v1/recurring-orders/submit:
    post:
      tags:
      - Recurring orders
      operationId: submitRecurringOrder
      summary: Submit a signed recurring order transaction
      description: 'Sends a wallet-signed create or cancel transaction with the `requestId` it was built with to

        Jupiter, which lands it. Returns the signature and, for a create, the order account. Uses the

        strict rate-limit bucket.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecurringOrderSubmitRequest'
            example:
              requestId: 96974c32-7b0d-468d-b3db-55feb898a430
              signedTransaction: AQAB…
      responses:
        '200':
          description: Landed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringOrderSubmitResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '502':
          $ref: '#/components/responses/ProviderError'
    servers:
    - url: https://api.layerhop.com
      description: Hosted API (production)
    - url: http://localhost:8787
      description: Local API (`pnpm --filter @layerhop/api dev`)
  /v1/recurring-orders/{id}/cancel:
    post:
      tags:
      - Recurring orders
      operationId: cancelRecurringOrder
      summary: Cancel a recurring order
      description: 'Builds the cancel transaction for an active order (`id` is the order account from

        `GET /v1/recurring-orders`). The `wallet` signs it and you send it with `requestId` to

        `POST /v1/recurring-orders/submit`; the unspent budget (and any bought tokens not sent yet) goes

        back to the wallet. Works whether or not live creation is enabled.'
      parameters:
      - name: id
        in: path
        required: true
        description: The order account.
        schema:
          type: string
        example: G1wnaWMJ7VTRnryBHvxNwWmwUDD5yUNBmLvZkRK1mPcT
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecurringOrderCancelRequest'
            example:
              wallet: 5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9
      responses:
        '200':
          description: Cancel transaction built.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringOrderCancelResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '502':
          $ref: '#/components/responses/ProviderError'
    servers:
    - url: https://api.layerhop.com
      description: Hosted API (production)
    - url: http://localhost:8787
      description: Local API (`pnpm --filter @layerhop/api dev`)
components:
  responses:
    ProviderError:
      description: The upstream provider failed (`PROVIDER_ERROR`).
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: PROVIDER_ERROR
              message: api.relay.link 500
              requestId: 0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21
              docsUrl: https://docs.layerhop.com/errors/PROVIDER_ERROR
    TooManyRequests:
      description: 'Over your rate limit (`RATE_LIMITED`): the key''s `rateLimitRpm`, or `ANON_RATE_LIMIT_RPM` per IP

        without a key. Wait `retry-after` seconds.

        '
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        retry-after:
          description: Seconds until a request will be accepted.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMITED
              message: Rate limit of 120 requests/minute exceeded; retry in 1s
              requestId: 0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21
              docsUrl: https://docs.layerhop.com/errors/RATE_LIMITED
    BadRequest:
      description: 'Invalid request (`INVALID_PARAMS`, `UNSUPPORTED_CHAIN`, `UNSUPPORTED_TOKEN`,

        `AMOUNT_TOO_SMALL`, `AMOUNT_TOO_LARGE`).

        '
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_PARAMS
              message: 'amount: amount must be an integer string in base units'
              requestId: 0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21
              docsUrl: https://docs.layerhop.com/errors/INVALID_PARAMS
  schemas:
    Error:
      type: object
      description: Every non-2xx response has this body.
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - requestId
          - docsUrl
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
              description: Human-readable detail. Do not parse it.
            requestId:
              type: string
              format: uuid
              description: Same value as the `x-request-id` header.
            docsUrl:
              type: string
              format: uri
              description: Error catalog page, `https://docs.layerhop.com/errors/{code}`.
            details:
              type: object
              description: 'Extra structured data, only on some errors. `NO_ROUTE` (and `AMOUNT_TOO_SMALL` /

                `AMOUNT_TOO_LARGE` decided from the providers'' answers) on a quote carry `errors`: why

                each provider returned no quote, the same entries a successful response lists in `errors`.

                `AMOUNT_TOO_SMALL` on a quote may also carry the route''s minimum (D-036): `minAmount`,

                `minAmountUsd`, `minAmountApprox`. `NO_ROUTE` on a live quote (and `UNSUPPORTED_CHAIN`

                into a route-restricted chain such as Blast) may carry `suggestions` (D-053).

                '
              properties:
                errors:
                  type: array
                  items:
                    $ref: '#/components/schemas/ProviderError'
                suggestions:
                  type: array
                  maxItems: 4
                  description: '`NO_ROUTE` / `UNSUPPORTED_CHAIN` on a live quote: alternatives that quoted, best first (D-053).'
                  items:
                    $ref: '#/components/schemas/RouteSuggestion'
                minAmount:
                  type: string
                  pattern: ^\d+$
                  description: '`AMOUNT_TOO_SMALL`: smallest input known to quote on this route, base units of `srcToken`.'
                minAmountUsd:
                  type: number
                  description: '`AMOUNT_TOO_SMALL`: `minAmount` in USD, when the token has a price.'
                minAmountApprox:
                  type: boolean
                  description: '`AMOUNT_TOO_SMALL`: `true` when `minAmount` was found by probing larger amounts ($10 / $25 / $50), so the true minimum is at most this; `false` when a provider reported it.'
    RecurringOrder:
      type: object
      required:
      - id
      - object
      - provider
      - chainId
      - status
      - wallet
      - srcToken
      - dstToken
      - amount
      - amountPerOrder
      - orders
      - ordersFilled
      - intervalSeconds
      - spentAmount
      - withdrawnAmount
      - receivedAmount
      - openTxHash
      - closeTxHash
      - createdAt
      - fills
      properties:
        id:
          type: string
          description: The order account.
        object:
          type: string
          const: recurring_order
        provider:
          type: string
          const: jupiter
        chainId:
          type: integer
        status:
          type: string
          enum:
          - active
          - completed
          - cancelled
        wallet:
          type: string
        srcToken:
          type: string
        dstToken:
          type: string
        amount:
          type: string
          pattern: ^\d+$
          description: Budget deposited, base units.
        amountPerOrder:
          type: string
          pattern: ^\d+$
        orders:
          type: integer
          description: Number of buys the budget covers.
        ordersFilled:
          type: integer
        intervalSeconds:
          type: integer
        spentAmount:
          type: string
          pattern: ^\d+$
          description: Budget spent on buys so far.
        withdrawnAmount:
          type: string
          pattern: ^\d+$
          description: Budget returned to the wallet (cancel).
        receivedAmount:
          type: string
          pattern: ^\d+$
          description: Bought so far, base units of `dstToken`.
        openTxHash:
          type:
          - string
          - 'null'
        closeTxHash:
          type:
          - string
          - 'null'
        createdAt:
          type:
          - string
          - 'null'
          format: date-time
        fills:
          type: array
          description: Up to 50 most recent buys.
          items:
            $ref: '#/components/schemas/RecurringOrderFill'
    ErrorCode:
      type: string
      description: Stable error code. Each has a page at `https://docs.layerhop.com/errors/{code}`.
      enum:
      - INVALID_PARAMS
      - UNSUPPORTED_CHAIN
      - UNSUPPORTED_TOKEN
      - AMOUNT_TOO_SMALL
      - AMOUNT_TOO_LARGE
      - CALLS_REVERTED
      - LAUNCH_IMAGE_INVALID
      - NO_ROUTE
      - ROUTE_EXCLUDED
      - QUOTE_NOT_FOUND
      - QUOTE_EXPIRED
      - ORDER_NOT_FOUND
      - PROVIDER_ERROR
      - PROVIDER_TIMEOUT
      - RATE_LIMITED
      - QUOTA_EXCEEDED
      - UNAUTHORIZED
      - FORBIDDEN
      - ADDRESS_SANCTIONED
      - NOT_FOUND
      - CONFLICT
      - GASLESS_PENDING
      - GASLESS_FAILED
      - MARKET_UNAVAILABLE
      - LIMIT_ORDER_REJECTED
      - INTERNAL
    ProviderError:
      type: object
      description: A provider that failed while the request as a whole succeeded.
      required:
      - provider
      - code
      - message
      properties:
        provider:
          $ref: '#/components/schemas/ProviderId'
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    RouteSuggestion:
      description: 'An alternative to a route that returned no quote (D-053). `dst_token`: same payment, another

        destination token. `src_token`: same destination token, paid with another source token worth the

        same. `via_hub`: two signed steps through `hub` (`steps[0]` then `steps[1]`, each its own quote,

        order and signature); the top-level fields describe the whole trip.

        '
      allOf:
      - $ref: '#/components/schemas/RouteLeg'
      - type: object
        required:
        - kind
        - message
        properties:
          kind:
            type: string
            enum:
            - dst_token
            - src_token
            - via_hub
          message:
            type: string
            description: Short text for a button, e.g. "Receive USDC on Ethereum instead".
          symbol:
            type: string
            description: 'The token that changed: the new source or destination token, or the hub token.'
          hub:
            type: object
            description: '`via_hub` only: the token between the two steps.'
            required:
            - chainId
            - token
            - symbol
            - decimals
            properties:
              chainId:
                type: integer
              token:
                type: string
              symbol:
                type: string
              decimals:
                type: integer
          steps:
            type: array
            description: '`via_hub` only: the two legs in order.'
            minItems: 2
            maxItems: 2
            items:
              $ref: '#/components/schemas/RouteLeg'
    RecurringOrderList:
      type: object
      required:
      - recurringOrders
      - page
      - totalPages
      properties:
        recurringOrders:
          type: array
          items:
            $ref: '#/components/schemas/RecurringOrder'
        page:
          type: integer
        totalPages:
          type: integer
    RecurringOrderSubmitRequest:
      type: object
      additionalProperties: false
      required:
      - requestId
      - signedTransaction
      properties:
        requestId:
          type: string
        signedTransaction:
          type: string
          description: The wallet-signed transaction, base64.
    RecurringOrderFill:
      type: object
      required:
      - txHash
      - amount
      - dstAmount
      - feeAmount
      - feeToken
      - filledAt
      properties:
        txHash:
          type: string
        amount:
          type: string
          pattern: ^\d+$
          description: Spent in this buy, base units.
        dstAmount:
          type: string
          pattern: ^\d+$
          description: Bought, base units.
        feeAmount:
          type: string
          pattern: ^\d+$
          description: Jupiter's fee, base units of `feeToken`.
        feeToken:
          type:
          - string
          - 'null'
        filledAt:
          type:
          - string
          - 'null'
          format: date-time
    RecurringOrderBuild:
      type: object
      required:
      - object
      - livemode
      - provider
      - chainId
      - wallet
      - srcToken
      - dstToken
      - amount
      - amountPerOrder
      - orders
      - intervalSeconds
      - fees
      - requestId
      - tx
      properties:
        object:
          type: string
          const: recurring_order_build
        livemode:
          type: boolean
        provider:
          type: string
          enum:
          - jupiter
          - sandbox
        chainId:
          type: integer
          description: Always `7565164` (Solana).
        wallet:
          type: string
        srcToken:
          type: string
          description: Mint spent.
        dstToken:
          type: string
          description: Mint bought.
        amount:
          type: string
          pattern: ^\d+$
          description: Budget in base units.
        amountPerOrder:
          type: string
          pattern: ^\d+$
          description: Spent per buy (`amount / orders`, rounded down).
        orders:
          type: integer
        intervalSeconds:
          type: integer
        fees:
          type: object
          required:
          - ourFeeBps
          - integratorFeeBps
          description: 'Always 0: Jupiter Recurring lets integrators charge no fee.'
          properties:
            ourFeeBps:
              type: integer
              const: 0
            integratorFeeBps:
              type: integer
              const: 0
        requestId:
          type: string
          description: Send it back with the signed transaction.
        tx:
          $ref: '#/components/schemas/SvmTx'
    RouteLeg:
      type: object
      description: One quotable leg, in the same terms as a quote request. Amounts are base units.
      required:
      - srcChain
      - srcToken
      - amount
      - dstChain
      - dstToken
      properties:
        srcChain:
          type: integer
          description: Source chain id.
        srcToken:
          type: string
          description: 'Source token address or mint (native coin: the zero address; SOL: the system program id).'
        amount:
          type: string
          pattern: ^\d+$
          description: Input in base units of `srcToken`.
        dstChain:
          type: integer
          description: Destination chain id.
        dstToken:
          type: string
        dstAmount:
          type: string
          pattern: ^\d+$
          description: Estimated output in base units of `dstToken` (from the check quote; scaled when served from cache).
    RecurringOrderCancelResponse:
      type: object
      required:
      - requestId
      - tx
      properties:
        requestId:
          type: string
        tx:
          $ref: '#/components/schemas/SvmTx'
    ProviderId:
      type: string
      description: 'Liquidity provider. Loaded by default: `jupiter`, `relay`, `debridge`, `zerox`, `kyberswap`, `lifi`, `mayan`,

        `blast-native` (Blast''s canonical bridge: ETH on Ethereum → ETH on Blast only, no LayerHop fee).

        `across` (Across Protocol, cross-chain EVM ↔ EVM), `baltex` (Baltex exchanges and DEX swaps), `routefun`

        (Route, same-chain), `bebop` (Bebop RFQ and Aggregation, same-chain), `near-intents` (NEAR Intents 1Click),

        `thorchain` and `chainflip` (native BTC and other non-EVM routes) `layerhop-solver` (LayerHop''s own solver: USDC between Base,

        Arbitrum and OP Mainnet, filled from our inventory) and `layerhop-router` (LayerHop''s own same-chain

        router on Robinhood Chain and Berachain) are built but not loaded by default.

        `odos` is shut down; `mock` exists only in local

        development (`LAYERHOP_ENABLE_MOCK=1`). `sandbox` serves every request made with an `lh_test_` key.

        `direct` is a plain token transfer, used by checkout when the payer already holds the settlement token.

        '
      enum:
      - jupiter
      - relay
      - debridge
      - mayan
      - zerox
      - kyberswap
      - odos
      - lifi
      - blast-native
      - across
      - baltex
      - routefun
      - bebop
      - near-intents
      - thorchain
      - chainflip
      - layerhop-router
      - layerhop-solver
      - mock
      - sandbox
      - direct
    RecurringOrderCancelRequest:
      type: object
      additionalProperties: false
      required:
      - wallet
      properties:
        wallet:
          type: string
          description: The wallet that owns the order.
    RecurringOrderSubmitResponse:
      type: object
      required:
      - txHash
      - order
      properties:
        txHash:
          type: string
        order:
          type:
          - string
          - 'null'
          description: The order account (create).
    SvmTx:
      type: object
      required:
      - vm
      - serializedTx
      properties:
        vm:
          type: string
          const: svm
        serializedTx:
          type: string
          contentEncoding: base64
          description: Base64 serialized Solana `VersionedTransaction`, for the user's wallet to sign.
        submitViaApi:
          type: boolean
          description: 'When true the wallet must only sign; send the signed transaction to

            `POST /v1/orders/submit` (limit orders: `POST /v1/limit-orders/{id}/submit`). Plain RPC will not land it.

            '
        sandbox:
          type: boolean
          const: true
          description: 'Test mode only: a placeholder (zero blockhash, memo only) that can never land. Never broadcast it.'
    RecurringOrderCreateRequest:
      type: object
      additionalProperties: false
      required:
      - wallet
      - dstToken
      - amount
      - orders
      - intervalSeconds
      properties:
        chain:
          type: string
          description: Only `solana` (the default).
        wallet:
          type: string
          description: The Solana wallet that funds, signs and owns the order.
        srcToken:
          type: string
          description: 'Token spent: mint or symbol. Default `USDC`.'
        dstToken:
          type: string
          description: 'Token bought: mint or symbol.'
        amount:
          type: string
          pattern: ^[1-9]\d*$
          description: The whole budget in base units of `srcToken`, deposited when the order opens.
        orders:
          type: integer
          minimum: 2
          maximum: 1000
          description: Number of buys; each spends `amount / orders`.
        intervalSeconds:
          type: integer
          minimum: 60
          maximum: 31536000
          description: Seconds between buys (86400 = daily, 604800 = weekly).
  headers:
    RequestId:
      description: Unique id for this request. Quote it when you report a problem.
      schema:
        type: string
        format: uuid
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Optional. An `lh_live_…` key from the dashboard attributes requests and orders to your account

        and raises your rate limit (per key, default 120 requests/minute; without a key the limit is

        per IP). An invalid or revoked key is rejected with `UNAUTHORIZED`. If your account has an

        active partner profile, the key selects your partner fee and allows `integratorFeeBps`.


        An `lh_test_…` key switches every request to **test mode**: quotes come from the `sandbox`

        provider (priced from live USD prices), built transactions are placeholders that move no funds

        (`tx.sandbox: true`), and reported orders run a simulated lifecycle (pending, then filled in about

        10 seconds) with webhooks sent to your test endpoints only. Amounts ending in `4001` refund,

        `4002` fail and `4004` return `NO_ROUTE`. Test and live data never mix: a quote, order or

        webhook of one mode is invisible to the other.

        '
    Session:
      type: apiKey
      in: cookie
      name: lh_session
      description: 'Dashboard session cookie set by `POST /v1/auth/verify` (HttpOnly, Secure, SameSite=Lax,

        7 days). Auth and Dashboard routes only.

        '
    AdminBearer:
      type: http
      scheme: bearer
      description: Operator `ADMIN_TOKEN`. Admin routes only.
    AdminSession:
      type: apiKey
      in: cookie
      name: lh_admin
      description: Owner sign-in cookie set by `POST /v1/admin/login` (12 hours). Admin routes only.
x-refined-from:
- layerhop-com-openapi.yaml
- openapi.yaml