x402 API Launchpad
Publish a stable machine contract, return HTTP 402 with current PAYMENT-REQUIRED terms when payment is needed, and accept a challenge-specific PAYMENT-SIGNATURE from caller-controlled wallet software.
Do not teach clients to depend on cached payTo values or legacy transaction-hash headers. Verify settlement and accepted delivery independently.
GitLab source authority → · Current 402 guide →
Launch steps for an x402 API
- Pick the job. One endpoint, one clear result an agent will pay for.
- Publish the contract. Describe it in OpenAPI or as an MCP tool, with inputs, outputs and errors.
- Offer a free path. A status, preview or demo route lets agents test before paying.
- Return 402 when payment is due. Send a fresh
PAYMENT-REQUIREDchallenge with price, asset, network and receiver for that request. - Verify and settle. On retry, verify the
PAYMENT-SIGNATUREwith a facilitator, settle it, and return the result with aPAYMENT-RESPONSE. - Get listed. Publish
/.well-known/x402and list the endpoint in x402 directories so agents can find it.
Mistakes to avoid
Do not put payment addresses or prices in static docs that clients copy and cache. Do not accept legacy transaction-hash headers as proof. Do not count a 402 as a sale. Use the x402 integration checklist before launch and read how to monetize an MCP server for pricing ideas.