HTTP 402 means Payment Required
HTTP 402 means Payment Required. The status code has been reserved on the web for decades and barely used. Most sites that charge for a page still invent their own checkout flow, a new account, or an API key.
x402 puts 402 to work. The client requests a resource. The server replies 402 with a price. The client pays in USDC and retries the same request. If the payment verifies, the request goes through. People can do this from a wallet. AI agents can do it over plain HTTP, which is the point: a machine can pay per access without a human clicking a checkout form.
Urlgate wraps any URL in that flow. You get a shortlink on urlgate.xyz. A browser sees a paywall card. An agent sees a PAYMENT-REQUIRED header (x402 v2) and a legacy 402 JSON body. To open a paid link, the client signs two EIP-3009 USDC authorizations in one retry: one for the price (PAYMENT-SIGNATURE) and one for the platform fee (PAYMENT-SIGNATURE-FEE). Urlgate verifies and settles both itself; there is no payment facilitator in the path. New links start at 0.01 USDC by default.
That is a concrete way to monetize links and to paywall a file or an API URL for both people and agents, without building a storefront. It is a pay-per-link model, not a traditional pay-per-click ad.