{"openapi":"3.1.0","info":{"title":"Onyx AML agent API","version":"1.0.0","description":"Crypto address risk checks for agents, paid per call with x402 (USDC on Base).","contact":{"url":"https://onyxprotocol.trade/en/agents"}},"servers":[{"url":"https://onyxprotocol.trade"}],"paths":{"/api/v1/decide":{"post":{"operationId":"decide","summary":"Payment decision for an outbound crypto transfer: allow / review / deny against your policy, with reasons","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"TRON (T...), EVM (0x...) or Solana address"},"amount_usd":{"type":"number"},"policy":{"type":"object"}},"required":["address"]}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required (x402)"}},"security":[{"x402":[]},{"apiKey":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.10"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}},"/api/v1/screen":{"post":{"operationId":"screen","summary":"Crypto address risk screening: USDT and USDC blacklists, sanctions on 6 EVM chains, scam databases","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"TRON (T...), EVM (0x...) or Solana address"}},"required":["address"]}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required (x402)"}},"security":[{"x402":[]},{"apiKey":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.10"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}},"/api/v1/trace":{"post":{"operationId":"trace","summary":"Multi-hop flow of funds from a TRON or Ethereum address, with attribution where known","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"TRON (T...), EVM (0x...) or Solana address"}},"required":["address"]}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required (x402)"}},"security":[{"x402":[]},{"apiKey":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.40"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}},"/api/v1/preflight":{"post":{"operationId":"preflight","summary":"Pre-payment check: address-poisoning lookalikes, contract recipients, wrong-chain traps","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"TRON (T...), EVM (0x...) or Solana address"},"known_addresses":{"type":"array","items":{"type":"string"}}},"required":["address"]}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment required (x402)"}},"security":[{"x402":[]},{"apiKey":[]}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}}},"components":{"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE"},"apiKey":{"type":"apiKey","in":"header","name":"X-Api-Key"}}}}