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)

1

You have an API

Example origin:

https://api.yourapp.com
2

Create a Gateway

Gate402 gives you a gateway URL:

https://yourapp.gate402.io
3

Set a price

Example price:

$0.001 per request
4

Share the URL

Consumers use your gateway URL and pay automatically with crypto.

That's it. Your API is now monetized.


5-Minute Setup

1

Sign up (30 seconds)

Visit gate402.io and sign up with Google, or use email + OTP.

Example:

# Visit gate402.io and sign up with Google

# Or use email + OTP
2

Create Your First Gateway (2 minutes)

  • Click "Create Gateway"

  • Paste your API URL: https://api.yourapp.com

  • Set price: $0.001 per request

  • Add your wallet address (where you get paid)

  • Click "Create"

Option B: API

curl - quick-create
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 - no payment (402)
curl https://yourapp.gate402.io/endpoint

# Response: 402 Payment Required

With payment (works!):

JavaScript - axios with payment interceptor
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
4

Share & Earn

Share your Gateway URL with customers:

https://yourapp.gate402.io

Every request = instant payment to your wallet 💰