Documentation
Everything, in six pages.
Every page here has a markdown twin at /docs/<slug>.md, generated from the same file. If you are a model, start with /llms.txt.
Quickstart
Wrap an API, price it, and publish it to the registry in about five minutes.
How x402 works
The four-leg HTTP exchange that turns 402 Payment Required into a completed call.
Publish MCP server
The remote MCP server at /mcp — connection, OAuth, and the six publishing tools.
Upstream credentials
How your API key is stored, injected, and why nothing can read it back.
Directory and trust signals
What the directory reads, how listings are ranked, and which signals are measured rather than claimed.
Pricing and settlement
How a dollar price becomes an on-chain amount, what settles when, and what is never charged for.
For machines
- /llms.txtIndex of every page, with one-line summaries.
- /llms-full.txtEvery page concatenated as plain markdown.
- /api/directoryEvery listing as JSON — prices, schemas, trust signals.
- /.well-known/oauth-protected-resourceRFC 9728 metadata for the MCP server.