Synoptic · AsyncAPI Specification
Synoptic WebSocket API
Version 1.0.0
WebSocket API for subscribing to stream posts, publishing stream posts, publishing source posts with JSON Schema validation, publishing labelled time series points, and subscribing to time series updates. Authenticate via x-api-key header during the WebSocket upgrade handshake. The latest value of every dimension of a time series is also served over HTTP at GET /v1/time-series/{seriesId}/latest (x-api-key header; query parameters are label filters, comma-separated for several values).
Channels
addStreamPost
onStreamPost
Subscribe to stream posts. Open with optional `streamIds` and `lastPosts` query parameters.
onTimeSeries
Subscribe to time series updates. Send subscribe/unsubscribe actions; each subscribe is answered with a snapshot of the latest value per matching dimension, followed by updates as new points arrive.
sourcePost
timeSeries
Publish time series points. The API key must list the series in canPublishTimeSeries.
Messages
AddStreamPostMessage
Add Stream Post Request
Publish a post to a stream
IncomingMessage
Source Post Publish Request
Send a data payload to a source for validation and persistence
InfoMessage
Info Message
Informational message or validation error
KeepAliveMessage
Keep Alive
Periodic keep-alive frame
StreamPostCreatedMessage
Stream Post Created
A stream post delivered to the publisher or subscriber
SubscriptionAckMessage
Subscription Acknowledgement
Acknowledges a successful on-stream-post subscription
TimeSeriesAck
Time Series Write Result
Whether the points were stored, and how many. Validation errors name the offending field, e.g. `points[3].labels: ...`.
TimeSeriesError
Time Series Subscription Error
A rejected request (bad message, unknown action, access denied, unknown series, too many subscriptions). The connection stays open unless the API key is invalid, which closes it with code 4001.
TimeSeriesPointsMessage
Time Series Points
Write up to 1000 points to a time series. `time` is an RFC 3339 string or unix milliseconds. Message-level `labels` apply to every point and a point's own `labels` override them per key; each distinct label set is a dimension of the series. A point at an existing time and label set replaces its value.
TimeSeriesPointsUpdate
Time Series Update
Points that became the newest value of their dimension, filtered by the subscription's labels. An update may repeat a point already in the snapshot.
TimeSeriesSnapshotMessage
Time Series Snapshot
The latest point of every dimension matching the filter, sent in reply to subscribe before any update
TimeSeriesSubscribe
Subscribe to a Time Series
Subscribe to one series (at most 20 per connection). Each `labels` value is a string or an array of strings; keys are ANDed, values within a key are ORed. Re-subscribing replaces the filter and sends a fresh snapshot.
TimeSeriesUnsubscribe
Unsubscribe from a Time Series
Stop receiving updates for a series
TimeSeriesUnsubscribed
Time Series Unsubscribed
Confirms an unsubscribe
WsResponse
Validation Result
Response indicating whether the published data passed schema validation
Servers
wss
ws-api
AsyncAPI Specification
Work with this as data
Every AsyncAPI spec here is available over the APIs.io API and to AI agents over MCP.