WebSocket streams require the Analyst tier or higher — the Free tier is REST-only. See Rate limits for per-tier WebSocket connection counts.
Connect
Connect towss://api.alterscope.org/v2/ws/<stream>. Browsers can’t set an Authorization header on a WebSocket, so the key is passed as a token query parameter; server-side clients can use either.
Streams
Cross-chain fragmentation (
/v2/ws/cross-chain/fragmentation/{assetId}) and the generic data multiplexer (/v2/ws/data/...) are also available.
Filtering
Each stream accepts query-string filters, set once at connect. For example, the risk-events stream filters ontypes, severity, subject_id, chain, and protocol; the yield stream filters on chain, protocol, asset, and min_apr. Try the filters interactively in the Playground.
The types filter takes exact event-type strings — see the Event catalog for every type the risk-events stream carries, when each fires, and a sample payload.
Message shape
Stream messages carry the samemeta._agentic freshness/quality signal as REST responses — see Response envelope. For recovery of events missed while disconnected, see Webhooks → replay.