Skip to Content
GlossaryHHTTP 402 Payment / x402 Protocol

HTTP 402 Payment / x402 Protocol

A standardized HTTP response code and protocol for requesting and processing digital asset payments.

What is HTTP 402 Payment / x402 Protocol?

The x402 Protocol leverages the HTTP 402 “Payment Required” status code to enable programmatic digital asset transactions between clients and servers. When a client attempts to access a gated resource, the server responds with a 402 status, including payment instructions such as amount and recipient. The client then re-requests the resource with a payment authorization header, and upon verification by a payment facilitator, the server delivers the resource. This protocol, authored by Coinbase, supports use cases like micropayments for AI agents or real-time data feeds, enhancing web monetization.

Last updated on