Swapper Swap API
The swap API from Swapper — 1 operation(s) for swap.
The swap API from Swapper — 1 operation(s) for swap.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/xmrtousdc-xyz:xmrtousdc-xyz-swap-api"
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.
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: 3.2.0
info:
title: Swapper Agent Swap 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:
- name: Swap
paths:
/orders:
post:
tags:
- Swap
summary: 'Removed: raw order creation (answers 410)'
deprecated: true
description: 'Orders are created from a quote only: POST /agent/swap/quote, then POST /agent/swap/create with { quoteId } and an idempotency-key header. This older route made orders without a quote (origin other: never payable, payableReason unverified_origin) and now answers 410 raw_create_disabled. Reading orders is unchanged (GET /agent/swap/status/{orderId}, GET /agent/swap/orders).'
operationId: rawOrderCreateRemoved
responses:
'410':
description: 'raw_create_disabled: use POST /agent/swap/quote, then POST /agent/swap/create (details.quote, details.create, details.docs). Not retryable.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
components:
schemas:
ErrorEnvelope:
type: object
description: 'Every REST error response: ok false and error { code, message, details, retryable, requestId }.'
required:
- ok
- error
properties:
ok:
type: boolean
enum:
- false
error:
type: object
required:
- code
- message
- retryable
- requestId
properties:
code:
type: string
message:
type: string
details:
type: object
description: 'Code-specific: field and reason (invalid_request, e.g. basis + minimum_not_published), mismatched (quote_mismatch, upstream_mismatch), orderId (quote_already_used; idempotency_conflict with state; service_paused when a safety check blocked the key), reason (service_paused: provider_api_deprecated | provider_maintenance | deposit_address_reused), minimumSwapUsd (below_provider_minimum), resolvesAt (order_outcome_unknown), lastKnown { status, state, observedAt } (status during a provider outage), bestSendAmount / bestEstimate (target_not_reached), upstreamCode (the provider''s error code, an enum, or null) and upstreamStatus on provider errors. Provider error prose is never passed through; an order''s errorMessage is provider text, prefixed "Provider message (untrusted): ".'
requestId:
type: string
retryable:
type: boolean
retryAfterSec:
type: integer
externalDocs:
description: Agent quickstart guide (REST + MCP)
url: https://xmrtousdc.xyz/for-agents
x-contract-version: '2026-10-08'
x-mcp:
url: https://xmrtousdc.xyz/mcp
transport: streamable-http
auth: none
guide: https://xmrtousdc.xyz/mcp
serverCard: https://xmrtousdc.xyz/.well-known/mcp/server-card.json
tools:
- get_quote
- create_swap
- get_swap_status
- get_funding_options
- list_swaps
- plan_swap
- get_capabilities
- create_support_ticket
- get_support_ticket
- request_agent_key
- submit_feedback
prompts:
- swap_usdc_to_xmr
- swap_xmr_to_usdc
- get_xmr_for_goal
x-discovery:
agentJson: https://xmrtousdc.xyz/.well-known/agent.json
agentJsonAlias: https://xmrtousdc.xyz/agent.json
jwks: https://xmrtousdc.xyz/.well-known/jwks.json
aiPlugin: https://xmrtousdc.xyz/.well-known/ai-plugin.json
securityTxt: https://xmrtousdc.xyz/.well-known/security.txt
securityPolicy: https://xmrtousdc.xyz/security
privacy: https://xmrtousdc.xyz/privacy
terms: https://xmrtousdc.xyz/terms
verifier: https://xmrtousdc.xyz/swapper-verify.js
openapiWellKnown: https://xmrtousdc.xyz/.well-known/openapi.json
llms: https://xmrtousdc.xyz/llms.txt
llmsFull: https://xmrtousdc.xyz/llms-full.txt
sitemap: https://xmrtousdc.xyz/sitemap.xml
mcpGuide: https://xmrtousdc.xyz/mcp
fundingGuide: https://xmrtousdc.xyz/guides/get-usdc-on-arbitrum
agentWalletsGuide: https://xmrtousdc.xyz/guides/agent-wallets