curl -X POST https://xenarch.dev/v1/gates \ -H "X-Site-Token: st_abc123..." \ -H "Content-Type: application/json" \ -d '{"url": "/premium-article", "detection_method": "ua_match"}'
{ "xenarch": true, "gate_id": "7f3a1b2c-9d4e-4a8b-b6f1-2c3d4e5f6a7b", "price_usd": "0.003", "splitter": "0xC6D3a6B6fcCD6319432CDB72819cf317E88662ae", "collector": "0xabc123...publisher_wallet", "network": "base", "asset": "USDC", "protocol": "x402", "verify_url": "https://xenarch.dev/v1/gates/7f3a1b2c.../verify", "expires": "2026-04-10T15:00:00Z" }
Create a payment gate session. Returns HTTP 402 with payment instructions.
collector
splitter
GATE_TTL_SECONDS
Successful Response
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$