docs/quick-start

Quick Start

Get started with Proxagora in minutes. No signup required — just discover, call, and pay.

Three primitives
Discover the API catalog → Call an endpoint (get 402 back) → Pay via x402 or Stripe MPP header

1

Discover the API catalog

Fetch the full catalog to see available APIs, their descriptions, categories, and per-call costs in USDC.

bash
curl https://proxagora.com/api/discover

Response — an array of API listings:

json
{
  "apis": [
    {
      "id": "ip-geo",
      "name": "IP Geolocation",
      "category": "Network",
      "cost_usdc": 0.001,
      "endpoint": "/api/ip-geo",
      "description": "Resolve an IP address to city, country, ASN."
    },
    ...
  ],
  "total": 22
}
2

Call an API endpoint

POST to the endpoint with your parameters. Without payment, you'll receive an HTTP 402 Payment Required response with payment instructions.

bash
curl -X POST https://proxagora.com/api/ip-geo \
  -H "Content-Type: application/json" \
  -d '{"ip": "8.8.8.8"}'

The 402 response tells you what payment is needed:

json
{
  "error": "Payment required",
  "x402": {
    "amount": "0.001",
    "currency": "USDC",
    "network": "base",
    "payTo": "0xProxagoraVault..."
  }
}
3

Attach payment and retry

Include a signed payment proof in the X-Payment header (x402 on Base) or X-MPP-Payment (Stripe MPP). The API validates on-chain or via Stripe and returns the data.

bash
# x402 (USDC on Base) — for autonomous agents
curl -X POST https://proxagora.com/api/ip-geo \
  -H "Content-Type: application/json" \
  -H "X-Payment: <base64-encoded-eip712-signature>" \
  -d '{"ip": "8.8.8.8"}'

# Stripe MPP — for developer testing
curl -X POST https://proxagora.com/api/ip-geo \
  -H "Content-Type: application/json" \
  -H "X-MPP-Payment: <stripe-payment-token>" \
  -d '{"ip": "8.8.8.8"}'

Successful response:

json
{
  "ip": "8.8.8.8",
  "city": "Mountain View",
  "country": "United States",
  "country_code": "US",
  "latitude": 37.4056,
  "longitude": -122.0775,
  "asn": "AS15169",
  "org": "Google LLC"
}

Base URLs

Production
https://proxagora.com
Development
https://agora-eight-tau.vercel.app

Payment Methods

Method
Header
Best For
x402 / USDC
X-Payment
Autonomous agents, production
Stripe MPP
X-MPP-Payment
Developer testing, teams

Next Steps

Authentication & Payments
Deep-dive into x402 and Stripe MPP flows
Discovery
Browse and filter the full API catalog
MCP Integration
Give your Claude/GPT agent paid API access
Publishing APIs
List your own API and earn USDC per call
Overview →