The x402 protocol revives the long-dormant HTTP 402 "Payment Required" status code. It creates a standardized, machine-readable way for web services to request payments—making it the missing link for AI agents to pay for resources autonomously.
How the Integration Works:
- The Request: An AI agent (or client) requests a resource (e.g., an API call or a piece of data).
- The 402 Error: The server responds with an HTTP 402 error and a JSON payload detailing the payment requirements (amount, asset, and receiver).
- The Settlement: The agent signs an Algorand transaction and resubmits the request.
- The Facilitator: The facilitator (like GoPlausible) verifies the transaction settled on the blockchain.
- The Resource: Once verified, the server serves the requested data to the agent.


