@sisera/api) exposes a RESTful JSON API prefixed under /v1/*.
- Production Base URL:
https://sisera.xyz/api/platform(proxied via Next.js) or direct API gateway port (:4000in local dev,:4200in production). - Content-Type:
application/json; charset=utf-8 - Monetary Precision: All monetary quantities, prices, and P&L values across domain boundaries are serialized as explicit decimal strings (or validated finite numbers in input schemas) to prevent IEEE-754 floating-point drift.
Authentication & RBAC Permissions
Write endpoints and account-specific read endpoints require an authenticated Privy Bearer Token passed either via theAuthorization header or an HttpOnly session cookie:
Role-Based Permission Scopes
Wallet Ownership Verification (
requireOwnedWallet): Endpoints that bind a Solana or EVM address to an action (such as publishing a marketplace strategy, checking out a license, or launching a token) verify server-side that the authenticated Privy principal actually owns the submitted wallet address.Standard Response & Error Envelopes
Successful responses return a top-level{ "data": ... } object:
{ "error": "...", "message": "..." } payload: