Skip to main content

Base URLs

Network is auto-detected from your wallet’s transaction history.

Quick Start

Authentication

402.cat uses x402 micropayment protocol for authentication. No API keys required.

Payment Flow

  1. Request protected endpoint → Receive 402 Payment Required
  2. Sign EIP-3009 authorization with your wallet
  3. Retry request with PAYMENT-SIGNATURE header
  4. Payment verified → Response returned
See Authentication for details.

Endpoint Types

Free Endpoints

No payment required:
  • GET /health - Health check
  • GET /tokens - List all tokens
  • GET /tokens/:id - Token info
  • GET /positions - User positions
  • GET /api/* - Read-only data
Require x402 micropayment:
  • POST /tokens - Create token ($0.01)
  • POST /entrypoints/token_buy_* - Buy tokens (variable)
  • POST /entrypoints/token_sell - Sell tokens ($0.01)
  • POST /entrypoints/* - Various operations

Response Format

All endpoints return JSON:
Error format:

Rate Limits

  • Free endpoints: 100 req/min per IP
  • Paid endpoints: No rate limit (pay per use)
  • Quote providers: Internal rate limiting per provider

Next Steps

Authentication

Learn x402 payment protocol

Token Operations

Create and trade tokens

Examples

See complete workflows

Schemas

Common data structures