Swapper Agent API

The agent API from Swapper — 16 operation(s) for agent.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 17

GET /agent/capabilities Supported chains/directions #
GET /agent/funding Funding guide: what the user needs before sending #
POST /agent/swap/plan Validate intent and list missing inputs #
POST /agent/swap/quote Get quote (by send amount, by target receive amount, or a re-quote) #
POST /agent/swap/create Create the order for a quote and return deposit instructions #
POST /agent/swap/execute Deprecated: create plus an informational fresh quote #
GET /agent/swap/status/{orderId} Get normalized order status #
POST /agent/swap/payment-check Check an unsigned payment against the order's deposit before sending #
GET /agent/swap/orders Find my swaps (recover a lost orderId) #
POST /agent/support/tickets Create support ticket #
GET /agent/support/tickets/{ticketId} Read a ticket's replies #
POST /agent/support/tickets/{ticketId}/messages Follow up on a ticket #
GET /agent/swap/queue The order line #
POST /agent/feedback Rate a swap (optional) #
GET /agent/feedback-summary Ratings summary #
GET /agent/key Agent key terms #
POST /agent/key Register an agent key (optional) #

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/xmrtousdc-xyz:xmrtousdc-xyz-agent-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

xmrtousdc-xyz-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swapper Agent API
  version: 1.1.0
  summary: Private swaps. Deterministic API.
  termsOfService: https://xmrtousdc.xyz/terms
  contact:
    name: Swapper support
    email: support@xmrtousdc.xyz
    url: https://xmrtousdc.xyz/security
  description: 'Public, key-less HTTPS API to swap Monero (XMR) native USDC on Arbitrum One (chain 42161). No account or API key required. Swapper collects no identity documents; the provider may apply its own compliance screening. MCP clients can use the same flow at the MCP endpoint in x-mcp. Contract: docs/AGENT_CONTRACT_V2.md and its v2.1 safety addendum (privacy policy https://xmrtousdc.xyz/privacy; terms https://xmrtousdc.xyz/terms). Flow: funding guide (u2x: native USDC plus ETH for gas) -> plan (optional) -> quote with amount (send asset) or receiveAmount (receive asset) -> create with just the quoteId and a required idempotency-key header (a new random UUID per order; HTTP 202 state queued while the provider''s order limits are reached: send the same create again) -> check the unsigned payment with POST /agent/swap/payment-check -> fund data.deposit.payment once, only while data.payable is true, only if data.destination is the user''s own address and only if data.paymentCheck.safeToSend is true -> long-poll status (waitSec, sinceState) until terminal=true. Creating an order moves no funds; whether to confirm with the user first follows the user''s and the client''s policy. Funds move only when the user''s wallet signs. Swapper never signs. Quotes are provider estimates, not guarantees: the provider publishes no minimum receive amount (terms.receive.minimum is null and minimumPublished false; basis "minimum" is refused with 400 minimum_not_published), so the final amount is set when the swap runs. Swapper earns an integrator fee that is already included in the quoted rate (currently 1%; every quote states it in terms.fees.integratorFee). Nothing is added on top of the quote apart from the network fee for sending the deposit. The provider''s own fees are included in the rate too, itemized only when it reports them (terms.fees.breakdown). A quoteId is accepted for data.acceptWindowSec seconds (300 on this deployment; default 300), until data.expiresAt (Swapper''s confirmation window, not a price lock), and opens at most one order. Creating an order moves no funds. Swapper never signs. Payable gating: data.deposit.payment is non-null only while data.payable is true (order created through create from a quote: data.origin agent_quote; provider order verified against the request; state waiting_for_funding; no deposit seen; no reconfirmation pending; expiry known and at least 600 s away); data.payableReason says why not (unverified_origin for an order created any other way, such as the removed raw POST /orders route). Replays and recovered orders report the live state. Before showing a deposit again (retry, replay, new conversation), read the status: if payable is false, never ask for another deposit. Order facts on create and status: data.origin, data.destination (the payout address recorded at create: always show it), data.evidence (transaction hashes the provider reports: its statements, not chain checks), data.received and data.receivedDetail (the payout in its own asset''s decimals), data.attention (what the state alone does not say, in Swapper''s words) and data.next.action (contact_support: the provider needs an action Swapper cannot take; requote_and_create_new_order: the order can never be funded through Swapper, quote again and create a new order). data.deposit.attestation is Swapper''s signed statement of the deposit instructions when signing is configured (docs/TRANSPARENCY.md). direction: x2u (XMR->USDC, `to` = 0x EVM address) | u2x (USDC->XMR, `to` = Monero address). amount / receiveAmount: decimal strings (exactly one of them on quote). Buying XMR by the amount wanted: {"direction":"u2x","receiveAmount":"1"}. `chain` may be omitted while Arbitrum One is the only live chain. Errors: every error response is the envelope { ok: false, error: { code, message, details, retryable, requestId, retryAfterSec? } } (ErrorEnvelope). Any POST whose body is not JSON (content-type other than application/json) answers 415 unsupported_media_type.'
servers:
- url: https://xmrtousdc.xyz/api/v1
tags:


# --- truncated at 32 KB (117 KB total) ---
# Full source: https://artifacts.apis.io/xmrtousdc-xyz/openapi/xmrtousdc-xyz-agent-api-openapi.yml