Skip to content

EvidenceLens is a research tool — not medical advice. COI badges are computed from public records via fuzzy matching and may contain false positives. Always verify against primary sources.

REST + GraphQL API

The query gateway exposes three transports against the same data plane: a REST surface for simple integrations, a GraphQL endpoint for typed clients, and a WebSocket channel for streamed result waves. All three are read-only and require no authentication.

Base URL

https://gateway-evidencelens.<account>.workers.dev

REST

OpenAPI 3.1 specification: docs/api/openapi.yaml. Primary endpoints:

GraphQL

Endpoint POST /graphql. Schema lives at gateway/src/schema.graphql and is part of the contracts freeze — schema changes require an rfc-interface PR.

WebSocket

Endpoint wss://<gateway>/ws, subprotocol evidencelens.v1. Streams three result waves per query (5 + 10 + 35) so the UI can render the first hits at ~250 ms p95 while the long tail finishes. Full message catalog: docs/api/websocket.md.

Rate limits