Endpoints
Poll /status and /report, check /ready and /suggest for free, cancel active runs, and discover the x402 agent skill.
Follow & read runs
Reading a run requires only run_id (no authentication):
| Route | Purpose |
|---|---|
GET /status/<run_id> | JSON status for agents (queued, running, interrupted, resuming, completed, failed, budget_exceeded, cancelled, rejected). Poll every 15-30s. |
GET /wait/<run_id> | Auto-refreshing HTML progress page for humans; links to /share/<sim_id> on completion. |
GET /report/<run_id>?format=md|json | Raw Markdown or JSON report once completed (409 while still running). |
GET /card/<sim_id>.png | Cached 1200x630 PNG recap card for social unfurls. |
POST /cancel/<run_id> | Stops an active run. Requires X-Cancel-Token: <cancel_token>. |
Polling tips
interruptedandresumingmean the worker is recovering automatically - keep polling at no extra cost.stagesin/statusis an object keyed by stage name, whereasstagesin the202response is an array.
Pre-flight & discovery (free)
POST /suggest(#preflight-suggest): Free endpoint that turns{"prompt": "stablecoin regulation"}into up to 5 ready-to-run simulation prompts ({ title, pitch, prompt, angle }).GET /health&GET /ready(#preflight-health-and-ready): Always checkGET /ready(200when Postgres + Neo4j are reachable,503otherwise) before settling a payment.- Discovery & agent manual (
#discover): Indexed on agentic.market, x402scan, CDP Bazaar, AgentCash, and Ampersend. Contracts live atGET /openapi.jsonandGET /skill.md.
# CDP discovery is read-only and unauthenticated: curl 'https://api.cdp.coinbase.com/platform/v2/x402/discovery/search?query=miroshark' curl 'https://api.cdp.coinbase.com/platform/v2/x402/discovery/merchant?payTo=0x6cab485fc28ec70d3845113b704d4824e4d2b24f'