{"openapi":"3.1.0","info":{"title":"Vestige Reputation API","version":"1.0.0","description":"Read-only reputation data for Hyperliquid traders: performance metrics, risk metrics, transparent reputation scores and EIP-712 signed credentials. These are Vestige's own routes (not Hyperliquid endpoints). Scores describe observed history only — integrators make their own decisions and must not treat a score as a guarantee of suitability.","license":{"name":"Free basic access — rate limited"}},"servers":[{"url":"https://vestigeprotocol.vercel.app"}],"security":[{},{"ApiKey":[]}],"paths":{"/api/v1/traders/{address}":{"get":{"summary":"Trader summary","operationId":"getTrader","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…), Vestige ID (VST-000042) or claimed alias","schema":{"type":"string"}}],"responses":{"200":{"description":"Identity, sync status, reputation brief, headline metrics and data coverage","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TraderSummary"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/traders/{address}/performance":{"get":{"summary":"Performance metrics","operationId":"getPerformance","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…), Vestige ID (VST-000042) or claimed alias","schema":{"type":"string"}},{"name":"series","in":"query","schema":{"type":"boolean"},"description":"Include equity, drawdown and PnL series"}],"responses":{"200":{"description":"Profitability, return, cost and behavior metrics with definitions, coverage and data commitment","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PerformanceView"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/traders/{address}/reputation":{"get":{"summary":"Reputation score","operationId":"getReputation","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…), Vestige ID (VST-000042) or claimed alias","schema":{"type":"string"}}],"responses":{"200":{"description":"Score, dimensions, confidence, requirements and progression","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ReputationView"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/traders/{address}/credentials":{"get":{"summary":"Issued credentials","operationId":"getTraderCredentials","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…), Vestige ID (VST-000042) or claimed alias","schema":{"type":"string"}},{"name":"history","in":"query","schema":{"type":"boolean"},"description":"Include superseded credentials"}],"responses":{"200":{"description":"Credentials issued to the wallet","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CredentialList"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/traders/{address}/risk":{"get":{"summary":"Risk metrics","operationId":"getRisk","parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (0x…), Vestige ID (VST-000042) or claimed alias","schema":{"type":"string"}}],"responses":{"200":{"description":"Drawdowns, volatility, risk-adjusted ratios, leverage, concentration and integrity indicators","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/RiskView"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/passports/{id}":{"get":{"summary":"Trader passport","operationId":"getPassport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Vestige ID (VST-000042) or address"}],"responses":{"200":{"description":"Passport","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PassportView"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/credentials/{id}":{"get":{"summary":"Credential with signed document","operationId":"getCredential","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Credential id or EIP-712 digest"}],"responses":{"200":{"description":"Credential view and EIP-712 document","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CredentialWithDocument"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/credentials/verify":{"post":{"summary":"Verify a credential","operationId":"verifyCredential","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"200":{"description":"Signature, issuer, revocation, expiry, methodology, anchor and evidence checks","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/VerificationReport"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/leaderboards":{"get":{"summary":"Leaderboards","operationId":"getLeaderboard","parameters":[{"name":"category","in":"query","schema":{"type":"string","enum":["overall","risk_adjusted","consistency","drawdown_control","experienced","emerging","market_specialists"]}},{"name":"period","in":"query","schema":{"type":"string","enum":["7d","30d","90d","all"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500}}],"responses":{"200":{"description":"Ranked rows with eligibility rules and methodology","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/LeaderboardView"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/methodologies":{"get":{"summary":"Published methodologies","operationId":"getMethodologies","responses":{"200":{"description":"Versioned methodology parameters and content hashes","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MethodologyList"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not yet indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Optional. Anonymous: 60 req/min per IP. Keys: 300 req/min. Create keys at /app/developers."}},"schemas":{"Meta":{"type":"object","properties":{"methodologyVersion":{"type":["string","null"]},"lastUpdatedMs":{"type":["integer","null"]}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"MetricValue":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","null"],"description":"Decimal string; pct/ratio values are fractions"},"unit":{"type":"string"},"status":{"type":"string","enum":["ok","estimated","unavailable","insufficient"]},"note":{"type":"string"},"description":{"type":"string"},"method":{"type":"string"},"source":{"type":"string"},"window":{"type":"object","properties":{"startMs":{"type":"integer"},"endMs":{"type":"integer"}}},"sample":{"type":"integer"}}},"DataCoverage":{"type":"object","description":"Earliest/latest indexed timestamps per stream, truncation flags, reconciliation and known gaps"},"TraderSummary":{"type":"object","properties":{"address":{"type":"string"},"vestigeId":{"type":["string","null"]},"ownership":{"type":"string","enum":["indexed","ownership_verified"]},"credentialVerified":{"type":"boolean"},"reputation":{"type":["object","null"]},"headline":{"type":["object","null"]},"coverage":{"$ref":"#/components/schemas/DataCoverage"}}},"PerformanceView":{"type":"object","properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricValue"}},"coverage":{"$ref":"#/components/schemas/DataCoverage"},"dataCommitment":{"type":"string"},"insights":{"type":"array"},"integrity":{"type":"array"}}},"RiskView":{"type":"object","properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricValue"}},"integrity":{"type":"array"}}},"ReputationView":{"type":"object","properties":{"result":{"type":"object"},"history":{"type":"array"},"methodology":{"type":"object"}}},"Credential":{"type":"object","properties":{"id":{"type":"string"},"digest":{"type":"string"},"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["valid","expired","revoked"]},"metrics":{"type":"array"},"observation":{"type":"object"},"methodologyVersion":{"type":"string"},"dataCommitment":{"type":"string"},"issuedAtMs":{"type":"integer"},"expiresAtMs":{"type":["integer","null"]}}},"CredentialList":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/Credential"}}}},"CredentialWithDocument":{"type":"object","properties":{"credential":{"$ref":"#/components/schemas/Credential"},"document":{"type":"object","description":"EIP-712 {domain, types, primaryType, message} + signature"}}},"PassportView":{"type":"object","properties":{"vestigeId":{"type":"string"},"serial":{"type":"string"},"address":{"type":"string"},"verification":{"type":"object"}}},"VerifyRequest":{"type":"object","properties":{"credentialId":{"type":"string"},"passportId":{"type":"string"},"document":{"type":"object"},"evidence":{"type":"boolean","default":true}}},"VerificationReport":{"type":"object","properties":{"status":{"type":"string","enum":["valid","expired","revoked","invalid_signature","unknown_issuer","insufficient_supporting_data","unavailable"]},"checks":{"type":"array"},"note":{"type":"string"}}},"LeaderboardView":{"type":"object","properties":{"category":{"type":"string"},"period":{"type":"string"},"eligibility":{"type":"array","items":{"type":"string"}},"rows":{"type":"array"}}},"MethodologyList":{"type":"object","properties":{"methodologies":{"type":"array"}}}}}}