Exit to App
Developers

API Reference

Exhaustive documentation of all production API endpoints, request schemas, and responses.

Authentication Endpoints#

Method & RouteAuth RequiredRequest BodyResponse Shape
GET /api/auth/noncePublicNone{ nonce: string }
POST /api/auth/verifyPublic{ message: string, signature: string }{ user: UserProfile, ok: true }
GET /api/auth/sessionCookieNone{ authenticated: boolean, user?: UserProfile }
POST /api/auth/logoutCookieNone{ ok: true }

Treasury & Execution Endpoints#

Method & RouteAuth RequiredRequest BodyResponse Shape
GET /api/treasuryAuthenticatedNone{ treasury, assets, mandates, telemetry }
POST /api/treasury/controlsAuthenticated{ paused: boolean, mandateId?: string }{ updated: boolean, paused: boolean }
POST /api/fx/quoteAuthenticated{ sellToken, buyToken, amount, takerAddress }{ quote: FirmQuote, policyResult: PolicyEvaluationResult }
GET /api/pricing/stitchPublic?pair=cNGN-USDT{ bidRay, askRay, spreadBps, inventorySkew }
GET /api/invoices/[id]PublicNone{ invoice: InvoiceRecord, qrSvg: string }
POST /api/buyAuthenticated{ capabilityId, amountUsd }{ transactionReceipt, serviceResult }
GET /api/identity/agent.jsonPublicNoneERC-8004 Registration Document JSON