API Overview
The AGG API is a contract-first REST API for the prediction market aggregator. It handles auth (SIWE), encrypted venue key storage, trading (validate/execute, balance, holdings, splits), and normalized markets, events, and categories.Base URL
Authentication
Authentication is tiered. Each endpoint requires a specific tier; the server enforces it.| Tier | Headers | Typical use |
|---|---|---|
| none | — | Public health check (GET /hello) |
| admin | x-admin-key | Internal admin dashboard |
| app | x-app-id | Server-side or unauthenticated client calls (e.g. markets, orderbooks) |
| user | x-app-id + Authorization: Bearer <jwt> | User-specific actions (venue keys, trading) after SIWE sign-in |