Getting Started with 402ify
Getting Started with 402ify
Overview
402ify is an API monetization service that lets you create payment-protected endpoints (PayGates) for any API. It handles payment enforcement, blockchain verification (via x402-hub), and request proxying automatically.
Base URL
Production:
https://402ify.com,https://402.sigwei.com
All management endpoints use /api/v1/ prefix.
Prerequisites
Wallet: Ethereum-compatible wallet with private key
USDC Balance: USDC on Base blockchain for creating PayGates
HTTP Client: curl, axios, requests, or similar for API integration
Target API (optional): The API endpoint you want to monetize
Quick Start
1. Authenticate with Wallet
402ify uses the same authentication as x402-hub (SIWE-based wallet signing).
Response includes access token for management API calls.
2. Create a PayGate
Create a payment-protected proxy to your API:
Response:
3. Access Your PayGate
When users access your PayGate URL, they'll receive a 402 Payment Required response:
Response:
After paying, they can access the protected resource:
This proxies the request to your target URL and returns the response.
Common Use Cases
For API Providers
Instant Monetization: Turn any existing API into a paid service
Flexible Pricing: Set per-call or bulk pricing models
No Code Changes: Protect APIs without modifying existing code
Analytics: Track usage, revenue, and user behavior
For Content Creators
Paywall Content: Monetize articles, videos, or premium resources
Subscription Alternative: One-time payments with multiple accesses
Global Payments: Accept USDC from users worldwide
Instant Access: No signup process, just API authentication via wallet signing
For AI Agents
Automated Payments: AI agents can pay for API access programmatically
Micropayments: Cost-effective for small, frequent API calls
No Traditional Payment Methods: No credit cards or payment processors needed
Instant Access: Real-time payment and access without delays
Last updated