Authentication
| Route Group | Auth Method | Description |
|---|---|---|
/ and /health | None | Public endpoints |
/agent/* | x402 payment header | $0.01 USDC per request |
/portfolio/*, /market/*, /nfts/*, /predictions/*, /bridge/* | API key (readonly) | Rate limited |
/swap/*, /automations/*, /launchpad/*, /v1/* | API key (readwrite) | Rate limited |
/admin/* | API key (admin) | Rate limited |
Root
GET / — Server info
GET / — Server info
200GET /health — Health check
GET /health — Health check
200Agent
All/agent/* routes require x402 payment (or SKIP_PAYMENT=true in dev).
POST /agent/prompt — Submit agent prompt
POST /agent/prompt — Submit agent prompt
202| Status | Description |
|---|---|
400 | Missing or invalid prompt, exceeds 4000 chars |
404 | Provided threadId not found |
GET /agent/job/:id — Poll job status
GET /agent/job/:id — Poll job status
200pending, running, complete, failed, cancelled.Errors: 404 if job not found.DELETE /agent/job/:id — Cancel job
DELETE /agent/job/:id — Cancel job
200404 if job not found or already completed.GET /agent/thread/:id — Retrieve thread
GET /agent/thread/:id — Retrieve thread
200GET /agent/skills — List available skills
GET /agent/skills — List available skills
200Swap
Requiresreadwrite API key.
GET /swap/quote — Get swap quote
GET /swap/quote — Get swap quote
uniswap or camelot.200POST /swap/execute — Execute swap
POST /swap/execute — Execute swap
uniswap or camelot.200: Returns transaction result with hash and amounts.Errors: 400 for missing fields, 503 if server wallet not configured.Portfolio
Requiresreadonly API key.
GET /portfolio/jobs — List recent jobs
GET /portfolio/jobs — List recent jobs
200GET /portfolio/positions — Aggregated positions
GET /portfolio/positions — Aggregated positions
200Market
Requiresreadonly API key.
GET /market/prices — Token prices
GET /market/prices — Token prices
200GET /market/trending — Trending pools
GET /market/trending — Trending pools
200NFTs
Requiresreadonly API key.
GET /nfts/:address — List NFTs
GET /nfts/:address — List NFTs
200Predictions
Requiresreadonly API key.
GET /predictions/top — Top markets
GET /predictions/top — Top markets
GET /predictions/search — Search markets
GET /predictions/search — Search markets
GET /predictions/:conditionId — Get market
GET /predictions/:conditionId — Get market
Bridge
Requiresreadonly API key.
GET /bridge/quote — Bridge quote
GET /bridge/quote — Bridge quote
GET /bridge/chains — Supported chains
GET /bridge/chains — Supported chains
Automations
Requiresreadwrite API key.
GET /automations — List automations
GET /automations — List automations
POST /automations — Create automation
POST /automations — Create automation
PATCH /automations/:id — Update status
PATCH /automations/:id — Update status
active, paused, completed, or failed.DELETE /automations/:id — Delete automation
DELETE /automations/:id — Delete automation
404 if not found.Admin
Requiresadmin API key.
GET /admin/revenue — Revenue summary
GET /admin/revenue — Revenue summary
GET /admin/revenue/history — Daily revenue
GET /admin/revenue/history — Daily revenue
POST /admin/keys — Create API key
POST /admin/keys — Create API key
GET /admin/keys — List API keys
GET /admin/keys — List API keys
DELETE /admin/keys/:id — Revoke API key
DELETE /admin/keys/:id — Revoke API key