Direct gate (agents / advanced)
Publisher URLs first
Production setups return HTTP 402 from
https://yoursite.com/… via nginx, WordPress, Next, or
PHP. See
publisher enforcement. The smidgen gate URL below is for agents and advanced clients that
call the API directly.
The gate API refuses to proxy origin content until x402 payment succeeds. Scrapers and AI agents get a machine-readable 402.
Direct gate URL (advanced)
Test with curl
curl -i "GATE_URL_HERE"Expect
HTTP/1.1 402 and a JSON body with
accepts[] payment options.
After paying (Phantom programmatically or via x402 client), retry the
same URL with a payment-signature header to receive the
full HTML from the test site origin.