Monetization Gateway

Last updated Sep 30, 2026 Closed beta

Monetization Gateway is in closed beta. Request access in the Cloudflare Dashboard ↗︎.

Monetization Gateway applies x402 payment requirements to matching traffic. You define the shape of therequest to match, how much to charge for it, and the receiving wallet.

Use Monetization Gateway to protect APIs, Model Context Protocol (MCP) tools, sites, and datasets. Buyers and sellers must be based in the United States.

Protect resources

You can match requests by URL, headers, query parameters, or caller attributes. For example, payment rules can charge every caller or only verified bots.

Payments happen within the HTTP request flow. Buyers simply sign a cryptographic payment authorization, no need for a checkout redirect or separate payment API call.

Understand the payment flow

  1. A buyer requests a protected resource.
  2. Monetization Gateway returns payment requirements.
  3. The buyer signs an authorization and retries the request.
  4. Monetization Gateway verifies the authorized payment is valid.
  5. Your origin server receives the verified payment, produces a response.
  6. The gateway settles the payment through the Coinbase x402 Facilitator.
  7. The buyer receives the requested resource.

For fixed pricing, the gateway settles the authorized signed amount. For variable pricing, your origin reports the actual amount.

For request and response examples, refer to x402 protocol. To implement a buyer, refer to x402 payments.

Continue setup

Was this helpful?

YesNo

On this page

Monetization Gateway - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/monetization-gateway/#page","headline":"Monetization Gateway","description":"Charge for protected resources through the x402 protocol.","url":"https://developers.cloudflare.com/monetization-gateway/","inLanguage":"en","image":"https://developers.cloudflare.com/monetization-gateway/og.png?v=a348e152d73ed12b","dateModified":"2026-09-30","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Check account and zone requirements before setup. title: Eligibility image: https://developers.cloudflare.com/monetization-gateway/eligibility/og.png?v=cdd59e60c4575401


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/monetization-gateway/llms.txt
Use this file to discover all available pages before exploring further.