Prediction Router
API Reference

Platforms & Health

Discover platforms and their capabilities

A capability registry and a liveness check. /v1/platforms is metadata about the platforms — not aggregated market data — so it's the one place a single response spans every platform.

All endpoints require Authorization: Bearer <key>.

Base URL: https://prediction-router-api.kalashshah47.workers.dev


GET /v1/platforms

List every supported platform and which resources it exposes. The canRead* flags are derived from the live adapter implementations, so they always reflect what each platform actually supports.

Example

curl "https://prediction-router-api.kalashshah47.workers.dev/v1/platforms" \
  -H "Authorization: Bearer pr_..."

Response

{
  "platforms": [
    {
      "id": "kalshi",
      "name": "Kalshi",
      "currency": "USD",
      "capabilities": {
        "canTrade": true,
        "canReadBalance": true,
        "canReadHistory": true,
        "canReadEvents": true,
        "canReadSeries": true,
        "canReadTrades": true,
        "canReadUsers": false,
        "canReadSports": true
      }
    }
  ]
}

GET /v1/health

Liveness check. Returns the service status and version.

Response

{ "status": "ok", "version": "0.1.0" }