Skip to main content
The API is documented from the OpenAPI schema in this repository:

OpenAPI schema

View the source schema used to generate this API reference.

Endpoint groups

  • System: / and /health
  • Companies: /v1/companies
  • Prediction Markets: /v1/prediction_markets/events, /v1/prediction_markets/events/:id, /v1/prediction_markets/markets, /v1/prediction_markets/markets/:id, /v1/prediction_markets/similar_events, /v1/prediction_markets/trade_feed
  • Realtime: websocket subscriptions for event, market, and trade updates on the API service websocket path

Auth requirements

  • Authorization: Bearer <token> is required for all /v1/* endpoints.
  • / and /health are public.

Response envelope

Most list endpoints return:
filters echoes normalized query parameters used by the backend (including defaults).

Common status codes

  • 200 success
  • 400 validation error
  • 401 missing/invalid bearer token (on /v1/*)
  • 500 unexpected server error

Caching

Successful /v1/* GET requests return:

Realtime updates

Use the websocket stream documented in Realtime Stream when you need push updates for:
  • event lifecycle changes: created, updated, closed
  • market lifecycle changes: created, updated, closed
  • standardized trade rebroadcasts from the live ingestion stream