# Swop Docs - [Swop Docs](/docs): Everything you need to take payments from people and AI agents, react to them with webhooks, and put Swop inside any AI. - **Start here** - Get started: Keys, auth, errors and your first payment - [Overview](/docs/get-started): What Swop is for developers, and how its pieces fit together. - [Quickstart](/docs/get-started/quickstart): Check your key, find a product, and take your first payment. - **Basics** - [Authentication and API keys](/docs/get-started/authentication): Create a merchant API key, choose its scopes and send it with each request. - [Test vs live](/docs/get-started/test-vs-live): Swop has no sandbox yet. Here's how to build and test safely anyway. - [Errors](/docs/get-started/errors): What error responses look like and what each status means. - [Rate limits](/docs/get-started/rate-limits): How many requests you can make, and what happens when you make too many. - **Help** - [Changelog](/docs/get-started/changelog): What changed for developers, newest first. - [Support](/docs/get-started/support): Where to get help. - Troubleshooting: Symptom → checks → fix, with a guided checker - [Troubleshooting](/docs/troubleshooting): Find your symptom, then walk through the checks in order. The first one that fails is your cause. - [Card payments not working](/docs/troubleshooting/card-payments-not-working): Buyers only see crypto, card checkout fails, or your key says card isn’t allowed. - [Crypto payment not showing](/docs/troubleshooting/crypto-payment-not-showing): The buyer says they paid, but the order isn’t there or you haven’t been paid. - [Webhooks failing](/docs/troubleshooting/webhooks-failing): Events don’t arrive, arrive twice, or your signature check rejects them. - [An AI agent can’t pay](/docs/troubleshooting/agent-cant-pay): Your agent gets a 402 it can’t satisfy, or its payment is rejected. - [MCP money actions refused](/docs/troubleshooting/mcp-money-actions-refused): Your AI assistant can look things up but won’t send, pay, swap or trade. - [API errors (401, 403, 429)](/docs/troubleshooting/api-errors): Your server gets 401, 403, 404 or 429 from the merchant API. - Learn: Plain-English guides to what you can do on Swop: perps, predictions, tokenized stocks, networks, stablecoins and Aave. - [Learn](/docs/learn): Plain-English guides to the markets and money tools in the Swop app, and how each one works on Swop. - [Perps](/docs/learn/perps): What a perpetual future is, how long, short, leverage, liquidation and funding work, and how perps work on Swop. - [Predictions](/docs/learn/predictions): How prediction markets work, what a price like 64¢ means, what pUSD is and how getting paid works on Swop. - [Tokenized stocks](/docs/learn/tokenized-stocks): What a tokenized stock is, how it differs from owning the share and from a stock perp, and how to get one on Swop. - [Networks and fees](/docs/learn/networks-and-fees): Ethereum, Base, Arbitrum, Polygon, Optimism, Solana, Robinhood Chain and Bitcoin in plain words, what a network fee is, and which fees Swop covers. - [Stablecoins](/docs/learn/stablecoins): What a stablecoin is, USDC vs USDT, what pUSD is and why Swop settles payments in USDC. - [Aave and lending](/docs/learn/aave): What Aave is, how supplying and borrowing work, where the interest comes from, the risks, and how to use it on Swop. - **Get paid** - Payments: Take payments on your own site, from people and AI agents. - [Payments overview](/docs/payments): Sell your Swop products on your own website. People pay by card or USDC, AI agents pay automatically, and you're paid in USDC. - [Quickstart](/docs/payments/quickstart): Create a checkout from your server and watch it get paid. About ten minutes. - **Integrate** - [Payment links](/docs/payments/payment-links): The no-code way to sell. One URL per product that works for people and for AI agents. - [Framed checkout](/docs/payments/framed-checkout): Put Swop's checkout inside an iframe on your own page, so buyers never leave your site. - [Headless checkout](/docs/payments/headless-checkout): Your products, your cart, your payment UI. Your server sends Swop the cart and Swop returns a payment for the buyer to complete on your page. - **Concepts** - [Crypto vs. card](/docs/payments/crypto-vs-card): The two ways a buyer can pay, who can accept each one, and when card is offered. - [Statuses and escrow](/docs/payments/statuses-and-escrow): The difference between "the buyer paid" and "you've been paid", and every status you'll see. - [Products and orders](/docs/payments/products-and-orders): Read your catalogue and your sales from your own server. - [Shipping physical goods](/docs/payments/shipping): What Swop needs to sell something that goes in a box, and how shipping is priced. - [Refunds](/docs/payments/refunds): Coming soon to the API. Refunds are handled in the Swop app today. - Webhooks: Get told when a buyer pays and when you get paid. - [Webhooks overview](/docs/webhooks): Swop calls your server when a buyer pays and when you get paid, so you don't have to poll. - [Register an endpoint](/docs/webhooks/register-endpoint): Add a webhook URL in the Swop app and keep its signing secret safe. - [Verify signatures](/docs/webhooks/verify-signatures): Prove a webhook really came from Swop before you ship anything. - [Retries and de-duplication](/docs/webhooks/retries-and-dedup): What Swop does when your endpoint is down, and how to handle the same event twice. - [Event reference](/docs/webhooks/events): Every webhook event and every field in its payload. - Agent payments: Let AI agents buy from you, and pay for things, in USDC. - [Agent payments overview](/docs/agent-payments): Every Swop product can be bought by an AI agent, paid in USDC on Base over the x402 protocol. Nothing to set up. - [How it works](/docs/agent-payments/how-it-works): One GET, one 402 challenge, one signed payment, one receipt. What travels over the wire at each step. - **Sell** - [Sell to agents](/docs/agent-payments/sell-to-agents): Any priced product on your Swop page is already for sale to AI agents. Here's what that means and how to check it. - [Store listing](/docs/agent-payments/store-listing): GET /api/v5/x402/store/{handle}. The public, free JSON catalogue of everything a swop.id sells to agents. - **Buy** - [Pay from an agent](/docs/agent-payments/pay-from-an-agent): Build an agent that buys from any Swop seller. Read the 402, sign a USDC authorization, retry, keep the receipt. - **Reference** - [Facilitator & networks](/docs/agent-payments/facilitator-and-networks): Protocol versions, headers, networks, assets, the facilitator Swop settles through, and limits. - **AI** - Swop MCP: Swop inside ChatGPT, Claude, Grok and any MCP client. - [Swop MCP overview](/docs/mcp): A remote MCP server that lets any AI assistant look people up, sell, pay, trade and run your AI agent on Swop, inside caps you set. - [Quickstart](/docs/mcp/quickstart): Add Swop to ChatGPT, Claude, Grok, Claude Code, Cursor or VS Code, link your account, and try your first actions. - **Concepts** - [Account linking & caps](/docs/mcp/account-linking-and-caps): How an assistant signs in with Swop over OAuth 2.1, what each scope allows, and the three layers that keep money safe. - [Endpoints](/docs/mcp/endpoints): /mcp is the full toolset. /mcp/commerce is a selling-only toolset that can't move money. Which to use, and what each exposes. - **Build** - [Set up your website from chat](/docs/mcp/set-up-your-site): Have a connected AI assistant allow your site, add a webhook and write the server code for Swop checkout. What it can do, and the one step that stays with you. - [Build an agent](/docs/mcp/build-an-agent): Connect your own agent to the Swop MCP with the official MCP SDKs. Public calls in five lines, then OAuth for account tools. - **Reference** - Tool reference - [Tool reference](/docs/mcp/tool-reference): All 51 Swop MCP tools by category, with the sign-in scope, endpoint and confirmation rules for each. - [Identity & stores](/docs/mcp/tool-reference/identity-and-stores): Look people up by swop.id and browse any seller’s store. No sign-in needed. - [Prediction market data](/docs/mcp/tool-reference/prediction-market-data): Search markets, read order books, prices and history. Public data, no sign-in. - [Account & lookups](/docs/mcp/tool-reference/account): The signed-in user’s profile, balances, orders and launched tokens, plus verified prices, sports data and help. - [SmartSite & feed](/docs/mcp/tool-reference/smartsite-and-feed): Edit the user’s SmartSite and publish to their feed. - [Products & checkout](/docs/mcp/tool-reference/products-and-checkout): Create and manage products, take checkout on your own site, webhooks and embed origins. - [Money](/docs/mcp/tool-reference/money): Spending settings, sends, paying x402 links and EVM swaps. Every money action is previewed and capped. - [Trading](/docs/mcp/tool-reference/trading): Perps and prediction-market orders in the user’s own wallet, within their caps. - [Agent control](/docs/mcp/tool-reference/agent-control): Read, talk to and manage the user’s own AI trading agent (Ovi). - Ovi: Swop's AI agent: what it is, how to control it, and what it costs. - [Ovi overview](/docs/ovi): Ovi is Swop's AI agent. It proposes trades, payments and posts using the Swop tool layer, and nothing that adds risk happens without the owner's yes. - **Use it today** - [Control your agent via MCP](/docs/ovi/control-your-agent-via-mcp): Read your agent's strategies, talk to it, approve its proposals and change its settings from ChatGPT, Claude, Grok or your own code. - [Safety & approvals](/docs/ovi/safety-and-approvals): Autonomy levels, caps, previews and the things Ovi can never do without its owner. - [Copy a trader](/docs/ovi/copy-a-trader): Mirror a Hyperliquid trader with Ovi, and use entry tolerance so you don't chase positions that already ran. - [Billing & credits](/docs/ovi/billing-and-credits): How Ovi's model usage is paid for with Swop Credits, and who can use it. - **Coming soon** - [Ovi API](/docs/ovi/ovi-api): Programmatic access to Ovi for developers. Coming soon. - **Identity and wallets** - Identity (swop.id): Names, profiles and resolution - [swop.id overview](/docs/identity): One human-readable name for a person, business, bot or AI agent. Resolve it to a wallet address and a public profile from any app. - [Identity API](/docs/identity/identity-api): Look up a swop.id or search by name and get back its display name, avatar and wallet addresses. Public, read-only, no API key. - [Resolve with ENS](/docs/identity/resolve-with-ens): Resolve swop.id names with any ENS library. The verified path to use before money moves. - [Use swop.id in your app](/docs/identity/use-in-your-app): Three recipes. A "send to" picker, names instead of addresses, and paying a name safely. - Swivy: Wallets, login and signing for any app (preview) - [Swivy](/docs/swivy): Swop's wallet, login and signing platform for any app. Give every user a wallet at sign-in, approve with a passkey, and offer Sign in with Swop. - **Get started** - [Create your first project](/docs/swivy/onboarding): Set up Swivy, secure your console account, connect your app and verify your first customer login. - [Preview setup & SDK 1.0.1](/docs/swivy/preview-setup): Create a testnet project, configure login, and install the published SDKs. - [Concepts](/docs/swivy/concepts): Custody modes, policies, intents and step-up approval. The four ideas everything in Swivy is built on. - [React quickstart](/docs/swivy/react-quickstart): Email login, an embedded wallet, a passkey and a first transaction in a React app. - [Expo quickstart](/docs/swivy/expo-quickstart): Email login, wallets, passkey approval and Sign in with Swop in an Expo or React Native app. - [Node backend](/docs/swivy/node-backend): Use Swivy from your server. Verify logins, manage wallets, submit intents and configure each network's RPC. - **Guides** - [Sign in with Swop](/docs/swivy/sign-in-with-swop): Let users log in to your app with their Swop account, using standard OpenID Connect, and give them the same wallet they have in Swop. - [MCP wallet setup](/docs/swivy/mcp-setup): Let an OAuth-connected AI client list and create its user's testnet wallets. - [Wallets & signing](/docs/swivy/wallets-and-signing): Create EVM and Solana wallets, sign messages and EIP-712 typed data, and send transactions as intents. - [Policies & spending limits](/docs/swivy/policies): One policy per environment decides which chains, wallets, signing, sessions and limits your users get. - [Gas sponsorship](/docs/swivy/gas-sponsorship): Pay your users' network fees on the networks you choose, with per-user and per-day caps. - [Agent session grants](/docs/swivy/agent-session-grants): Let an AI agent or a backend job act on a wallet inside limits you set, without ever holding the wallet's key. - [Delegated execution limits](/docs/swivy/delegated-limits): Execution gas caps, schema 21 cumulative limits, and what those limits do and do not cover. - [Webhooks](/docs/swivy/webhooks): Get a signed callback when an intent completes, and verify it came from Swivy. - [Migrating from Privy](/docs/swivy/migrating-from-privy): How Privy concepts map to Swivy, and how a migration runs without touching existing wallets. - [Setup & passkey troubleshooting](/docs/swivy/troubleshooting): Diagnose console enrollment, customer login delivery and project setup failures. - **Reference** - API reference - [Swivy API reference](/docs/swivy/api-reference): Current Swivy operations, credentials, request fields and errors. - [Auth & step-up](/docs/swivy/api-reference/auth): Current Swivy API operations from the deployed OpenAPI snapshot. - [Accounts & wallets](/docs/swivy/api-reference/accounts): Current Swivy API operations from the deployed OpenAPI snapshot. - [Intents](/docs/swivy/api-reference/intents): Current Swivy API operations from the deployed OpenAPI snapshot. - [Session grants](/docs/swivy/api-reference/session-grants): Current Swivy API operations from the deployed OpenAPI snapshot. - [OIDC & MCP](/docs/swivy/api-reference/oidc): Current Swivy API operations from the deployed OpenAPI snapshot. - [Server wallets, users & webhooks](/docs/swivy/api-reference/server): Current Swivy API operations from the deployed OpenAPI snapshot. - [Control plane](/docs/swivy/api-reference/control-plane): Current Swivy API operations from the deployed OpenAPI snapshot. - [Gas sponsorship](/docs/swivy/api-reference/sponsorship): Current Swivy API operations from the deployed OpenAPI snapshot. - [System & capabilities](/docs/swivy/api-reference/system): Current Swivy API operations from the deployed OpenAPI snapshot. - [Status & roadmap](/docs/swivy/status-and-roadmap): The November 1, 2026 testnet release, published SDKs, and remaining production gates. - [Request early access](/docs/swivy/request-access): Swivy is in preview. Tell us what you're building. - RPC (preview): Swop’s blockchain gateway (preview) - [Swop RPC overview](/docs/rpc): One endpoint per network for reading and writing to Ethereum, Base, Polygon, Arbitrum, Optimism, Robinhood Chain and Solana. - [Quickstart](/docs/rpc/quickstart): Make your first call through Swop RPC. - [Authentication](/docs/rpc/authentication): Project IDs, project secrets and the three ways to send a secret. - [Request access](/docs/rpc/request-access): Swop RPC is in preview. Tell us what you need. - **Reference** - API reference: Every endpoint of the merchant API. - [Merchant API reference](/docs/api-reference): The REST API your server uses to read your Swop store and create checkouts. - [Authentication](/docs/api-reference/authentication): Merchant API keys, scopes, and how to send them. - [Errors](/docs/api-reference/errors): How the merchant API reports problems, and what to show your buyers. - **Endpoints** - [Me](/docs/api-reference/me): GET /me. Confirm a key works and see what it can do right now. - [Products](/docs/api-reference/products): GET /products. List the products in your Swop store. - [Orders](/docs/api-reference/orders): GET /orders. Your sales, newest first, with cursor paging. - [Checkout intents](/docs/api-reference/checkout-intents): Create a checkout from a cart, then read it until it's paid. - [Embed tokens](/docs/api-reference/embed): POST /embed-token. Let a registered website frame your checkout. - [Locations](/docs/api-reference/locations): Read your physical locations and the tap-to-pay terminals at each one. - [Webhooks](/docs/api-reference/webhooks): Webhook endpoints are managed in the Swop app, not with an API key.