Quick Start
What is Gate402?
Gate402 is a payment proxy that lets you monetize any API instantly. No code changes to your API required. Just point Gate402 at your API, set a price, and start earning crypto.
How it works (30 seconds)
That's it. Your API is now monetized.
5-Minute Setup
1
2
Create Your First Gateway (2 minutes)
Option A: Dashboard (Recommended)
Click "Create Gateway"
Paste your API URL:
https://api.yourapp.comSet price:
$0.001per requestAdd your wallet address (where you get paid)
Click "Create"
Option B: API
curl -X POST https://api.gate402.io/gateways/quick-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"originUrl": "https://api.yourapp.com",
"pricePerRequest": 0.001,
"evmAddress": "0xYourWalletAddress"
}'3
Test It (2 minutes)
Without payment (gets 402):
curl https://yourapp.gate402.io/endpoint
# Response: 402 Payment RequiredWith payment (works!):
import { withPaymentInterceptor } from 'x402-axios';
import axios from 'axios';
const client = withPaymentInterceptor(axios.create(), {
wallet: yourWallet,
facilitatorUrl: 'https://x402.org/facilitator',
});
const response = await client.get('https://yourapp.gate402.io/endpoint');
// ✅ Works! Payment sent automatically