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

  1. Pick the job. One endpoint, one clear result an agent will pay for.
  2. Publish the contract. Describe it in OpenAPI or as an MCP tool, with inputs, outputs and errors.
  3. Offer a free path. A status, preview or demo route lets agents test before paying.
  4. Return 402 when payment is due. Send a fresh PAYMENT-REQUIRED challenge with price, asset, network and receiver for that request.
  5. Verify and settle. On retry, verify the PAYMENT-SIGNATURE with a facilitator, settle it, and return the result with a PAYMENT-RESPONSE.
  6. Get listed. Publish /.well-known/x402 and 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.

Free tool

More on ScriptMasterLabs

See ScriptMasterLabs first in Google results
Set ScriptMasterLabs as a preferred source