API Documentation

Integrate AlliGo risk scores into your platform in under 5 minutes. Pay with USDC via x402 protocol.

Quick Start

Get started with AlliGo in 3 simple steps. You can use the API immediately with x402 payment - no API key required for first request.

Get Your First Report for $1 USDC

Try the full API with a single payment. No signup required.

1

Make a Request

Call any protected endpoint. You'll receive a 402 Payment Required response with payment details.

2

Send USDC Payment

Send exactly $1 USDC to the recipient address on Base, Ethereum, Polygon, Arbitrum, Optimism, or Solana.

3

Retry with Proof

Include your transaction hash in the X-Payment header. Get instant access to the data.

Try It Now - Free Public Endpoint

Check an Agent's Risk Score

Response


              

Authentication

AlliGo supports two authentication methods:

Option 1: x402 Payment (Recommended for Quick Access)

Pay per-request with USDC. No API key needed. Perfect for one-off queries or testing.

Payment Flow
// Step 1: Make request without auth
POST /api/forensics
Content-Type: application/json
{"agentId": "eliza_trader_001"}

// Step 2: Receive 402 Payment Required
{
  "version": "x402/1.0",
  "accepts": [{
    "paymentType": "usdc",
    "chain": "base",
    "recipient": "0x742d35Cc...",
    "amount": "1.000000"
  }]
}

// Step 3: Retry with payment proof
POST /api/forensics
X-Payment: {"txHash":"0xabc123...","chain":"base"}

Option 2: API Key

API Key Auth
GET /api/agents/:agentId/score
Authorization: Bearer alligo_live_xxxxxxxxxxxxx

x402 Payment Protocol

AlliGo uses the x402 protocol for USDC payments. Instant, trustless access to premium data.

Payment Tiers

SINGLE REPORT
$1 USDC
Perfect for one-time checks
  • 1 API request
  • Full forensics report
PRO
$50 USDC
For teams
  • 500 API requests
  • Priority support
ENTERPRISE
$200 USDC
For platforms
  • Unlimited (30 days)
  • Dedicated support

Supported Chains

  • Base
  • Ethereum
  • Polygon
  • Arbitrum
  • Optimism
  • Solana

API Endpoints

Get Agent Risk Score

Request
GET /api/agents/:agentId/score

200 OK Response

{
  "agentId": "eliza_trader_001",
  "riskScore": 72.5,
  "grade": "B",
  "totalClaims": 2,
  "totalValueLost": 57000
}

Deep Forensics Report

Full on-chain forensics analysis. Requires x402 payment or API key.

Request
POST /api/forensics
Content-Type: application/json
{
  "agentId": "0x742d35Cc...",
  "depth": "standard"
}

Trust Badge SVG

Request
GET /api/badge/:agentId.svg

Public Statistics

Request
GET /api/public/stats

Error Codes

402 Payment Required

{ "error": "Payment required", "payment": {...} }

401 Unauthorized

{ "error": "Unauthorized" }

429 Rate Limited

{ "error": "Rate limit exceeded" }

Rate Limits

Tier Requests/Day
Free100
x402 Single ($1)1
x402 Basic ($10)50
x402 Pro ($50)500
x402 Enterprise ($200)Unlimited