{"openapi":"3.1.0","info":{"title":"Arena x402 Agent API","version":"agentapi/1","description":"Pay-per-call Solana token safety checks for AI agents. USDC on Solana over x402 v2; no account, no API key.","x-guidance":"Call GET /v1/token-safety?mint=<Solana mint address>. The first call returns HTTP 402 with x402 v2 payment requirements (US$0.05 USDC, scheme exact, Solana); pay and retry with the PAYMENT-SIGNATURE header to get a RED/AMBER/GREEN light, plain-language flags and the on-chain facts. A failed check is never charged."},"servers":[{"url":"https://arena-agentapi-production.up.railway.app"}],"paths":{"/v1/token-safety":{"get":{"operationId":"tokenSafety","summary":"Solana token rug-risk check","description":"Solana token rug-risk check: RED/AMBER/GREEN light, plain-language flags and the on-chain facts behind them (mint/freeze authority, Token-2022 extensions, holder concentration, pool liquidity and age).","tags":["Solana","Token safety"],"parameters":[{"name":"mint","in":"query","required":true,"description":"Solana SPL token mint address (base58)","schema":{"type":"string","minLength":32,"maxLength":44,"pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$","description":"Solana SPL token mint address (base58)","examples":["DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"]},"example":"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.050000"},"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"FvSmsAfUCVPq5ccKtDr2E1jSPKncmD48fBhXAG9uiDUn"},"responses":{"200":{"description":"Risk light, flags and on-chain facts","content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string","description":"the mint that was checked"},"light":{"type":"string","enum":["RED","AMBER","GREEN"],"description":"overall risk light"},"verdict":{"type":"string","description":"e.g. BLOCKED or ALLOWED for a cautious buyer"},"tier":{"type":"string","description":"risk tier, e.g. SPECULATIVE"},"flags":{"type":"array","description":"plain-language findings behind the light","items":{"type":"object","properties":{"severity":{"type":"string","enum":["RED","AMBER","GREEN"]},"text":{"type":"string"},"gate_reason":{"type":"string"}},"required":["severity","text"]}},"facts":{"type":"object","description":"on-chain facts: mint/freeze authority, token program, Token-2022 extensions, top-10 holder %, pool liquidity USD and age"},"detail":{"type":"object","description":"extra raw detail from the fact sources"},"engine":{"type":"string","description":"assessment engine version"},"disclaimer":{"type":"string"},"payment":{"type":"object","description":"settlement receipt","properties":{"network":{"type":"string"},"transaction":{"type":"string"},"payer":{"type":["string","null"]},"amount_atomic":{"type":"string"},"asset":{"type":"string"}}}},"required":["mint","light","verdict","flags","facts"]},"example":{"mint":"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263","light":"AMBER","verdict":"BLOCKED","tier":"SPECULATIVE","flags":[{"severity":"AMBER","text":"Very little money in the pool: hard to sell."}],"facts":{"mint_authority":"none","freeze_authority":"none","liquidity_usd":900,"top10_holder_pct":12.0,"pool_age_hours":9000},"engine":"safetybot/1"}}}},"400":{"description":"mint is not a Solana address (no payment asked or taken)"},"402":{"description":"Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header and body"},"404":{"description":"mint not found on chain; not charged"},"503":{"description":"paused, or chain data/facilitator unavailable; not charged"}}}},"/":{"get":{"security":[],"responses":{"200":{"description":"OK"}},"summary":"Service index"}},"/.well-known/x402":{"get":{"security":[],"responses":{"200":{"description":"OK"}},"summary":"x402 discovery document"}},"/healthz":{"get":{"security":[],"responses":{"200":{"description":"OK"}},"summary":"Health check"}}}}