{"openapi":"3.1.0","info":{"title":"RocX Reputation API","version":"0.1.0","description":"Permission-scoped RocX testnet contribution assessments. A contribution score is not KYC, proof of unique humanity or creditworthiness. Keys and usage live in a separate database."},"servers":[{"url":"/"}],"security":[{"workspaceKey":[]}],"components":{"securitySchemes":{"workspaceKey":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"Reputation":{"type":"object","required":["address","dataset","chainScope","status","score","scale","tier","policyVersion","assessmentDay","assessedAt","validUntil","receiptId","identityScope"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"dataset":{"const":"rocx-testnet"},"chainScope":{"type":"array","items":{"const":"eip155:84532"}},"status":{"enum":["READY","STALE","NOT_ASSESSED","NO_RECORD","NOT_DISCLOSED"]},"score":{"type":["string","null"],"description":"Immutable daily assessment decimal. Null means unknown or withheld, not zero. Use effective only while its separate proof is READY and unexpired."},"scoreBasis":{"const":"DAILY_ASSESSMENT","description":"Existing score, tier and domains remain daily assessment fields for compatibility."},"effective":{"type":"object","required":["status","score","tier","observedAt","validUntil"],"description":"Current finalized-deposit cap on the daily score. PENDING has null values. Check its own validUntil; missing evidence is never zero.","properties":{"status":{"enum":["READY","PENDING"]},"score":{"type":["string","null"]},"tier":{"enum":["S","A","B","C","D",null]},"observedAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"reason":{"enum":["POSITION_PENDING"]},"domains":{"type":"object","properties":{"defi":{"type":"string"},"poa":{"type":"string"},"persistence":{"type":"string"}}}}},"scale":{"const":1000},"tier":{"enum":["S","A","B","C","D",null]},"policyVersion":{"type":"string"},"assessmentDay":{"type":["string","null"]},"assessedAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"receiptId":{"type":["string","null"],"description":"Tenant-scoped opaque correlation ID; not an on-chain attestation or issuer signature."},"identityScope":{"enum":["ROCX_ACCOUNT","WALLET",null]},"reason":{"enum":["IDENTITY_CHANGED","ASSESSMENT_PENDING","EXPIRED"]},"domains":{"type":"object","required":["defi","poa","persistence"],"properties":{"defi":{"type":"string"},"poa":{"type":"string"},"persistence":{"type":"string"}}}}},"Lookup":{"type":"object","required":["requestId","data","usage"],"properties":{"requestId":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Reputation"}},"usage":{"type":"object","properties":{"requestedUnits":{"type":"integer"},"billableUnits":{"type":"integer"}}}}},"Policy":{"type":"object","properties":{"version":{"type":"string"},"dataset":{"const":"rocx-testnet"},"publicationEnabled":{"type":"boolean"},"scoreBasis":{"const":"DAILY_ASSESSMENT","description":"Existing score, tier and domains remain daily assessment fields for compatibility."},"effective":{"type":"object","required":["status","score","tier","observedAt","validUntil"],"description":"Current finalized-deposit cap on the daily score. PENDING has null values. Check its own validUntil; missing evidence is never zero.","properties":{"status":{"enum":["READY","PENDING"]},"score":{"type":["string","null"]},"tier":{"enum":["S","A","B","C","D",null]},"observedAt":{"type":["string","null"],"format":"date-time"},"validUntil":{"type":["string","null"],"format":"date-time"},"reason":{"enum":["POSITION_PENDING"]},"domains":{"type":"object","properties":{"defi":{"type":"string"},"poa":{"type":"string"},"persistence":{"type":"string"}}}}},"scale":{"const":1000},"cadence":{"type":"string"},"billing":{"type":"string"},"disclosure":{"type":"string"}}},"Workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"manager":{"type":"boolean"},"scopes":{"type":"array","items":{"enum":["reputation:summary","reputation:details"]}},"monthlyLimit":{"type":"integer"},"plan":{"type":"string"}}},"Keys":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"prefix":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"enum":["reputation:summary","reputation:details"]}},"manager":{"type":"integer"},"created_at":{"type":"integer"},"expires_at":{"type":["integer","null"]},"revoked_at":{"type":["integer","null"]}}}}}},"CreatedKey":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string","description":"Shown once. Only its hash is stored."},"prefix":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"enum":["reputation:summary","reputation:details"]}},"createdAt":{"type":"integer"},"expiresAt":{"type":["integer","null"]}}},"Revoked":{"type":"object","properties":{"revoked":{"const":true}}},"Usage":{"type":"object","properties":{"month":{"type":"string"},"requested":{"type":"integer"},"billable":{"type":"integer"},"organization":{"type":"object"},"chartComplete":{"const":true},"days":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"requested":{"type":"integer"},"billable":{"type":"integer"}}}}}},"Challenge":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string"},"expiresAt":{"type":"integer"},"shareUntil":{"type":"integer"},"organization":{"type":"object"}}},"Consent":{"type":"object","properties":{"status":{"enum":["SHARED","REVOKED"]},"organizationId":{"type":"string"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"scope":{"enum":["reputation:summary","reputation:details"]},"expiresAt":{"type":["integer","null"]}}}}},"paths":{"/v1/billing":{"get":{"summary":"Manager: configured plans, subscription and last 12 confirmed payments","responses":{"200":{"description":"Fixed monthly hard-cap billing; enabled=false when unconfigured"},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout":{"post":{"summary":"Manager: durable idempotent Hosted Checkout; no entitlement from redirect","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["planId","requestId"],"properties":{"planId":{"type":"string"},"requestId":{"type":"string","pattern":"^[-\\w]{16,80}$"}}}}}},"responses":{"200":{"description":"Validated Stripe Checkout URL"},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/portal":{"post":{"summary":"Manager: payment method and cancellation on Stripe","responses":{"200":{"description":"Validated Customer Portal URL"},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhooks/stripe":{"post":{"security":[],"summary":"Raw Stripe body; 300-second verified signature; canonical provider reconciliation","parameters":[{"name":"Stripe-Signature","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Received or deduplicated"},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/mcp/connections":{"get":{"summary":"Manager: list workspace OAuth grants; no token material","responses":{"200":{"description":"Hosted availability, resource URL and last 100 grants"},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/mcp/connections/{id}":{"delete":{"summary":"Manager: revoke this workspace OAuth token family","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revoked"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/mcp/inspect":{"post":{"summary":"Manager: inspect pending client-specific authorization request","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"Client, exact callback, resource, scopes and expiry"},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/mcp/approve":{"post":{"summary":"Manager: explicit allow/deny; single-use authorization request","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","allow"],"properties":{"id":{"type":"string","format":"uuid"},"allow":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Previously registered callback with code or access_denied"},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"security":[],"summary":"Liveness only; does not establish source readiness","responses":{"200":{"description":"Gateway process is alive"}}}},"/v1/reputation/{address}":{"get":{"summary":"Read one wallet (one-item Lookup envelope)","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"name":"details","in":"query","schema":{"type":"boolean","default":false}},{"name":"X-Request-Id","in":"header","required":false,"description":"16–80 characters; reuse with identical input for transport retries within 10 minutes.","schema":{"type":"string","pattern":"^[-\\w]{16,80}$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lookup"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reputation/batch":{"post":{"summary":"Ordered lookup of up to 50 distinct addresses","parameters":[{"name":"X-Request-Id","in":"header","required":false,"description":"16–80 characters; reuse with identical input for transport retries within 10 minutes.","schema":{"type":"string","pattern":"^[-\\w]{16,80}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["addresses"],"properties":{"addresses":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"details":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lookup"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/policy":{"get":{"summary":"Read interpretation and version","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspace":{"get":{"summary":"Read this key’s workspace","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/usage":{"get":{"summary":"Management key only; pre-aggregated monthly and 30 UTC days","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys":{"get":{"summary":"Management key only; list key metadata without hashes or secrets","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Keys"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Management key only; create one scoped machine key","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","scopes","requestId"],"properties":{"name":{"type":"string","minLength":1,"maxLength":60},"scopes":{"type":"array","minItems":1,"maxItems":2,"items":{"enum":["reputation:summary","reputation:details"]}},"requestId":{"type":"string","minLength":16,"maxLength":80},"expiresAt":{"type":"integer","description":"Epoch milliseconds, 1 minute–366 days from creation"}}}}}},"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedKey"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys/{id}":{"delete":{"summary":"Revoke a machine key in this workspace","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revoked"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/public/workspaces/{id}":{"get":{"security":[],"summary":"Public workspace name for owner consent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/public/consent/challenge":{"post":{"security":[],"summary":"Issue a five-minute, tenant-bound EOA sharing nonce","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["organizationId","address","scope","purpose"],"properties":{"organizationId":{"type":"string","format":"uuid"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"scope":{"enum":["reputation:summary","reputation:details"]},"purpose":{"enum":["GRANT","REVOKE"]}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/public/consent/confirm":{"post":{"security":[],"summary":"Verify owner signature; reject replay or superseded consent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","signature"],"properties":{"id":{"type":"string","format":"uuid"},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$"}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Consent"}}}},"400":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Typed API error. Retry-After is supplied for transient failure or limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}