Reference
API
REST and WebSocket endpoints for the OPCODE network. Documented ahead of implementation — endpoints land in Phase 3.
Base URL
https://api.opcode.auditAuth via wallet-signed session token ($NOP not required to read). Rate limited per key.
REST
GET
/v1/auditsList verified reports. Supports ?severity, ?vendor, ?cursor pagination.
GET
/v1/audits/:idFetch a single report with findings, disassembly, and review state.
POST
/v1/submissionsSubmit a binary (multipart). Returns a queue position. Auth required.
GET
/v1/bountiesOpen bounties by pool size and request count.
POST
/v1/auditsPublish a report. Auditor role only.
POST
/v1/peer-reviewsVote up/down on a report. One vote per auditor.
GET
/v1/treasuryTreasury balance, burn total, and recent on-chain events.
WebSocket
WS
/v1/stream/auditsLive feed of newly verified reports.
WS
/v1/stream/treasuryBuyback / burn / payout events as they settle.
These endpoints are illustrative. The live API is wired to Supabase + Privy auth in Phase 3.