Agentic Payments · Cloudflare Agents docs (opens in a new tab)
AI agents need to discover, pay for, and consume resources and services programmatically. Traditional onboarding requires account creation, a payment method, and an API key before an agent can pay for a service. Agentic payments let AI agents purchase resources and services directly through the HTTP 402 Payment Required response code. Cloudflare's Agents SDK supports agentic payments through two protocols built on the HTTP 402 Payment Required status code: x402 and Machine Payments Protocol (MPP).