{"openapi":"3.1.0","info":{"title":"T3tris API","version":"v0","description":"Unstable API surface under /v0; breaking changes may occur before /v1 and SDK 1.0.0. Every request, including /v0/auth/*, carries a bearer sk_… API key; protected writes add the x-t3tris-session header. Errors share the { error: { code, message } } envelope. List endpoints return { items, nextCursor? } — pass nextCursor back as ?cursor=. See docs/api-contract.md for compatibility rules, pagination, retention, and streaming semantics."},"servers":[{"url":"/v0"}],"paths":{"/chains":{"get":{"operationId":"listChains","summary":"List supported chains.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"name":{"type":"string"},"explorerUrl":{"type":"string"},"enabled":{"type":"boolean"},"creationEnabled":{"type":"boolean"}},"required":["id","key","name","explorerUrl","enabled","creationEnabled"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/assets":{"get":{"operationId":"listAssets","summary":"List assets, optionally on one chain. Includes the latest USD quote when known.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"chainId","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"logoUrl":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"latestPriceUsd":{"type":"number"},"latestPriceTs":{"type":"number"},"latestPriceSource":{"type":"string","enum":["defillama","coingecko"]}},"required":["chainId","address","symbol","name","decimals","tags"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/billing/pricing":{"get":{"operationId":"getBillingPricing","summary":"Read the public commercial configuration for the customer billing surface.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"starter":{"type":"object","properties":{"vaults":{"type":"number"},"requestsPerMonth":{"type":"number"},"monthlyPriceCents":{"type":"number"}},"required":["vaults","requestsPerMonth","monthlyPriceCents"],"additionalProperties":false},"extraVaultPriceCents":{"type":"number"},"extraMillionRequestsPriceCents":{"type":"number"},"quotaResetPriceCents":{"type":"number"},"maxVaults":{"type":"number"},"maxRequestsPerMonth":{"type":"number"}},"required":["currency","starter","extraVaultPriceCents","extraMillionRequestsPriceCents","quotaResetPriceCents","maxVaults","maxRequestsPerMonth"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/billing/payment-config":{"get":{"operationId":"getPaymentConfiguration","summary":"Read the non-secret payment settings used for wallet transfers.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"treasuryAddress":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},{"type":"null"}]},"usdcAddress":{"anyOf":[{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},{"type":"null"}]},"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxReceiptAgeSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxFutureSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["treasuryAddress","usdcAddress","chainId","maxReceiptAgeSeconds","maxFutureSeconds"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/refs":{"get":{"operationId":"getVaultsByRefs","summary":"Visibility-blind config lookup by explicit refs (≤100) — the portfolio directory. Bounded array, no cursor.","parameters":[{"name":"refs","in":"query","required":true,"schema":{"type":"string","description":"comma-separated chainId:address pairs"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults":{"get":{"operationId":"listVaults","summary":"List the vaults visible to this key: unlimited keys get the public catalog, customer keys their attached set.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"chainIds","in":"query","required":false,"schema":{"type":"string","maxLength":2048,"pattern":"^\\d+(,\\s*\\d+)*$","description":"comma-separated integers"}},{"name":"assetAddress","in":"query","required":false,"schema":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},{"name":"curatorAddress","in":"query","required":false,"schema":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["sync","async"]}},{"name":"verified","in":"query","required":false,"schema":{"type":"string","enum":["true","false"],"description":"boolean as string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["tvl","newest","name"]}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}":{"get":{"operationId":"getVault","summary":"Read one vault by ref. Address-known access: unlimited keys resolve private vaults; governance-hidden 404s everyone.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}/history":{"get":{"operationId":"listVaultHistory","summary":"Sampled valuation history (the chart/TVL series).","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"range","in":"query","required":false,"schema":{"type":"string","enum":["1d","1w","1m","3m","1y","all"]}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ts":{"type":"number"},"tier":{"type":"string","const":"log"},"trigger":{"type":"string"},"settledDepositsNotInOracle":{"type":"string"},"settledRedemptionsNotInOracle":{"type":"string"},"block":{"type":"number"},"pricePerShare":{"type":"string"},"pricePerShareEffective":{"type":"string"},"highWaterMark":{"type":"string"},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"totalNetAssets":{"type":"string"},"totalNetSupply":{"type":"string"},"chartTotalAssets":{"type":"string"},"lastSettlementTs":{"type":["number","null"]},"pendingDeposits":{"type":"string"},"pendingRedemptions":{"type":"string"}},"required":["chainId","vaultAddress","ts","tier","block","pricePerShare","pricePerShareEffective","highWaterMark","totalAssets","totalSupply","totalNetAssets","totalNetSupply","lastSettlementTs","pendingDeposits","pendingRedemptions"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}/composition":{"get":{"operationId":"getVaultComposition","summary":"The vault curator wallet's flattened portfolio; null when none.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ts":{"type":"number"},"holdings":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"protocol":{"type":"string"},"kind":{"type":"string","enum":["supply","borrow"]},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"balance":{"type":"number"},"priceUsd":{"type":"number"},"valueUsd":{"type":"number"},"weight":{"type":"number"},"logoUrl":{"type":["string","null"]}},"required":["symbol","name","protocol","kind","assetAddress","balance","priceUsd","valueUsd","weight"],"additionalProperties":false}}},"required":["chainId","vaultAddress","ts","holdings"],"additionalProperties":false},{"type":"null"}]}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}/activity":{"get":{"operationId":"listVaultActivity","summary":"The vault's activity feed.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"categories","in":"query","required":false,"schema":{"type":"string","maxLength":1024,"description":"comma-separated activity categories"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"kind":{"type":"string"},"ts":{"type":"number"},"block":{"type":"number"},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},"actorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","chainId","vaultAddress","kind","ts","block","txHash","payload"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}/annotations":{"get":{"operationId":"listVaultAnnotations","summary":"Curator-pinned chart annotations.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ts":{"type":"number"},"title":{"type":"string"},"body":{"type":"string"},"authorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"links":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"}},"required":["title","url"],"additionalProperties":false}},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"}},"required":["id","chainId","vaultAddress","ts","title","authorAddress","links"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]},"post":{"operationId":"createVaultAnnotation","summary":"Pin a chart annotation. Session required.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ts":{"type":"number"},"title":{"type":"string"},"body":{"type":"string"},"authorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"links":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"}},"required":["title","url"],"additionalProperties":false}},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"}},"required":["id","chainId","vaultAddress","ts","title","authorAddress","links"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ts":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":50000},"links":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","maxLength":120},"url":{"anyOf":[{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},{"type":"string","maxLength":2048}]}},"required":["title","url"]}},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"}},"required":["ts","title"]}}}},"security":[{"bearerAuth":["session"]}]}},"/vaults/{chainId}/{address}/governance":{"get":{"operationId":"getVaultGovernance","summary":"Indexer-mirrored roles, role admins, whitelist rows, and depositor count.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"roleName":{"type":"string"},"account":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"granted":{"type":"boolean"},"grantedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["role","roleName","account","granted"],"additionalProperties":false}},"roleAdmins":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"roleName":{"type":"string"},"adminRole":{"type":"string"},"adminRoleName":{"type":"string"}},"required":["role","roleName","adminRole","adminRoleName"],"additionalProperties":false}},"oracleRoles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"roleName":{"type":"string"},"account":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"granted":{"type":"boolean"},"grantedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["role","roleName","account","granted"],"additionalProperties":false}},"oracleRoleAdmins":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"roleName":{"type":"string"},"adminRole":{"type":"string"},"adminRoleName":{"type":"string"}},"required":["role","roleName","adminRole","adminRoleName"],"additionalProperties":false}},"whitelist":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["deposit","withdraw"]},"account":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"whitelisted":{"type":"boolean"},"updatedAt":{"type":"number"}},"required":["kind","account","whitelisted","updatedAt"],"additionalProperties":false}},"depositors":{"type":["number","null"]}},"required":["roles","roleAdmins","oracleRoles","oracleRoleAdmins","whitelist","depositors"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/vaults/{chainId}/{address}/metadata":{"put":{"operationId":"updateVaultMetadata","summary":"Update curator content. Session required; curator/owner-checked server-side.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string","maxLength":120},"description":{"type":"string","maxLength":50000},"curatorName":{"type":"string","maxLength":120},"curatorUrl":{"type":"string","maxLength":2048},"visibility":{"type":"string","enum":["public","private"]},"category":{"type":"string","maxLength":120},"showComposition":{"type":"boolean"},"compositionWallets":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"depositDisclaimer":{"type":"string","maxLength":20000},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]}}}}}},"security":[{"bearerAuth":["session"]}]}},"/vaults/{chainId}/{address}/annotations/{id}":{"put":{"operationId":"updateVaultAnnotation","summary":"Replace a chart annotation. Session required.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ts":{"type":"number"},"title":{"type":"string"},"body":{"type":"string"},"authorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"links":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"}},"required":["title","url"],"additionalProperties":false}},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"}},"required":["id","chainId","vaultAddress","ts","title","authorAddress","links"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ts":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":50000},"links":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","maxLength":120},"url":{"anyOf":[{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},{"type":"string","maxLength":2048}]}},"required":["title","url"]}},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"}},"required":["ts","title"]}}}},"security":[{"bearerAuth":["session"]}]},"delete":{"operationId":"deleteVaultAnnotation","summary":"Delete a chart annotation. Session required.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/accounts/{address}/vaults":{"get":{"operationId":"listAccountVaults","summary":"Vaults this account operates (curator or owner) — public and private.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/accounts/{address}/positions":{"get":{"operationId":"listAccountPositions","summary":"List an account's positions.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"chainId","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"pendingDepositAssets":{"type":"string"},"claimableDepositShares":{"type":"string"},"pendingRedeemShares":{"type":"string"},"claimableRedeemAssets":{"type":"string"},"recoverableRedeemSiloShares":{"type":"string"},"shares":{"type":"string"},"depositedTotal":{"type":"string"},"withdrawnTotal":{"type":"string"},"depositedValueUsd":{"type":["string","null"]},"costBasisAssets":{"type":"string"},"realizedPnlAssets":{"type":"string"},"firstDepositTs":{"type":"number"},"lastUpdatedBlock":{"type":"number"},"lastUpdatedTs":{"type":"number"}},"required":["chainId","vaultAddress","ownerAddress","pendingDepositAssets","claimableDepositShares","pendingRedeemShares","claimableRedeemAssets","recoverableRedeemSiloShares","shares","depositedTotal","withdrawnTotal","depositedValueUsd","costBasisAssets","realizedPnlAssets","lastUpdatedBlock","lastUpdatedTs"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/accounts/{address}/pnl/{chainId}/{vault}":{"get":{"operationId":"getPositionPnl","summary":"Historical cash-flow-neutral position PnL in underlying asset units. Archive reads; 502 if unavailable.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"points":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"number"},"block":{"type":"number"},"valueAssets":{"type":"string"},"netContributedAssets":{"type":"string"},"pnlAssets":{"type":"string"}},"required":["ts","block","valueAssets","netContributedAssets","pnlAssets"],"additionalProperties":false}}},"required":["chainId","vaultAddress","ownerAddress","points"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"502":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/accounts/{address}/activity":{"get":{"operationId":"listAccountActivity","summary":"List an account's activity across vaults.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"chainId","in":"query","required":false,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"categories","in":"query","required":false,"schema":{"type":"string","maxLength":1024,"description":"comma-separated activity categories"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"kind":{"type":"string"},"ts":{"type":"number"},"block":{"type":"number"},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},"actorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","chainId","vaultAddress","kind","ts","block","txHash","payload"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/accounts/{address}/portfolio":{"get":{"operationId":"getAccountPortfolio","summary":"The wallet's portfolio in one call: every indexed position plus the directory record of each vault behind it. Bounded (first 200 positions), no cursor.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"positions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"pendingDepositAssets":{"type":"string"},"claimableDepositShares":{"type":"string"},"pendingRedeemShares":{"type":"string"},"claimableRedeemAssets":{"type":"string"},"recoverableRedeemSiloShares":{"type":"string"},"shares":{"type":"string"},"depositedTotal":{"type":"string"},"withdrawnTotal":{"type":"string"},"depositedValueUsd":{"type":["string","null"]},"costBasisAssets":{"type":"string"},"realizedPnlAssets":{"type":"string"},"firstDepositTs":{"type":"number"},"lastUpdatedBlock":{"type":"number"},"lastUpdatedTs":{"type":"number"}},"required":["chainId","vaultAddress","ownerAddress","pendingDepositAssets","claimableDepositShares","pendingRedeemShares","claimableRedeemAssets","recoverableRedeemSiloShares","shares","depositedTotal","withdrawnTotal","depositedValueUsd","costBasisAssets","realizedPnlAssets","lastUpdatedBlock","lastUpdatedTs"],"additionalProperties":false}},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}}},"required":["address","positions","vaults"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/accounts/{address}/favorites":{"get":{"operationId":"listAccountFavorites","summary":"List the account's pins. Identity is the address parameter; no session.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"favorites":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"pinned":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["chainId","vault","pinned","createdAt"],"additionalProperties":false}}},"required":["favorites"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]},"put":{"operationId":"setAccountFavorite","summary":"Pin or unpin a vault. 403 when the address neither holds a position nor operates the vault.","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"favorites":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"pinned":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["chainId","vault","pinned","createdAt"],"additionalProperties":false}}},"required":["favorites"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"pinned":{"type":"boolean"}},"required":["chainId","vault"]}}}},"security":[{"bearerAuth":["session"]}]}},"/accounts/{address}/favorites/{chainId}/{vault}":{"delete":{"operationId":"deleteAccountFavorite","summary":"Remove the pin row entirely (back to the funded/verified default).","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"vault","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/events":{"get":{"operationId":"listEvents","summary":"The event outbox in ascending sequence order. `after` and page cursors are exclusive checkpoints; resume strictly after the supplied sequence.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"types","in":"query","required":false,"schema":{"type":"string","minLength":1,"description":"comma-separated event types"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":["string","null"]},"occurredAt":{"type":"number"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["seq","type","chainId","vaultAddress","occurredAt","data"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/stream":{"get":{"operationId":"streamEvents","summary":"Live event stream (WebSocket upgrade). Auth via ?ticket= — a single-use server ticket from POST /v0/stream/ticket, or an Origin-bound first-party browser grant from POST /v0/stream/browser-ticket. The durable key never rides the URL; browser grant filters cannot be widened by query parameters. ?since= resumes after a seq; ?live=1 starts at the current outbox head when since=0. Delivery is at-least-once — dedupe on seq. Readiness begins at hello, which carries the watermark across filtered rows.","parameters":[],"responses":{"101":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["stream"]}]}},"/stream/ticket":{"post":{"operationId":"createStreamTicket","summary":"Mint a short-lived (60s) single-use server-side stream ticket. The ticket — not the API key — opens GET /v0/stream. Browser Origin headers require a browser-scoped grant instead.","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ticket":{"type":"string"},"expiresAt":{"type":"number"}},"required":["ticket","expiresAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["stream"]}]}},"/stream/browser-ticket":{"post":{"operationId":"createBrowserStreamTicket","summary":"Server-only first-party unlimited stream key exchange. Issues a single-use Origin-bound browser grant carrying immutable wallet/current-vault hints; absent hints grant no events. Client IDs must be server-verified ingress identities. Socket query parameters cannot widen this scope.","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ticket":{"type":"string"},"expiresAt":{"type":"number"}},"required":["ticket","expiresAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"origin":{"type":"string","maxLength":2048},"clientId":{"type":"string","minLength":1,"maxLength":256},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"vault":{"type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"required":["chainId","address"],"additionalProperties":false}},"required":["origin","clientId"],"additionalProperties":false}}}},"security":[{"bearerAuth":["stream"]}]}},"/key/keys":{"post":{"operationId":"createKey","summary":"Create an independent API key in the calling key's organization. Secret returned once.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string"}},"required":["id","secret"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"scopes":{"minItems":1,"type":"array","items":{"type":"string","enum":["public","stream","manage"]}},"monthlyQuota":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["name"],"additionalProperties":false}}}},"security":[{"bearerAuth":["manage"]}]}},"/key/vaults/exists":{"post":{"operationId":"hasVaults","summary":"Check indexed vault availability, preserving reference order and duplicates.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"boolean"}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"refs":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"]}}},"required":["refs"],"additionalProperties":false}}}},"security":[{"bearerAuth":["public"]}]}},"/key/vaults":{"get":{"operationId":"listKeyVaults","summary":"Vaults attached to this key, ordered by chain ID and address. Keyset pagination; default 50, maximum 200 per page.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"keyId","in":"query","required":false,"schema":{"type":"string","maxLength":16,"pattern":"^[1-9]\\d*$"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"name":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["sync","async"]},"status":{"type":"string","enum":["open","paused","closed"]},"endOfFund":{"type":"boolean"},"vaultOpen":{"type":"boolean"},"assetAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"curatorAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"ownerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"feeRecipientAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"protocolAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"oracleAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"isSafeOracle":{"type":"boolean"},"silos":{"type":"object","properties":{"sync":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"deposit":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"redeem":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["sync","deposit","redeem"],"additionalProperties":false},"deployerAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"fees":{"type":"object","properties":{"entry":{"type":"number"},"exit":{"type":"number"},"management":{"type":"number"},"managementDays":{"type":"number"},"performance":{"type":"number"}},"required":["entry","exit","management","managementDays","performance"],"additionalProperties":false},"version":{"type":"number"},"salt":{"type":"string"},"deployCalldata":{"type":"string"},"ipfsHash":{"type":"string"},"createdAt":{"type":"number"},"displayName":{"type":"string"},"description":{"type":"string"},"curatorName":{"type":"string"},"curatorUrl":{"type":"string"},"verified":{"type":"boolean"},"visibility":{"type":"string","enum":["public","private"]},"showComposition":{"type":"boolean"},"compositionWallets":{"type":"array","items":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"category":{"type":"string"},"depositDisclaimer":{"type":"string"},"depositDisclaimerTrigger":{"type":"string","enum":["once","every"]},"depositDisclaimerUpdatedAt":{"type":"number"},"flags":{"type":"object","properties":{"transferEnabled":{"type":"boolean"},"depositEnabled":{"type":"boolean"},"depositWhitelistEnabled":{"type":"boolean"},"withdrawWhitelistEnabled":{"type":"boolean"}},"required":["transferEnabled","depositEnabled","depositWhitelistEnabled","withdrawWhitelistEnabled"],"additionalProperties":false},"totalAssets":{"type":"string"},"totalSupply":{"type":"string"},"grossTvl":{"type":"string"},"effectiveTvl":{"type":"string"},"grossPendingDeposits":{"type":"string"},"grossClaimableRedeems":{"type":"string"},"pendingRedeemShares":{"type":"string"},"unclaimedSharesFee":{"type":"string"},"pendingFeeShares":{"type":"string"},"lifetimeClaimedFees":{"type":"string"},"settledUnvaluedAssets":{"type":"string"},"pricePerShareWad":{"type":"string"},"effectivePricePerShareWad":{"type":"string"},"lastSettlementTs":{"type":"number"},"lastSettlementAssets":{"type":"string"},"lastValuationTs":{"type":"number"},"apy1d":{"type":["number","null"]},"apy7d":{"type":["number","null"]},"apy30d":{"type":["number","null"]},"apy1y":{"type":["number","null"]},"apyAllTime":{"type":["number","null"]},"risk":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vaultAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"provider":{"type":"string","const":"xerberus"},"score":{"type":"number"},"updatedAt":{"type":"number"}},"required":["chainId","vaultAddress","provider","score","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["chainId","address","name","symbol","decimals","kind","status","endOfFund","vaultOpen","assetAddress","curatorAddress","ownerAddress","feeRecipientAddress","protocolAddress","oracleAddress","isSafeOracle","silos","fees","version","createdAt","verified","visibility","showComposition","compositionWallets","depositDisclaimerTrigger","flags","totalAssets","totalSupply","grossTvl","effectiveTvl","grossPendingDeposits","grossClaimableRedeems","unclaimedSharesFee","pendingFeeShares","settledUnvaluedAssets","pricePerShareWad","effectivePricePerShareWad","apy30d","apyAllTime","risk"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]},"post":{"operationId":"attachKeyVault","summary":"Atomically attach 1–100 refs to this key or another active key in the same organization. Idempotent.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}}},"required":["keyId","vaults"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","maxLength":16,"pattern":"^[1-9]\\d*$"},"vaults":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"]}}},"required":["vaults"],"additionalProperties":false}}}},"security":[{"bearerAuth":["manage"]}]},"delete":{"operationId":"detachKeyVault","summary":"Atomically detach 1–100 refs from this key or another active key in the same organization. Idempotent.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}}},"required":["keyId","vaults"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"keyId":{"type":"string","maxLength":16,"pattern":"^[1-9]\\d*$"},"vaults":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"]}}},"required":["vaults"],"additionalProperties":false}}}},"security":[{"bearerAuth":["manage"]}]}},"/key/usage":{"get":{"operationId":"getKeyUsage","summary":"The calling key's current-cycle counters plus the org cycle they draw from. quota/remaining are null when uncapped.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"object","properties":{"used":{"type":"number"},"quota":{"type":["number","null"]},"remaining":{"type":["number","null"]}},"required":["used","quota","remaining"],"additionalProperties":false},"org":{"type":"object","properties":{"used":{"type":"number"},"quota":{"type":["number","null"]},"remaining":{"type":["number","null"]}},"required":["used","quota","remaining"],"additionalProperties":false}},"required":["key","org"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["public"]}]}},"/orgs":{"post":{"operationId":"createOrg","summary":"Create an organisation; the session account becomes its owner.","parameters":[{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","uuid","name","slug","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":120}},"required":["name"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}":{"patch":{"operationId":"updateOrg","summary":"Rename an org. Owner only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","uuid","name","slug","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/members":{"get":{"operationId":"listOrgMembers","summary":"Org members with account handles. Member only; over-cap legacy lists require operator inspection.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"addedAt":{"type":"number"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"}},"required":["accountId","role","addedAt"],"additionalProperties":false}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]},"post":{"operationId":"addOrgMember","summary":"Add a member by wallet or email. Existing wallet accounts join immediately; wallet invites activate after SIWE. Email invites remain pending until mailbox verification is available. Owner only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"member"},"member":{"type":"object","properties":{"accountId":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"addedAt":{"type":"number"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"}},"required":["accountId","role","addedAt"],"additionalProperties":false}},"required":["kind","member"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"invite"},"invite":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"invitedAt":{"type":"number"},"expiresAt":{"type":"number"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"}},"required":["id","role","invitedAt","expiresAt"],"additionalProperties":false}},"required":["kind","invite"],"additionalProperties":false}]}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","member"]}},"required":["role"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/members/{id}":{"delete":{"operationId":"removeOrgMember","summary":"Remove a member (account id, wallet, or email). Owner only; the last owner cannot be removed.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/invites":{"get":{"operationId":"listOrgInvites","summary":"Pending invites, bounded by the organization cap; expired rows omitted. Over-cap legacy lists require operator inspection.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"invitedAt":{"type":"number"},"expiresAt":{"type":"number"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"}},"required":["id","role","invitedAt","expiresAt"],"additionalProperties":false}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/invites/{inviteId}":{"delete":{"operationId":"cancelOrgInvite","summary":"Cancel a pending invite. Owner only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"inviteId","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/keys":{"get":{"operationId":"listOrgKeys","summary":"The org's api keys, masked — token hashes are never derivable. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"unlimited":{"type":"boolean"},"monthlyQuota":{"type":"number"},"requestsUsed":{"type":"number"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}},"createdAt":{"type":"number"},"lastUsedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["id","name","tokenPrefix","scopes","unlimited","requestsUsed","vaults","createdAt"],"additionalProperties":false}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]},"post":{"operationId":"createOrgKey","summary":"Mint an org api key. An active subscription is required; the full token is returned exactly once.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"unlimited":{"type":"boolean"},"monthlyQuota":{"type":"number"},"requestsUsed":{"type":"number"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}},"createdAt":{"type":"number"},"lastUsedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["id","name","tokenPrefix","scopes","unlimited","requestsUsed","vaults","createdAt"],"additionalProperties":false},"token":{"type":"string"}},"required":["key","token"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"scopes":{"maxItems":4,"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"vaults":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"]}},"monthlyQuota":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/keys/{keyId}":{"patch":{"operationId":"updateOrgKey","summary":"Replace a key's vault set, scopes, or monthly quota. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"unlimited":{"type":"boolean"},"monthlyQuota":{"type":"number"},"requestsUsed":{"type":"number"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}},"createdAt":{"type":"number"},"lastUsedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["id","name","tokenPrefix","scopes","unlimited","requestsUsed","vaults","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"vaults":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"]}},"scopes":{"maxItems":4,"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"monthlyQuota":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]},"delete":{"operationId":"revokeOrgKey","summary":"Soft revoke: the key stops authenticating immediately. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/keys/{keyId}/vaults":{"post":{"operationId":"attachOrgKeyVault","summary":"Attach one vault to an org key. 404 unknown vault, 409 already attached, 400 over quota or ambiguous chain. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"unlimited":{"type":"boolean"},"monthlyQuota":{"type":"number"},"requestsUsed":{"type":"number"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}},"createdAt":{"type":"number"},"lastUsedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["id","name","tokenPrefix","scopes","unlimited","requestsUsed","vaults","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["address"]}}}},"security":[{"bearerAuth":["session"]}]},"delete":{"operationId":"detachOrgKeyVault","summary":"Detach one vault from an org key. 404 when the vault is not attached. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["public","stream","manage","gov"]}},"unlimited":{"type":"boolean"},"monthlyQuota":{"type":"number"},"requestsUsed":{"type":"number"},"vaults":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}},"createdAt":{"type":"number"},"lastUsedAt":{"type":"number"},"revokedAt":{"type":"number"}},"required":["id","name","tokenPrefix","scopes","unlimited","requestsUsed","vaults","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["address"]}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/usage":{"get":{"operationId":"getOrgUsage","summary":"Per-key usage counters by route pattern plus org-level hourly buckets. `since` is a UTC YYYY-MM-DD; default is 30 days ago. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"keys":{"type":"array","items":{"type":"object","properties":{"apiKeyId":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"count":{"type":"number"},"endpoints":{"type":"array","items":{"type":"object","properties":{"endpoint":{"type":"string"},"count":{"type":"number"}},"required":["endpoint","count"],"additionalProperties":false}}},"required":["apiKeyId","name","tokenPrefix","count","endpoints"],"additionalProperties":false}},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"count":{"type":"number"}},"required":["day","count"],"additionalProperties":false}},"hours":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"number"},"count":{"type":"number"}},"required":["ts","count"],"additionalProperties":false}}},"required":["orgId","keys","days","hours"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/subscription":{"get":{"operationId":"getOrgSubscription","summary":"The org's subscription — a synthetic not_subscribed row when none exists. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"plan":{"type":"string","enum":["starter","custom"]},"monthlyPriceCents":{"type":"number"},"capacity":{"type":"object","properties":{"vaults":{"type":"number"},"callsPerMonth":{"type":"number"}},"required":["vaults","callsPerMonth"],"additionalProperties":false},"requestsUsed":{"type":"number"},"usageStartedAt":{"type":"number"},"renewsAt":{"type":"number"},"cancelAtPeriodEnd":{"type":"boolean"},"offerExpiresAt":{"type":"number"},"extraUsage":{"type":"object","properties":{"enabled":{"type":"boolean"},"creditBalanceCents":{"type":"number"},"pricePerMillionRequestsCents":{"type":"number"},"overageRequests":{"type":"number"},"chargedOverageCents":{"type":"number"}},"required":["enabled","creditBalanceCents","pricePerMillionRequestsCents","overageRequests","chargedOverageCents"],"additionalProperties":false}},"required":["orgId","status","plan","monthlyPriceCents","capacity","requestsUsed","extraUsage"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]},"post":{"operationId":"payOrgSubscription","summary":"Settle a verified on-chain USDC payment with a payer-signed claim bound to the account, organisation, configured chain, receipt and payment terms. Owner only. Verification unavailable returns 503 without recording the receipt; retry the same transaction.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"orgId":{"type":"string"},"kind":{"type":"string","enum":["subscription","quota_reset","credit_purchase"]},"plan":{"type":"string","enum":["starter","custom"]},"amountCents":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed"]},"txHash":{"type":"string"},"createdAt":{"type":"number"},"confirmedAt":{"type":"number"},"periodStart":{"type":"number"},"periodEnd":{"type":"number"}},"required":["id","uuid","orgId","kind","plan","amountCents","currency","status","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["subscription","quota_reset","credit_purchase"]},"plan":{"type":"string","enum":["starter","custom"]},"txHash":{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},"payer":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"signature":{"type":"string","maxLength":8194,"pattern":"^0x(?:[0-9a-fA-F]{2})+$","description":"EOA or ERC-1271 signature"},"amountCents":{"type":"number"}},"required":["plan","txHash","payer","signature"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/subscription/extra-usage":{"post":{"operationId":"setOrgExtraUsage","summary":"Turn pay-as-you-go overage on or off. Owner only; active subscription required.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"plan":{"type":"string","enum":["starter","custom"]},"monthlyPriceCents":{"type":"number"},"capacity":{"type":"object","properties":{"vaults":{"type":"number"},"callsPerMonth":{"type":"number"}},"required":["vaults","callsPerMonth"],"additionalProperties":false},"requestsUsed":{"type":"number"},"usageStartedAt":{"type":"number"},"renewsAt":{"type":"number"},"cancelAtPeriodEnd":{"type":"boolean"},"offerExpiresAt":{"type":"number"},"extraUsage":{"type":"object","properties":{"enabled":{"type":"boolean"},"creditBalanceCents":{"type":"number"},"pricePerMillionRequestsCents":{"type":"number"},"overageRequests":{"type":"number"},"chargedOverageCents":{"type":"number"}},"required":["enabled","creditBalanceCents","pricePerMillionRequestsCents","overageRequests","chargedOverageCents"],"additionalProperties":false}},"required":["orgId","status","plan","monthlyPriceCents","capacity","requestsUsed","extraUsage"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/subscription/cancel":{"post":{"operationId":"cancelOrgSubscription","summary":"Cancel the plan; access continues until the paid period ends. Owner only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"plan":{"type":"string","enum":["starter","custom"]},"monthlyPriceCents":{"type":"number"},"capacity":{"type":"object","properties":{"vaults":{"type":"number"},"callsPerMonth":{"type":"number"}},"required":["vaults","callsPerMonth"],"additionalProperties":false},"requestsUsed":{"type":"number"},"usageStartedAt":{"type":"number"},"renewsAt":{"type":"number"},"cancelAtPeriodEnd":{"type":"boolean"},"offerExpiresAt":{"type":"number"},"extraUsage":{"type":"object","properties":{"enabled":{"type":"boolean"},"creditBalanceCents":{"type":"number"},"pricePerMillionRequestsCents":{"type":"number"},"overageRequests":{"type":"number"},"chargedOverageCents":{"type":"number"}},"required":["enabled","creditBalanceCents","pricePerMillionRequestsCents","overageRequests","chargedOverageCents"],"additionalProperties":false}},"required":["orgId","status","plan","monthlyPriceCents","capacity","requestsUsed","extraUsage"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/payments":{"get":{"operationId":"listOrgPayments","summary":"The org's payments, newest first. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"orgId":{"type":"string"},"kind":{"type":"string","enum":["subscription","quota_reset","credit_purchase"]},"plan":{"type":"string","enum":["starter","custom"]},"amountCents":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed"]},"txHash":{"type":"string"},"createdAt":{"type":"number"},"confirmedAt":{"type":"number"},"periodStart":{"type":"number"},"periodEnd":{"type":"number"}},"required":["id","uuid","orgId","kind","plan","amountCents","currency","status","createdAt"],"additionalProperties":false}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{slug}/credits":{"get":{"operationId":"listOrgCredits","summary":"Prepaid extra-usage credit movements, newest first. Member only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orgId":{"type":"string"},"kind":{"type":"string","enum":["purchase","consumption","adjustment"]},"amountCents":{"type":"number"},"balanceAfterCents":{"type":"number"},"requestCount":{"type":"number"},"txHash":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","orgId","kind","amountCents","balanceAfterCents","requestCount","createdAt"],"additionalProperties":false}}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/orgs/{org}/invoices/{invoice}":{"get":{"operationId":"getOrgPaymentInvoice","summary":"PDF invoice for one payment. The org segment is the org public uuid (a slug still works), the invoice segment the payment public uuid. Member only.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"invoice","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success — binary body.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/gov/configuration":{"get":{"operationId":"govConfiguration","summary":"Read enabled chains and their underlying token catalog.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"name":{"type":"string"},"explorerUrl":{"type":"string"},"enabled":{"type":"boolean"},"creationEnabled":{"type":"boolean"}},"required":["id","key","name","explorerUrl","enabled","creationEnabled"],"additionalProperties":false}},"assets":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"logoUrl":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"latestPriceUsd":{"type":"number"},"latestPriceTs":{"type":"number"},"latestPriceSource":{"type":"string","enum":["defillama","coingecko"]}},"required":["chainId","address","symbol","name","decimals","tags"],"additionalProperties":false}}},"required":["chains","assets"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/runtime-settings":{"get":{"operationId":"govRuntimeSettings","summary":"Read effective non-secret runtime settings.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"patch":{"operationId":"govUpdateRuntimeSettings","summary":"Update audited non-secret runtime settings without restarting the API.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"apiLimits":{"type":"object","properties":{"requestsPerWindow":{"type":"integer","minimum":1,"maximum":1000000},"windowSeconds":{"type":"integer","minimum":1,"maximum":3600},"organizationsPerDayPerIp":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}]},"organizationMembersMaximum":{"type":"integer","minimum":1,"maximum":1000},"organizationInvitesMaximum":{"type":"integer","minimum":1,"maximum":1000},"organizationSeatsMaximum":{"type":"integer","minimum":1,"maximum":2000},"invitationsPerActorPerDay":{"type":"integer","minimum":1,"maximum":10000},"invitationsPerOrgPerDay":{"type":"integer","minimum":1,"maximum":10000},"bodyBytes":{"type":"integer","minimum":1024,"maximum":1048576},"paginationDefault":{"type":"integer","minimum":1,"maximum":200},"paginationMaximum":{"type":"integer","minimum":1,"maximum":200},"streamReplayCap":{"type":"integer","minimum":1,"maximum":10000},"streamPollMilliseconds":{"type":"integer","minimum":100,"maximum":60000},"streamTicketSeconds":{"type":"integer","minimum":1,"maximum":3600},"usageHourRetentionSeconds":{"type":"integer","minimum":86400,"maximum":31536000},"requestActivityRetentionSeconds":{"type":"integer","minimum":86400,"maximum":31536000}},"additionalProperties":false},"authentication":{"type":"object","properties":{"emailRegistrationEnabled":{"type":"boolean"},"sessionSeconds":{"type":"integer","minimum":60,"maximum":7776000},"maxSessionsPerAccount":{"type":"integer","minimum":1,"maximum":1000},"nonceSeconds":{"type":"integer","minimum":30,"maximum":3600},"throttleWindowSeconds":{"type":"integer","minimum":1,"maximum":86400},"noncePerAddress":{"type":"integer","minimum":1,"maximum":10000},"loginPerEmail":{"type":"integer","minimum":1,"maximum":10000},"registrationsPerKey":{"type":"integer","minimum":1,"maximum":10000},"registrationsPerVisitor":{"type":"integer","minimum":1,"maximum":10000}},"additionalProperties":false},"payments":{"type":"object","properties":{"chainId":{"type":"integer","minimum":1,"maximum":2147483647},"treasuryAddress":{"type":["string","null"]},"usdcAddress":{"type":["string","null"]},"maxReceiptAgeSeconds":{"type":"integer","minimum":60,"maximum":31536000},"maxFutureSeconds":{"type":"integer","minimum":0,"maximum":3600}},"additionalProperties":false}},"additionalProperties":false}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/chains":{"get":{"operationId":"govChains","summary":"List all registered chains and creation availability.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"key":{"type":"string"},"name":{"type":"string"},"explorerUrl":{"type":"string"},"enabled":{"type":"boolean"},"creationEnabled":{"type":"boolean"},"activationReason":{"type":["string","null"]}},"required":["id","key","name","explorerUrl","enabled","creationEnabled","activationReason"],"additionalProperties":false}}},"required":["chains"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"post":{"operationId":"govRegisterChain","summary":"Register a dormant chain.","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"key":{"type":"string"},"name":{"type":"string"},"explorerUrl":{"type":"string"},"enabled":{"type":"boolean"},"creationEnabled":{"type":"boolean"},"activationReason":{"type":["string","null"]}},"required":["id","key","name","explorerUrl","enabled","creationEnabled","activationReason"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1,"maxLength":120},"explorerUrl":{"type":"string","maxLength":2048}},"required":["id","key","name","explorerUrl"],"additionalProperties":false}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/chains/{id}":{"patch":{"operationId":"govSetChainCreation","summary":"Set Curate vault creation availability.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"key":{"type":"string"},"name":{"type":"string"},"explorerUrl":{"type":"string"},"enabled":{"type":"boolean"},"creationEnabled":{"type":"boolean"},"activationReason":{"type":["string","null"]}},"required":["id","key","name","explorerUrl","enabled","creationEnabled","activationReason"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"creationEnabled":{"type":"boolean"}},"required":["creationEnabled"],"additionalProperties":false}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/assets":{"post":{"operationId":"govAddAsset","summary":"Register an ERC-20 token or restore its catalog availability.","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"logoUrl":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"latestPriceUsd":{"type":"number"},"latestPriceTs":{"type":"number"},"latestPriceSource":{"type":"string","enum":["defillama","coingecko"]}},"required":["chainId","address","symbol","name","decimals","tags"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"502":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","address"],"additionalProperties":false}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/assets/{chainId}/{address}":{"delete":{"operationId":"govDeleteAsset","summary":"Remove a token from available catalogs while retaining indexed history.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/health":{"get":{"operationId":"govHealth","summary":"Operator health and counts.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/backport":{"get":{"operationId":"govBackportStatus","summary":"Read historical import provenance and status.","parameters":[{"name":"chainId","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"vault","in":"query","required":true,"schema":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"anyOf":[{"type":"object","properties":{"chainId":{"type":"number"},"vault":{"type":"string"},"sourceProtocol":{"type":"string"},"sourceChainId":{"type":"number"},"sourceAddress":{"type":"string"},"status":{"type":"string"},"pointsCount":{"type":"number"},"firstTs":{"type":["number","null"]},"lastTs":{"type":["number","null"]},"error":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["chainId","vault","sourceProtocol","sourceChainId","sourceAddress","status","pointsCount","firstTs","lastTs","error","updatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"post":{"operationId":"govRunBackport","summary":"Import a Lagoon vault's pre-migration NAV history.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"protocol":{"type":"string","const":"lagoon"},"pointsCount":{"type":"number"},"firstTs":{"type":["number","null"]},"lastTs":{"type":["number","null"]}},"required":["protocol","pointsCount","firstTs","lastTs"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"sourceChainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sourceAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","vault","sourceChainId","sourceAddress"]}}}},"security":[{"bearerAuth":["gov"]}]},"delete":{"operationId":"govResetBackport","summary":"Remove a vault's imported historical NAVs.","parameters":[{"name":"chainId","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"vault","in":"query","required":true,"schema":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/backport/description":{"post":{"operationId":"govImportBackportDescription","summary":"Import source vault editorial description independently of NAVs.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"protocol":{"type":"string","const":"lagoon"},"description":{"type":"string"},"usedShort":{"type":"boolean"}},"required":["protocol","description","usedShort"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"sourceChainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sourceAddress":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}},"required":["chainId","vault","sourceChainId","sourceAddress"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/kpis":{"get":{"operationId":"govKpis","summary":"Operator KPI dashboard.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs":{"get":{"operationId":"govOrgs","summary":"Operator organisation explorer.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{}},"nextCursor":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["items","total","offset","limit"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/vaults":{"get":{"operationId":"govVaults","summary":"Operator vault explorer.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"visibility","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{}},"nextCursor":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["items","total","offset","limit"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/vault":{"get":{"operationId":"govVault","summary":"One operator vault by query reference.","parameters":[{"name":"chainId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"address","in":"query","required":true,"schema":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/vaults/{chainId}/{address}":{"get":{"operationId":"govVaultByRef","summary":"One operator vault by path reference.","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string"}},{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/accounts":{"get":{"operationId":"govAccounts","summary":"Operator accounts explorer, latest authenticated visit first (unknown visits last).","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"accountType","in":"query","required":false,"schema":{"type":"string","enum":["all","email","wallet"]}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{}},"nextCursor":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["items","total","offset","limit"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/users":{"get":{"operationId":"govUsers","summary":"Compatibility alias for the accounts explorer.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"accountType","in":"query","required":false,"schema":{"type":"string","enum":["all","email","wallet"]}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{}},"nextCursor":{"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["items","total","offset","limit"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/accounts/{account}":{"get":{"operationId":"govAccount","summary":"One operator account profile.","parameters":[{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"delete":{"operationId":"govDeleteAccount","summary":"Delete an offchain account and sessions, preserving onchain history; memberships and owned associations are protected.","parameters":[{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/users/{account}":{"get":{"operationId":"govUser","summary":"Compatibility alias for an account profile.","parameters":[{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/accounts/{account}/favorites":{"put":{"operationId":"govSetAccountVaultArchived","summary":"Set an account's vault archive preference as an audited operator action.","parameters":[{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"archived":{"type":"boolean"}},"required":["chainId","vault","archived"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/verified":{"post":{"operationId":"govSetVerified","summary":"Set manual vault verification.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"verified":{"type":"boolean"}},"required":["ok","verified"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"verified":{"type":"boolean"}},"required":["chainId","vault","verified"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/metadata":{"post":{"operationId":"govUpdateMetadata","summary":"Apply governance metadata overrides.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chainId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"vault":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"visibility":{"type":"string","enum":["public","private"]},"forcePrivate":{"type":"boolean"},"displayName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}]},"curatorName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"curatorUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"governanceDisplayName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"governanceDescription":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}]},"governanceCuratorName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"governanceCuratorUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"required":["chainId","vault"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/billing/pricing":{"get":{"operationId":"govBillingPricing","summary":"Read operator billing pricing.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"starter":{"type":"object","properties":{"vaults":{"type":"number"},"requestsPerMonth":{"type":"number"},"monthlyPriceCents":{"type":"number"}},"required":["vaults","requestsPerMonth","monthlyPriceCents"],"additionalProperties":false},"extraVaultPriceCents":{"type":"number"},"extraMillionRequestsPriceCents":{"type":"number"},"quotaResetPriceCents":{"type":"number"},"maxVaults":{"type":"number"},"maxRequestsPerMonth":{"type":"number"}},"required":["currency","starter","extraVaultPriceCents","extraMillionRequestsPriceCents","quotaResetPriceCents","maxVaults","maxRequestsPerMonth"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"post":{"operationId":"govSetBillingPricing","summary":"Set operator billing pricing.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"currency":{"type":"string"},"starter":{"type":"object","properties":{"vaults":{"type":"number"},"requestsPerMonth":{"type":"number"},"monthlyPriceCents":{"type":"number"}},"required":["vaults","requestsPerMonth","monthlyPriceCents"],"additionalProperties":false},"extraVaultPriceCents":{"type":"number"},"extraMillionRequestsPriceCents":{"type":"number"},"quotaResetPriceCents":{"type":"number"},"maxVaults":{"type":"number"},"maxRequestsPerMonth":{"type":"number"}},"required":["currency","starter","extraVaultPriceCents","extraMillionRequestsPriceCents","quotaResetPriceCents","maxVaults","maxRequestsPerMonth"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"starterVaults":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"starterRequestsPerMonth":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"starterMonthlyPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"extraVaultPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"extraMillionRequestsPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"quotaResetPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxVaults":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxRequestsPerMonth":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["starterVaults","starterRequestsPerMonth","starterMonthlyPriceCents","extraVaultPriceCents","extraMillionRequestsPriceCents","quotaResetPriceCents","maxVaults","maxRequestsPerMonth"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{identifier}":{"get":{"operationId":"govOrg","summary":"Full operator org detail by slug.","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]},"delete":{"operationId":"govDeleteOrg","summary":"Permanently delete a customer organization by public UUID and its dependent data.","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{slug}/usage/reset":{"post":{"operationId":"govResetUsage","summary":"Reset one org usage cycle.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"plan":{"type":"string","enum":["starter","custom"]},"monthlyPriceCents":{"type":"number"},"capacity":{"type":"object","properties":{"vaults":{"type":"number"},"callsPerMonth":{"type":"number"}},"required":["vaults","callsPerMonth"],"additionalProperties":false},"requestsUsed":{"type":"number"},"usageStartedAt":{"type":"number"},"renewsAt":{"type":"number"},"cancelAtPeriodEnd":{"type":"boolean"},"offerExpiresAt":{"type":"number"},"extraUsage":{"type":"object","properties":{"enabled":{"type":"boolean"},"creditBalanceCents":{"type":"number"},"pricePerMillionRequestsCents":{"type":"number"},"overageRequests":{"type":"number"},"chargedOverageCents":{"type":"number"}},"required":["enabled","creditBalanceCents","pricePerMillionRequestsCents","overageRequests","chargedOverageCents"],"additionalProperties":false}},"required":["orgId","status","plan","monthlyPriceCents","capacity","requestsUsed","extraUsage"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{slug}/subscription":{"post":{"operationId":"govSetSubscription","summary":"Set one org subscription.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"plan":{"type":"string","enum":["starter","custom"]},"monthlyPriceCents":{"type":"number"},"capacity":{"type":"object","properties":{"vaults":{"type":"number"},"callsPerMonth":{"type":"number"}},"required":["vaults","callsPerMonth"],"additionalProperties":false},"requestsUsed":{"type":"number"},"usageStartedAt":{"type":"number"},"renewsAt":{"type":"number"},"cancelAtPeriodEnd":{"type":"boolean"},"offerExpiresAt":{"type":"number"},"extraUsage":{"type":"object","properties":{"enabled":{"type":"boolean"},"creditBalanceCents":{"type":"number"},"pricePerMillionRequestsCents":{"type":"number"},"overageRequests":{"type":"number"},"chargedOverageCents":{"type":"number"}},"required":["enabled","creditBalanceCents","pricePerMillionRequestsCents","overageRequests","chargedOverageCents"],"additionalProperties":false}},"required":["orgId","status","plan","monthlyPriceCents","capacity","requestsUsed","extraUsage"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["starter","custom"]},"vaultQuota":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"requestQuota":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"monthlyPriceCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["active","canceled","not_subscribed"]},"renewsAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["plan","vaultQuota","requestQuota","monthlyPriceCents","status"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{slug}/payments/record":{"post":{"operationId":"govRecordPayment","summary":"Record an off-chain payment.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"orgId":{"type":"string"},"kind":{"type":"string","enum":["subscription","quota_reset","credit_purchase"]},"plan":{"type":"string","enum":["starter","custom"]},"amountCents":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed"]},"txHash":{"type":"string"},"createdAt":{"type":"number"},"confirmedAt":{"type":"number"},"periodStart":{"type":"number"},"periodEnd":{"type":"number"}},"required":["id","uuid","orgId","kind","plan","amountCents","currency","status","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"renewsAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"txHash":{"anyOf":[{"type":"string","maxLength":66,"pattern":"^0x[0-9a-fA-F]{64}$","description":"transaction hash"},{"type":"string","const":""}]}}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{org}/invoices/{invoice}":{"get":{"operationId":"govInvoice","summary":"Download an operator invoice.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"invoice","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success — binary body.","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/orgs/{slug}/payments":{"post":{"operationId":"govConfirmPayment","summary":"Confirm a pending payment.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"orgId":{"type":"string"},"kind":{"type":"string","enum":["subscription","quota_reset","credit_purchase"]},"plan":{"type":"string","enum":["starter","custom"]},"amountCents":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed"]},"txHash":{"type":"string"},"createdAt":{"type":"number"},"confirmedAt":{"type":"number"},"periodStart":{"type":"number"},"periodEnd":{"type":"number"}},"required":["id","uuid","orgId","kind","plan","amountCents","currency","status","createdAt"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paymentId":{"anyOf":[{"type":"string","maxLength":16,"pattern":"^[1-9]\\d*$"},{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}]},"renewsAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["paymentId"]}}}},"security":[{"bearerAuth":["gov"]}]}},"/gov/audit":{"get":{"operationId":"govAudit","summary":"Operator audit log.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":4096}},{"name":"orgId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{}},"nextCursor":{"type":"string"}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["gov"]}]}},"/auth/siwe/nonce":{"post":{"operationId":"createSiweNonce","summary":"Create a SIWE nonce and the message for the wallet to sign.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"nonce":{"type":"string"},"message":{"type":"string"}},"required":["nonce","message"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"domain":{"type":"string","minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+(?::[0-9]{1,5})?$"},"chainId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["address","domain"]}}}},"security":[{"bearerAuth":["public"]}]}},"/auth/siwe/verify":{"post":{"operationId":"verifySiwe","summary":"Verify a signed SIWE message; returns the session token and account.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string"},"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","createdAt"],"additionalProperties":false}},"required":["token","account"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":8192},"signature":{"type":"string","maxLength":8194,"pattern":"^0x(?:[0-9a-fA-F]{2})+$","description":"EOA or ERC-1271 signature"}},"required":["message","signature"],"additionalProperties":false}}}},"security":[{"bearerAuth":["public"]}]}},"/auth/email/register":{"post":{"operationId":"registerEmail","summary":"Register an email account using a trusted visitor IP and durable visitor/key budgets.","parameters":[],"responses":{"201":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string"},"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","createdAt"],"additionalProperties":false}},"required":["token","account"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"conflict — the resource already exists","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"503":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":10,"maxLength":1024}},"required":["email","password"],"additionalProperties":false}}}},"security":[{"bearerAuth":["public"]}]}},"/auth/email/login":{"post":{"operationId":"loginEmail","summary":"Log in with email; returns the session token and account.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string"},"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","createdAt"],"additionalProperties":false}},"required":["token","account"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":10,"maxLength":1024}},"required":["email","password"],"additionalProperties":false}}}},"security":[{"bearerAuth":["public"]}]}},"/auth/whoami":{"get":{"operationId":"whoami","summary":"The session's account and org memberships. Session header required.","parameters":[{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","maxLength":42,"pattern":"^0x[0-9a-fA-F]{40}$","description":"EVM address"},"email":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","createdAt"],"additionalProperties":false},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]}},"required":["id","uuid","name","slug","role"],"additionalProperties":false}}},"required":["account","orgs"],"additionalProperties":false}}}},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/auth/logout":{"post":{"operationId":"logout","summary":"Revoke the presenting session.","parameters":[{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}},"/auth/logout-all":{"post":{"operationId":"logoutAll","summary":"Revoke every session of the session's account.","parameters":[{"name":"x-t3tris-session","in":"header","required":true,"schema":{"type":"string"},"description":"The ss_… session proving the write identity."}],"responses":{"204":{"description":"Success — no body."},"400":{"description":"bad_request — invalid input; the message names the offending field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"unauthorized — missing or invalid API key or session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"forbidden — insufficient scope, or the session cannot perform this write","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"rate_limited / quota_exceeded — slow down, or the billing-cycle quota is exhausted","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}},"security":[{"bearerAuth":["session"]}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}