{"openapi":"3.1.0","info":{"title":"TAT Risk — x402 Token Risk API","version":"0.1.0","description":"TAT Risk — Global Trust & Risk Infrastructure for Agent Transactions. AI-agent-ready EVM token risk analysis; paid endpoints use x402 V2 and unavailable evidence is returned as null/unknown with a reason."},"servers":[{"url":"https://x402-token-risk-api-6cj2.onrender.com"}],"paths":{"/":{"get":{"operationId":"publicOnboarding","summary":"Public TAT Risk onboarding and discovery links","tags":["Discovery"],"responses":{"200":{"description":"Credential-free public onboarding"}}}},"/docs":{"get":{"operationId":"publicQuickstart","summary":"Credential-free independent-agent quickstart","tags":["Discovery"],"responses":{"200":{"description":"Public quickstart that stops before payment"}}}},"/llms.txt":{"get":{"operationId":"llmsTxt","summary":"Plain-text TAT Risk agent onboarding","tags":["Discovery"],"responses":{"200":{"description":"Plain-text agent discovery","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"operationId":"robotsTxt","summary":"Public crawler directives","tags":["Discovery"],"responses":{"200":{"description":"Plain-text crawler directives","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"operationId":"sitemapXml","summary":"Public discovery sitemap","tags":["Discovery"],"responses":{"200":{"description":"XML sitemap","content":{"application/xml":{"schema":{"type":"string"}}}}}}},"/.well-known/x402.json":{"get":{"operationId":"x402Discovery","summary":"x402-compatible public discovery","tags":["Discovery"],"responses":{"200":{"description":"Credential-free x402 discovery"}}}},"/.well-known/ai-agent.json":{"get":{"operationId":"aiAgentDiscovery","summary":"AI-agent public discovery","tags":["Discovery"],"responses":{"200":{"description":"Credential-free AI-agent discovery"}}}},"/mcp":{"get":{"operationId":"mcpMetadata","summary":"TAT Risk Model Context Protocol endpoint","tags":["Discovery"],"responses":{"200":{"description":"MCP availability and protocol response"}}}},"/ready":{"get":{"operationId":"readiness","summary":"Public deployment readiness","tags":["Discovery"],"responses":{"200":{"description":"Readiness status"},"503":{"description":"Not ready"}}}},"/health":{"get":{"operationId":"health","responses":{"200":{"description":"Service health"}}}},"/.well-known/tat-risk":{"get":{"operationId":"tatRiskDiscovery","summary":"Credential-free TAT Risk product discovery","tags":["Discovery"],"responses":{"200":{"description":"Machine-readable paid-product contract"}}}},"/v1/pricing":{"get":{"operationId":"pricing","responses":{"200":{"description":"Machine-readable prices"}}}},"/v1/capabilities":{"get":{"operationId":"capabilities","summary":"Discover supported networks, products and agent capabilities","tags":["Discovery"],"responses":{"200":{"description":"Secret-free machine-readable capability catalog"}}}},"/v1/external-validation/status":{"get":{"operationId":"externalValidationStatus","summary":"Inspect one zero-spend validation session","tags":["External validation"],"parameters":[{"name":"X-TAT-Validation-Capability","in":"header","required":true,"schema":{"type":"string","pattern":"^tatv1_[A-Za-z0-9_-]{43}$"}}],"responses":{"200":{"description":"Sanitized validation progress or verified evidence"},"401":{"description":"Capability missing or invalid"},"410":{"description":"Capability expired"}}}},"/v1/external-validation/complete":{"post":{"operationId":"completeExternalValidation","summary":"Idempotently confirm zero-spend validation completion","tags":["External validation"],"parameters":[{"name":"X-TAT-Validation-Capability","in":"header","required":true,"schema":{"type":"string","pattern":"^tatv1_[A-Za-z0-9_-]{43}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["version"],"properties":{"version":{"const":"1"}}}}}},"responses":{"200":{"description":"Validation is verified"},"401":{"description":"Capability missing or invalid"},"409":{"description":"Required server-observed events remain incomplete"},"410":{"description":"Capability expired"}},"x-safety":{"zeroSpendOnly":true,"paymentAllowed":false,"commercialImpact":"NONE"}}},"/v1/evidence/correlation/{serverRequestId}":{"get":{"operationId":"verifyServerEvidenceCorrelation","summary":"Verify one server-generated zero-spend evidence record","tags":["External validation"],"parameters":[{"name":"serverRequestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-TAT-Evidence-Fingerprint","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"}}],"responses":{"200":{"description":"Verified immutable server correlation record"},"404":{"description":"Unknown, expired, invalid or mismatched correlation proof"}},"x-safety":{"zeroSpendOnly":true,"paymentAllowed":false,"commercialImpact":"NONE","enumerable":false}}},"/v1/risk/analyze":{"post":{"operationId":"analyzeAssetRisk","summary":"Analyze a canonical multi-asset risk request","tags":["Revenue risk API"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskRequestV1"}}}},"responses":{"200":{"description":"Durable replay of an existing decision"},"201":{"description":"Durably persisted risk decision","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskDecisionV1"}}}},"400":{"description":"Invalid asset, product combination or request"},"409":{"description":"Idempotency key conflict"},"429":{"description":"Bounded queue overload"},"503":{"description":"Coordination, persistence or engine unavailable"}}}},"/v1/risk/paid":{"post":{"operationId":"paidTokenRisk","summary":"Purchase a unified, machine-actionable token risk decision","tags":["Paid risk decision"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Recommended stable key for a retried commercial intent; never use it as authentication","schema":{"type":"string","minLength":8,"maxLength":128}},{"name":"X-Price-Quote-Id","in":"header","required":false,"description":"Required on the paid retry; use the value returned with the initial 402 response","schema":{"type":"string","pattern":"^quote_[a-f0-9]{40}$"}},{"name":"Payment-Signature","in":"header","required":false,"description":"Official x402 V2 payment payload; payment-identifier must equal X-Price-Quote-Id","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidRiskRequestV1"}}}},"responses":{"200":{"description":"Durable fulfilled replay without another charge","headers":{"X-Request-Id":{"schema":{"type":"string"},"description":"Public request correlation"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidRiskResponseV1"}}}},"201":{"description":"Paid unified risk decision","headers":{"X-Request-Id":{"schema":{"type":"string"},"description":"Public request correlation"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidRiskResponseV1"}}}},"400":{"description":"Malformed JSON, invalid RiskRequestV1, or malformed payment/quote material"},"402":{"description":"Official x402 V2 payment requirement ($0.05)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}},"X-Price-Quote-Id":{"schema":{"type":"string"}},"X-Price-Quote-Expires-At":{"schema":{"type":"string","format":"date-time"}},"X-Request-Id":{"schema":{"type":"string"}}}},"403":{"description":"Bounded-canary client authorization is required or rejected"},"409":{"description":"Expired/mismatched quote, request binding conflict, or payment replay"},"429":{"description":"Bounded overload"},"503":{"description":"Seller payment or durable storage unavailable"}},"x-external-product-id":"tat-risk.token-risk","x-external-agent-contract":{"version":"2","discoverySequence":["GET /.well-known/tat-risk","GET /openapi.json","POST /v1/risk/paid/admission","POST /v1/risk/paid","HTTP 402 PAYMENT-REQUIRED","submit supported x402 payment","POST the exact original request with X-Price-Quote-Id","parse PaidRiskResponseV1"],"paidEndpoint":{"method":"POST","path":"/v1/risk/paid","requestContentType":"application/json","responseContentType":"application/json","requestSchema":"#/components/schemas/PaidRiskRequestV1","responseSchema":"#/components/schemas/PaidRiskResponseV1"},"externalAdmission":{"version":"1","method":"POST","path":"/v1/risk/paid/admission","header":"X-External-Paid-Admission","capability":"opaque_server_bound_single_operation","ttl":"server_issued_short_lived","limits":{"network":"eip155:84532","maxAmountAtomic":"50000","maxRequests":1,"maxPaymentAttempts":1},"identity":"not_required_bounded_capability","retry":"same_idempotency_and_same_intent_only"},"idempotency":{"header":"Idempotency-Key","behavior":"same_intent_replay_only","automaticRepaymentAllowed":false},"quote":{"idHeader":"X-Price-Quote-Id","expiryHeader":"X-Price-Quote-Expires-At","continuationHeader":"X-Payment-Continuation","refreshAllowed":false,"replacementAllowed":false,"continuation":"opaque_server_bound_single_use"},"recovery":{"prepare":{"method":"POST","path":"/v1/risk/paid/recovery/prepare","timing":"before_signer","paymentMaterialAccepted":false},"rebind":{"method":"POST","path":"/v1/risk/paid/recovery/rebind","timing":"before_signer","mutation":"none","paymentMaterialAccepted":false},"operation":{"lookupMethod":"GET","path":"/v1/risk/paid/recovery/operation/:operationReference","readOnly":true,"submissionMarker":{"method":"POST","path":"/v1/risk/paid/recovery/operation/:operationReference/submission","timing":"immediately_before_submission","maxAttempts":1}}},"publicInput":{"forbiddenDerivedFields":["identityKey","normalizedContractAddress","authorizationScope","admissionLeaseId","admissionLeaseVersion","continuationReference"]},"errors":{"schema":"#/components/schemas/PublicPaidErrorV1","codes":["INVALID_REQUEST","ASSET_INVALID","PAYMENT_REQUIRED","QUOTE_EXPIRED","QUOTE_INVALID","CONTINUATION_INVALID","CONTINUATION_CONSUMED","PAYMENT_INVALID","PAYMENT_UNVERIFIED","ADMISSION_UNAUTHORIZED","SETTLEMENT_PENDING","SETTLEMENT_FAILED","IDEMPOTENCY_CONFLICT","REPLAY_REJECTED","RATE_LIMITED","SERVICE_UNAVAILABLE","PROVIDER_DEGRADED","INTERNAL_ERROR"],"unknownCodes":"SANITIZED_FAIL_CLOSED"},"trafficClassification":{"originProof":"CONSERVATIVE_SERVER_OBSERVABLE_ONLY","classes":["INTERNAL_DETERMINISTIC_TEST","INTERNAL_AUTHORIZED_CANARY","RECOVERY_OPERATION","INDEPENDENT_EXTERNAL","EXTERNAL_REQUEST_UNVERIFIED","EXTERNAL_PAID_SUCCESS"]}},"x-public-error-taxonomy":{"schema":"#/components/schemas/PublicPaidErrorV1","codes":["INVALID_REQUEST","ASSET_INVALID","PAYMENT_REQUIRED","QUOTE_EXPIRED","QUOTE_INVALID","CONTINUATION_INVALID","CONTINUATION_CONSUMED","PAYMENT_INVALID","PAYMENT_UNVERIFIED","ADMISSION_UNAUTHORIZED","SETTLEMENT_PENDING","SETTLEMENT_FAILED","IDEMPOTENCY_CONFLICT","REPLAY_REJECTED","RATE_LIMITED","SERVICE_UNAVAILABLE","PROVIDER_DEGRADED","INTERNAL_ERROR"],"unknownCodes":"SANITIZED_FAIL_CLOSED"},"x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.05","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F","paymentIdentifierRequired":true,"quoteIdHeader":"X-Price-Quote-Id","quoteExpiresAtHeader":"X-Price-Quote-Expires-At"}}},"/v1/risk/paid/admission":{"post":{"operationId":"issueExternalPaidAdmission","summary":"Issue one bounded opaque external paid admission","tags":["Discovery","Paid risk decision"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["version","nonce","request"],"properties":{"version":{"const":"1"},"nonce":{"type":"string","minLength":8,"maxLength":128},"request":{"$ref":"#/components/schemas/PaidRiskRequestV1"}}}}}},"responses":{"200":{"description":"Idempotent opaque bounded admission capability"},"201":{"description":"Opaque bounded admission capability"},"400":{"description":"Invalid public intent or idempotency material"},"409":{"description":"Idempotency conflict"},"429":{"description":"Durable admission issuance capacity reached"},"503":{"description":"External admission policy unavailable"}},"x-external-admission":{"version":"1","opaque":true,"serverBound":true,"singleOperation":true,"network":"eip155:84532","maxAmountAtomic":"50000","endpoint":"POST /v1/risk/paid"}}},"/v1/risk/{riskDecisionId}":{"get":{"operationId":"getRiskDecision","tags":["Revenue risk API"],"parameters":[{"name":"riskDecisionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Canonical durable decision","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskDecisionV1"}}}},"404":{"description":"Decision not found"}}}},"/v1/assets/capabilities":{"get":{"operationId":"assetCapabilities","tags":["Discovery"],"responses":{"200":{"description":"Supported asset identity classes"}}}},"/v1/networks":{"get":{"operationId":"riskNetworks","tags":["Discovery"],"responses":{"200":{"description":"Analysis networks and non-executing settlement adapters"}}}},"/v1/providers/health":{"get":{"operationId":"riskProviderHealth","tags":["Discovery"],"responses":{"200":{"description":"Safe provider capability status"}}}},"/v1/intelligence/{address}":{"get":{"operationId":"universalTokenIntelligence","summary":"Universal AI-agent token intelligence envelope","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"}},{"name":"tradeSizeUsd","in":"query","required":false,"schema":{"type":"number","minimum":1,"maximum":10000000,"default":5000}}],"responses":{"200":{"description":"Stable machine-readable intelligence envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntelligenceEnvelope"}}}},"400":{"description":"Malformed address or unsupported network"},"402":{"description":"x402 payment authorization required when payments are enabled"}},"x-product":"FULL_RISK_ANALYSIS"}},"/v1/monitoring/{address}":{"get":{"operationId":"monitoringStatus","summary":"Read monitoring lifecycle status","tags":["Monitoring"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":true,"schema":{"type":"string"},"description":"Configured network key, CAIP-2 identifier, chain ID, or supported alias"}],"responses":{"200":{"description":"Monitoring record"},"404":{"description":"Asset is not enrolled"}}},"post":{"operationId":"enrollMonitoring","summary":"Purchase or renew recurring monitoring","tags":["Monitoring"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":true,"schema":{"type":"string"},"description":"Configured network key, CAIP-2 identifier, chain ID, or supported alias"}],"responses":{"200":{"description":"Idempotent renewal"},"201":{"description":"Monitoring enrollment created"},"402":{"description":"x402 payment required"},"409":{"description":"Configured monitoring capacity reached"}},"x-product":"MONITORING"},"delete":{"operationId":"pauseMonitoring","summary":"Pause recurring monitoring without deleting history","tags":["Monitoring"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":true,"schema":{"type":"string"},"description":"Configured network key, CAIP-2 identifier, chain ID, or supported alias"}],"responses":{"200":{"description":"Monitoring paused"},"402":{"description":"x402 payment required"},"404":{"description":"Monitoring record not found"}},"x-product":"MONITORING"}},"/v1/history/{address}":{"get":{"operationId":"tokenRiskHistory","summary":"Chart-ready hourly token risk history","tags":["Public history"],"description":"Returns persisted observations in chronological order. Unknown metrics remain null; no interpolation is applied.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"},"description":"auto or a configured EVM network key"},{"name":"window","in":"query","required":false,"schema":{"type":"string","enum":["24h","7d","30d"],"default":"7d"}},{"name":"metric","in":"query","required":false,"schema":{"type":"string","enum":["all","riskScore","priceUsd","liquidityUsd","holderCount","adjustedTop10Pct","whaleNetflow24hUsd","cexNetflow24hUsd"],"default":"all"}}],"responses":{"200":{"description":"Bounded hourly time series (maximum 1000 points)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistorySeries"}}}},"400":{"description":"Invalid address, network, window or metric"},"404":{"description":"No persisted snapshot history for the requested token/network"}}}},"/v1/history/{address}/summary":{"get":{"operationId":"tokenRiskHistorySummary","summary":"Historical risk summary and velocity windows","tags":["Public history"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"}}],"responses":{"200":{"description":"Summary with null deltas and explicit status when history is insufficient","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistorySummary"}}}},"404":{"description":"No persisted snapshot history for the requested token/network"}}}},"/v1/buyer/jobs":{"post":{"operationId":"submitBuyerJob","summary":"Submit an authenticated asynchronous autonomous-buyer job","tags":["Agent buyer API"],"security":[{"BuyerApiBearer":["buyer:submit"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerJobRequest"},"example":{"product":"monitoring","analysisNetwork":"bnb","tokenAddress":"0x1111111111111111111111111111111111111111","maxPaymentUsd":1,"metadata":{"strategy":"risk-monitor"}}}}},"responses":{"200":{"description":"Idempotent replay of the existing canonical job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerJob"}}}},"202":{"description":"New durable operation/job accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerJob"}}}},"400":{"description":"Malformed or unsupported logical buyer request"},"401":{"description":"Missing, malformed, invalid, revoked or expired bearer API key"},"403":{"description":"Authenticated API client lacks buyer:submit"},"409":{"description":"Idempotency key conflict"},"429":{"description":"Per-client rate limit exceeded; honor Retry-After"},"503":{"description":"Bounded buyer queue capacity or critical dependency unavailable"}}}},"/v1/buyer/jobs/{jobId}":{"get":{"operationId":"buyerJobStatus","summary":"Read a tenant-owned durable buyer job status","tags":["Agent buyer API"],"security":[{"BuyerApiBearer":["buyer:read"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Durable buyer job status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerJob"}}}},"401":{"description":"Authentication failed"},"403":{"description":"buyer:read scope required"},"404":{"description":"Job not found"}}}},"/v1/buyer/jobs/{jobId}/result":{"get":{"operationId":"buyerJobResult","summary":"Replay the canonical durable buyer result","tags":["Agent buyer API"],"security":[{"BuyerApiBearer":["buyer:read"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Terminal durable result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerJobResult"}}}},"202":{"description":"Job is not terminal; poll with a bounded interval"},"401":{"description":"Authentication failed"},"403":{"description":"buyer:read scope required"},"404":{"description":"Job not found or belongs to another tenant"},"429":{"description":"Rate limited; honor Retry-After and add randomized jitter"}}}},"/v1/buyer/operations/{operationId}":{"get":{"operationId":"buyerOperationStatus","summary":"Read canonical buyer operation/job status","tags":["Internal buyer service"],"security":[{"AdminBearer":[]}],"parameters":[{"name":"operationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Canonical operation and durable result"},"403":{"description":"Internal access disabled or bearer token invalid"},"404":{"description":"Operation not found"}}}},"/v1/buyer/jobs/{jobId}/cancel":{"post":{"operationId":"cancelBuyerJob","summary":"Durably cancel tenant-owned safe work","tags":["Agent buyer API"],"security":[{"BuyerApiBearer":["buyer:cancel"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Job cancelled before unsafe payment state"},"401":{"description":"Authentication failed"},"403":{"description":"buyer:cancel scope required"},"404":{"description":"Job not found"},"409":{"description":"Active lease conflict or cancellation unsafe after submission"}}}},"/v1/internal/collect-snapshots":{"post":{"operationId":"collectMonitoredTokenSnapshots","summary":"Trigger protected internal snapshot collection","tags":["Internal"],"description":"Internal scheduler target. This is not an x402 product and requires X-Snapshot-Secret.","security":[{"SnapshotSecret":[]}],"responses":{"200":{"description":"All enabled watchlist tokens were stored"},"207":{"description":"Collection completed with one or more isolated token failures"},"401":{"description":"Missing or invalid snapshot collector secret"},"429":{"description":"Collector trigger rate limit exceeded"},"503":{"description":"Collector secret or analysis engine is not configured"}}}},"/v1/quick-check/{address}":{"get":{"operationId":"quickCheck","summary":"Fast EVM token safety screening with structured evidence","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"base-sepolia"},"description":"Configured network key"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.03)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.03","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/pre-trade/{address}":{"get":{"operationId":"preTrade","summary":"Live multi-chain pre-trade intelligence with GO, HOLD or STOP decision","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"},"description":"auto, ethereum, base, bnb or another configured network key"},{"name":"tradeSizeUsd","in":"query","required":false,"schema":{"type":"number","default":5000,"minimum":1,"maximum":10000000},"description":"Trade notional used for price-impact and liquidity-ratio estimates"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreTradeReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.10)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.10","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/token-risk/{address}":{"get":{"operationId":"tokenRisk","summary":"Evidence-based EVM token risk score and component analysis","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"base-sepolia"},"description":"Configured network key"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.05)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.05","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/deep-audit/{address}":{"get":{"operationId":"deepAudit","summary":"Expanded EVM token contract, holder, liquidity and deployer audit","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"base-sepolia"},"description":"Configured network key"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.50)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.50","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/risk-change/{address}":{"get":{"operationId":"riskChange","summary":"Compare current token risk with the previous persisted snapshot","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"},"description":"auto, ethereum, base, bnb or another configured network key"},{"name":"tradeSizeUsd","in":"query","required":false,"schema":{"type":"number","default":5000,"minimum":1,"maximum":10000000},"description":"Trade notional used for price-impact and liquidity-ratio estimates"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskChangeReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.10)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.10","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/whale-signal/{address}":{"get":{"operationId":"whaleSignal","summary":"Large-holder and whale activity signals for an EVM token","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"base-sepolia"},"description":"Configured network key"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.10)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.10","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/unlock-risk/{address}":{"get":{"operationId":"unlockRisk","summary":"Token allocation, vesting, unlock and sell-pressure analysis","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"base-sepolia"},"description":"Configured network key"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.15)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.15","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}},"/v1/deep-intelligence/{address}":{"get":{"operationId":"deepIntelligence","summary":"Agent-grade holder, liquidity, flow and provenance intelligence","tags":["Paid risk analysis"],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"example":"0x1111111111111111111111111111111111111111"},{"name":"network","in":"query","required":false,"schema":{"type":"string","default":"auto"},"description":"auto, ethereum, base, bnb or another configured network key"},{"name":"tradeSizeUsd","in":"query","required":false,"schema":{"type":"number","default":5000,"minimum":1,"maximum":10000000},"description":"Trade notional used for price-impact and liquidity-ratio estimates"}],"responses":{"200":{"description":"Paid structured token risk report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeepIntelligenceReport"}}}},"400":{"description":"Invalid address or unsupported network"},"402":{"description":"x402 V2 payment required ($0.50)","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 payment requirements"}}},"429":{"description":"Rate limit exceeded"},"500":{"description":"Fail-closed internal error without stack trace or secret detail"},"502":{"description":"Required RPC provider unavailable"},"503":{"description":"Service kill switch, maintenance, database or required engine unavailable"}},"x-provider-partial":"Partial enrichment is returned inside a 200 response with providerStatus, provenance, limitations and reduced confidence/dataQuality; critical missing data blocks GO.","x-x402":{"version":2,"scheme":"exact","network":"eip155:84532","price":"$0.50","payTo":"0x9fA1228cDdb92c766540fb6A7D0461F9aBe7836F"}}}},"components":{"securitySchemes":{"AdminBearer":{"type":"http","scheme":"bearer","description":"Internal ADMIN_TOKEN; Idempotency-Key is never authentication"},"BuyerApiBearer":{"type":"http","scheme":"bearer","bearerFormat":"opaque API key","description":"Tenant-scoped buyer API key. Keys are hashed at rest and never returned by the API."},"SnapshotSecret":{"type":"apiKey","in":"header","name":"X-Snapshot-Secret","description":"Internal scheduler secret; never use this endpoint as a public x402 product"}},"schemas":{"Evidence":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}},"TokenRiskReport":{"type":"object","required":["schemaVersion","requestId","generatedAt","address","network","profile","token","risk","components","flags","summary","limitations","sources"],"properties":{"schemaVersion":{"type":"string","const":"1.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"network":{"type":"object","required":["key","name","chainId","caip2"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"chainId":{"type":"integer"},"caip2":{"type":"string"}}},"profile":{"type":"string","enum":["quick-check","token-risk","deep-audit","whale-signal","unlock-risk"]},"token":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"contract":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"ownership":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"holders":{"type":"object"},"liquidity":{"type":"object"},"whales":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"deployerForensics":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"tokenomics":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"risk":{"type":"object","required":["score","grade","coverage","methodologyVersion"],"properties":{"score":{"type":["integer","null"],"minimum":0,"maximum":100},"grade":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL","UNKNOWN"]},"coverage":{"type":"number","minimum":0,"maximum":1},"methodologyVersion":{"type":"string"}}},"components":{"type":"object","additionalProperties":{"type":["integer","null"],"minimum":0,"maximum":100}},"flags":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"limitations":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}}},"PreTradeReport":{"type":"object","required":["schemaVersion","requestId","generatedAt","address","chain","tradeSizeUsd","decision","score","confidence","dataQuality","reasons","criticalFlags","flags","components","contract","holders","liquidity","deployerForensics","flows","unlocks","price","providerStatus","limitations"],"properties":{"schemaVersion":{"type":"string","const":"2.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"chain":{"type":"object","required":["selected","candidates","ambiguous","checkedNetworks","unavailableNetworks"],"properties":{"selected":{"type":"object","required":["key","name","chainId","caip2","nativeCurrency"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"chainId":{"type":"integer"},"caip2":{"type":"string"},"nativeCurrency":{"type":"string"}}},"candidates":{"type":"array","items":{"type":"object"}},"ambiguous":{"type":"boolean"},"checkedNetworks":{"type":"array","items":{"type":"string"}},"unavailableNetworks":{"type":"array","items":{"type":"object"}}}},"tradeSizeUsd":{"type":"number","minimum":1,"maximum":10000000},"decision":{"type":"string","enum":["GO","HOLD","STOP"]},"score":{"type":["number","null"],"minimum":0,"maximum":100},"confidence":{"type":"number","minimum":0,"maximum":100},"dataQuality":{"type":"number","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"primaryReasons":{"type":"array","items":{"type":"string"}},"secondaryReasons":{"type":"array","items":{"type":"string"}},"positiveFactors":{"type":"array","items":{"type":"string"}},"unknownFactors":{"type":"array","items":{"type":"string"}},"topRiskDrivers":{"type":"array","items":{"type":"object"}},"providerConflicts":{"type":"array","items":{"type":"string"}},"decisionTriggers":{"type":"array","items":{"type":"object"}},"agentDecision":{"type":"object"},"criticalFlags":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"string"}},"components":{"type":"object","additionalProperties":{"type":["number","null"],"minimum":0,"maximum":100}},"contract":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"holders":{"type":"object"},"liquidity":{"type":"object"},"deployerForensics":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"flows":{"type":"object"},"unlocks":{"type":"object"},"price":{"type":"object"},"tokenContext":{"type":"object"},"marketQuality":{"type":"object","description":"Execution/market quality, intentionally separate from the token security risk score"},"consensus":{"type":"array","items":{"type":"object"}},"provenance":{"type":"array","items":{"type":"object"}},"velocity":{"type":"object"},"serviceStatus":{"type":"string","enum":["BETA","PRODUCTION"]},"notFinancialAdvice":{"type":"boolean"},"enrichment":{"type":"object"},"providerStatus":{"type":"array","items":{"type":"object"}},"limitations":{"type":"array","items":{"type":"string"}}}},"RiskChangeReport":{"type":"object","required":["schemaVersion","intelligenceVersion","requestId","generatedAt","address","network","previousRisk","currentRisk","delta","previousSnapshotAt","currentSnapshotAt","newFlags","removedFlags","changes","status","current"],"properties":{"schemaVersion":{"type":"string","const":"1.0"},"intelligenceVersion":{"type":"string","const":"2.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"network":{"type":"string"},"previousRisk":{"type":["number","null"]},"currentRisk":{"type":["number","null"]},"delta":{"type":["number","null"]},"previousSnapshotAt":{"type":["string","null"]},"currentSnapshotAt":{"type":"string","format":"date-time"},"newFlags":{"type":"array","items":{"type":"string"}},"removedFlags":{"type":"array","items":{"type":"string"}},"changes":{"type":"object"},"status":{"type":"string","enum":["STABLE","IMPROVING","DETERIORATING","CRITICAL_CHANGE"]},"current":{"type":"object","required":["schemaVersion","requestId","generatedAt","address","chain","tradeSizeUsd","decision","score","confidence","dataQuality","reasons","criticalFlags","flags","components","contract","holders","liquidity","deployerForensics","flows","unlocks","price","providerStatus","limitations"],"properties":{"schemaVersion":{"type":"string","const":"2.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"chain":{"type":"object","required":["selected","candidates","ambiguous","checkedNetworks","unavailableNetworks"],"properties":{"selected":{"type":"object","required":["key","name","chainId","caip2","nativeCurrency"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"chainId":{"type":"integer"},"caip2":{"type":"string"},"nativeCurrency":{"type":"string"}}},"candidates":{"type":"array","items":{"type":"object"}},"ambiguous":{"type":"boolean"},"checkedNetworks":{"type":"array","items":{"type":"string"}},"unavailableNetworks":{"type":"array","items":{"type":"object"}}}},"tradeSizeUsd":{"type":"number","minimum":1,"maximum":10000000},"decision":{"type":"string","enum":["GO","HOLD","STOP"]},"score":{"type":["number","null"],"minimum":0,"maximum":100},"confidence":{"type":"number","minimum":0,"maximum":100},"dataQuality":{"type":"number","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"primaryReasons":{"type":"array","items":{"type":"string"}},"secondaryReasons":{"type":"array","items":{"type":"string"}},"positiveFactors":{"type":"array","items":{"type":"string"}},"unknownFactors":{"type":"array","items":{"type":"string"}},"topRiskDrivers":{"type":"array","items":{"type":"object"}},"providerConflicts":{"type":"array","items":{"type":"string"}},"decisionTriggers":{"type":"array","items":{"type":"object"}},"agentDecision":{"type":"object"},"criticalFlags":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"string"}},"components":{"type":"object","additionalProperties":{"type":["number","null"],"minimum":0,"maximum":100}},"contract":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"holders":{"type":"object"},"liquidity":{"type":"object"},"deployerForensics":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"flows":{"type":"object"},"unlocks":{"type":"object"},"price":{"type":"object"},"tokenContext":{"type":"object"},"marketQuality":{"type":"object","description":"Execution/market quality, intentionally separate from the token security risk score"},"consensus":{"type":"array","items":{"type":"object"}},"provenance":{"type":"array","items":{"type":"object"}},"velocity":{"type":"object"},"serviceStatus":{"type":"string","enum":["BETA","PRODUCTION"]},"notFinancialAdvice":{"type":"boolean"},"enrichment":{"type":"object"},"providerStatus":{"type":"array","items":{"type":"object"}},"limitations":{"type":"array","items":{"type":"string"}}}},"velocity":{"type":"object"}}},"DeepIntelligenceReport":{"type":"object","required":["schemaVersion","requestId","generatedAt","identity","decision","holders","liquidity","flows","unlocks","provenance","providerStatus","risk"],"properties":{"schemaVersion":{"type":"string","const":"2.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"identity":{"type":"object"},"decision":{"type":"object"},"holders":{"type":"object"},"liquidity":{"type":"object"},"flows":{"type":"object"},"unlocks":{"type":"object"},"provenance":{"type":"array","items":{"type":"object"}},"providerStatus":{"type":"array","items":{"type":"object"}},"risk":{"type":"object","required":["schemaVersion","requestId","generatedAt","address","chain","tradeSizeUsd","decision","score","confidence","dataQuality","reasons","criticalFlags","flags","components","contract","holders","liquidity","deployerForensics","flows","unlocks","price","providerStatus","limitations"],"properties":{"schemaVersion":{"type":"string","const":"2.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"chain":{"type":"object","required":["selected","candidates","ambiguous","checkedNetworks","unavailableNetworks"],"properties":{"selected":{"type":"object","required":["key","name","chainId","caip2","nativeCurrency"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"chainId":{"type":"integer"},"caip2":{"type":"string"},"nativeCurrency":{"type":"string"}}},"candidates":{"type":"array","items":{"type":"object"}},"ambiguous":{"type":"boolean"},"checkedNetworks":{"type":"array","items":{"type":"string"}},"unavailableNetworks":{"type":"array","items":{"type":"object"}}}},"tradeSizeUsd":{"type":"number","minimum":1,"maximum":10000000},"decision":{"type":"string","enum":["GO","HOLD","STOP"]},"score":{"type":["number","null"],"minimum":0,"maximum":100},"confidence":{"type":"number","minimum":0,"maximum":100},"dataQuality":{"type":"number","minimum":0,"maximum":100},"reasons":{"type":"array","items":{"type":"string"}},"primaryReasons":{"type":"array","items":{"type":"string"}},"secondaryReasons":{"type":"array","items":{"type":"string"}},"positiveFactors":{"type":"array","items":{"type":"string"}},"unknownFactors":{"type":"array","items":{"type":"string"}},"topRiskDrivers":{"type":"array","items":{"type":"object"}},"providerConflicts":{"type":"array","items":{"type":"string"}},"decisionTriggers":{"type":"array","items":{"type":"object"}},"agentDecision":{"type":"object"},"criticalFlags":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"string"}},"components":{"type":"object","additionalProperties":{"type":["number","null"],"minimum":0,"maximum":100}},"contract":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"holders":{"type":"object"},"liquidity":{"type":"object"},"deployerForensics":{"type":"object","additionalProperties":{"type":"object","required":["value","status","source","reason","observedAt"],"properties":{"value":{},"status":{"type":"string","enum":["observed","derived","unknown","not_applicable"]},"source":{"type":["string","null"]},"reason":{"type":["string","null"]},"observedAt":{"type":"string","format":"date-time"}}}},"flows":{"type":"object"},"unlocks":{"type":"object"},"price":{"type":"object"},"tokenContext":{"type":"object"},"marketQuality":{"type":"object","description":"Execution/market quality, intentionally separate from the token security risk score"},"consensus":{"type":"array","items":{"type":"object"}},"provenance":{"type":"array","items":{"type":"object"}},"velocity":{"type":"object"},"serviceStatus":{"type":"string","enum":["BETA","PRODUCTION"]},"notFinancialAdvice":{"type":"boolean"},"enrichment":{"type":"object"},"providerStatus":{"type":"array","items":{"type":"object"}},"limitations":{"type":"array","items":{"type":"string"}}}}}},"HistoryPoint":{"type":"object","required":["timestamp","riskScore","priceUsd","liquidityUsd","volume24hUsd","holderCount","adjustedTop10Pct","whaleNetflow24hUsd","cexNetflow24hUsd"],"properties":{"timestamp":{"type":"string","format":"date-time"},"riskScore":{"type":["number","null"]},"priceUsd":{"type":["number","null"]},"liquidityUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"holderCount":{"type":["number","null"]},"adjustedTop10Pct":{"type":["number","null"]},"whaleNetflow24hUsd":{"type":["number","null"]},"cexNetflow24hUsd":{"type":["number","null"]}}},"HistorySeries":{"type":"object","required":["address","network","window","metric","from","to","points"],"properties":{"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"network":{"type":"string"},"window":{"type":"string","enum":["24h","7d","30d"]},"metric":{"type":"string"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"points":{"type":"array","maxItems":1000,"items":{"oneOf":[{"$ref":"#/components/schemas/HistoryPoint"},{"type":"object","required":["timestamp"],"minProperties":2,"maxProperties":2,"properties":{"timestamp":{"type":"string","format":"date-time"}},"additionalProperties":{"type":["number","null"]}}]}}}},"HistorySummary":{"type":"object","required":["address","network","firstSnapshotAt","latestSnapshotAt","snapshotCount","historyDurationHours","currentRisk","status","riskChange1h","riskChange24h","riskChange7d","liquidityChange24hPct","priceChange24hPct","holderChange24h","concentrationChange24hPct"],"properties":{"address":{"type":"string"},"network":{"type":"string"},"firstSnapshotAt":{"type":["string","null"],"format":"date-time"},"latestSnapshotAt":{"type":["string","null"],"format":"date-time"},"snapshotCount":{"type":"integer","minimum":0},"historyDurationHours":{"type":"number","minimum":0},"currentRisk":{"type":["number","null"]},"status":{"type":"string"},"riskChange1h":{"type":["number","null"]},"riskChange24h":{"type":["number","null"]},"riskChange7d":{"type":["number","null"]},"liquidityChange24hPct":{"type":["number","null"]},"priceChange24hPct":{"type":["number","null"]},"holderChange24h":{"type":["number","null"]},"concentrationChange24hPct":{"type":["number","null"]},"windows":{"type":"object"}}},"IntelligenceEnvelope":{"type":"object","required":["schemaVersion","requestId","generatedAt","asset","product","risk","decision","market","security","history","provenance","unknownFactors"],"properties":{"schemaVersion":{"type":"string","const":"1.0"},"requestId":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"asset":{"type":"object","required":["network","chainId","address","name","symbol"]},"product":{"type":"object","required":["type","paymentRequired","paymentStatus"]},"risk":{"type":"object","required":["score","grade","confidence","coverage"]},"decision":{"type":"object","required":["action","reasons","criticalFlags"]},"market":{"type":"object"},"security":{"type":"object"},"history":{"type":"object"},"provenance":{"type":"object"},"unknownFactors":{"type":"array","items":{"type":"string"}}}},"MonitoringResponse":{"type":"object","required":["schemaVersion","asset","product","monitoring"],"properties":{"schemaVersion":{"type":"string","const":"1.0"},"asset":{"type":"object","required":["network","chainId","address","normalizedAddress"]},"product":{"type":"object","required":["type","paymentRequired","paymentStatus"]},"monitoring":{"type":["object","null"]},"status":{"type":"string"}}},"BuyerJobRequest":{"type":"object","additionalProperties":false,"required":["product","analysisNetwork","tokenAddress"],"properties":{"product":{"type":"string","enum":["monitoring","intelligence","quick-check","pre-trade","deep-intelligence","risk-change"]},"analysisNetwork":{"type":"string","maxLength":64},"tokenAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"publicBaseUrl":{"type":"string","format":"uri"},"maxPaymentUsd":{"type":"number","exclusiveMinimum":0,"maximum":1},"metadata":{"type":"object","additionalProperties":true}}},"BuyerJob":{"type":"object","additionalProperties":false,"required":["schemaVersion","jobId","operationId","status","terminal","duplicate","attempt","createdAt","updatedAt","error","links"],"properties":{"schemaVersion":{"type":"string","const":"1"},"jobId":{"type":"string"},"operationId":{"type":"string"},"status":{"type":"string","enum":["QUEUED","CLAIMED","RUNNING","WAITING","SUCCEEDED","FAILED","CANCELLED"]},"terminal":{"type":"boolean"},"duplicate":{"type":"boolean"},"attempt":{"type":"integer","minimum":0},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"error":{"oneOf":[{"type":"null"},{"type":"object"}]},"links":{"type":"object"}}},"BuyerJobResult":{"allOf":[{"$ref":"#/components/schemas/BuyerJob"},{"type":"object","required":["result","completedAt"],"properties":{"result":{},"completedAt":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}]},"PriceQuoteV1":{"type":"object","additionalProperties":false,"oneOf":[{"required":["admissionLeaseId","admissionLeaseVersion"]},{"not":{"anyOf":[{"required":["admissionLeaseId"]},{"required":["admissionLeaseVersion"]}]}}],"required":["version","quoteId","productId","priceAtomic","paymentAsset","network","requestFingerprint","sellerDestination","createdAt","expiresAt","pricingVersion"],"properties":{"version":{"type":"string","const":"1"},"quoteId":{"type":"string"},"productId":{"type":"string","const":"token_risk"},"priceAtomic":{"type":"string","pattern":"^[0-9]+$"},"paymentAsset":{"type":"string"},"network":{"type":"string"},"requestFingerprint":{"type":"string"},"sellerDestination":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"pricingVersion":{"type":"string"},"admissionLeaseId":{"type":"string","pattern":"^lease_[a-f0-9]{32}$","description":"Durable admission lease identity, not an authorization capability."},"admissionLeaseVersion":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Durable lease generation; must match the exact stored quote/operation, not a protocol version."}}},"PaidRiskResponseV1":{"type":"object","additionalProperties":false,"required":["version","productId","commercialSessionId","quote","entitlement","replayed","coalesced","unifiedDecision","riskDecision","requestId","external"],"properties":{"version":{"type":"string","const":"1"},"productId":{"type":"string","const":"token_risk"},"commercialSessionId":{"type":"string"},"quote":{"$ref":"#/components/schemas/PriceQuoteV1"},"entitlement":{"type":"object"},"replayed":{"type":"boolean"},"coalesced":{"type":"boolean"},"requestId":{"type":"string","description":"Public request correlation identifier"},"external":{"type":"object","additionalProperties":false,"required":["version","product","internalProductId","decision","riskScore","riskLevel","reasonCodes","dataFreshness","payment"],"properties":{"version":{"type":"string","const":"1"},"product":{"type":"string","const":"tat-risk.token-risk"},"internalProductId":{"type":"string","const":"token_risk"},"decision":{"type":"string","enum":["GO","HOLD","STOP"]},"riskScore":{"type":["number","null"],"minimum":0,"maximum":100},"riskLevel":{"type":"string"},"reasonCodes":{"type":"array","items":{"type":"string"}},"dataFreshness":{"type":"object"},"payment":{"type":"object","required":["status","settlement"],"properties":{"status":{"type":"string","const":"SETTLEMENT_CONFIRMED"},"settlement":{"type":"string","const":"DURABLY_COMMITTED"}}},"traffic":{"type":"object","additionalProperties":false,"required":["trafficClass","trafficEvidence","independentOriginVerified"],"properties":{"trafficClass":{"type":"string","enum":["INTERNAL_DETERMINISTIC_TEST","INTERNAL_AUTHORIZED_CANARY","RECOVERY_OPERATION","INDEPENDENT_EXTERNAL","EXTERNAL_REQUEST_UNVERIFIED","EXTERNAL_PAID_SUCCESS"]},"trafficEvidence":{"type":"string"},"independentOriginVerified":{"type":"boolean","const":false}}}}},"unifiedDecision":{"type":"object","required":["riskScore","riskLevel","decision","confidence","reasons","criticalFlags","tokenRisk","contractRisk","marketRisk","settlementRisk","dataFreshness","providerHealth","recommendedAction"]},"riskDecision":{"$ref":"#/components/schemas/RiskDecisionV1"}}},"RiskRequestV1":{"type":"object","additionalProperties":false,"required":["version","asset","requestedProducts"],"properties":{"version":{"type":"string","const":"1"},"requestId":{"type":"string"},"idempotencyKey":{"type":"string"},"asset":{"type":"object","required":["assetClass","symbol"],"properties":{"assetClass":{"type":"string","enum":["CRYPTO_NATIVE","CRYPTO_TOKEN","STABLECOIN","RWA_TOKEN","FX_PAIR","EQUITY","COMMODITY","INDEX","UNKNOWN"]},"symbol":{"type":"string"}}},"requestedProducts":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["TOKEN_RISK","CONTRACT_RISK","MARKET_RISK","LIQUIDITY_RISK","SETTLEMENT_ROUTE_RISK","COMPOSITE_RISK"]}},"context":{"type":"object"},"caller":{"type":"object"},"constraints":{"type":"object"}}},"PaidRiskRequestV1":{"type":"object","additionalProperties":false,"required":["version","asset","requestedProducts"],"properties":{"version":{"type":"string","const":"1"},"requestId":{"type":"string","maxLength":128},"idempotencyKey":{"type":"string","minLength":8,"maxLength":128},"asset":{"type":"object","additionalProperties":false,"required":["assetClass","symbol","chainId","contractAddress"],"properties":{"assetClass":{"type":"string","enum":["CRYPTO_TOKEN","STABLECOIN","RWA_TOKEN"]},"symbol":{"type":"string","minLength":1,"maxLength":32},"name":{"type":"string"},"chain":{"type":"string"},"chainId":{"oneOf":[{"type":"integer","minimum":1},{"type":"string"}]},"network":{"type":"string"},"contractAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"decimals":{"type":"integer","minimum":0,"maximum":255},"issuer":{"type":"string"},"currency":{"type":"string"},"baseAsset":{"type":"string"},"quoteAsset":{"type":"string"},"venue":{"type":"string"},"externalIds":{"type":"object","additionalProperties":{"type":"string"}},"metadata":{"type":"object"}}},"requestedProducts":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["TOKEN_RISK","CONTRACT_RISK","MARKET_RISK","LIQUIDITY_RISK","SETTLEMENT_ROUTE_RISK","COMPOSITE_RISK"]}},"context":{"type":"object"},"caller":{"type":"object"},"constraints":{"type":"object"}},"description":"Public wire input only. Derived identityKey and normalizedContractAddress fields are rejected."},"PublicPaidErrorV1":{"type":"object","additionalProperties":false,"required":["error","requestId","status","retryable"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"publicCode":{"type":"string","enum":["INVALID_REQUEST","ASSET_INVALID","PAYMENT_REQUIRED","QUOTE_EXPIRED","QUOTE_INVALID","CONTINUATION_INVALID","CONTINUATION_CONSUMED","PAYMENT_INVALID","PAYMENT_UNVERIFIED","ADMISSION_UNAUTHORIZED","SETTLEMENT_PENDING","SETTLEMENT_FAILED","IDEMPOTENCY_CONFLICT","REPLAY_REJECTED","RATE_LIMITED","SERVICE_UNAVAILABLE","PROVIDER_DEGRADED","INTERNAL_ERROR"]},"message":{"type":"string"}}},"requestId":{"type":["string","null"]},"status":{"type":"string"},"retryable":{"type":"boolean"}}},"RiskDecisionV1":{"type":"object","additionalProperties":false,"required":["version","riskDecisionId","requestId","status","asset","overallRiskScore","riskLevel","confidence","generatedAt","validUntil","products","evidence","providerSummary","warnings","limitations","attestation"],"properties":{"version":{"type":"string","const":"1"},"riskDecisionId":{"type":"string"},"requestId":{"type":"string"},"status":{"type":"string","enum":["PASS","PARTIAL","UNAVAILABLE","ERROR"]},"asset":{"type":"object"},"overallRiskScore":{"type":["number","null"],"minimum":0,"maximum":100},"riskLevel":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"generatedAt":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"},"products":{"type":"array","items":{"type":"object"}},"evidence":{"type":"array","items":{"type":"object"}},"providerSummary":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"attestation":{"type":"null"}}}}}}