Skip to content

WebSocket Events

All frames are JSON text frames. The top-level key identifies the message type.

For a full description of the protocol, lifecycle, and examples, see Push Notifications & Real-Time Updates.


MessageDirectionPurpose
subscribeClient → ServerSubscribe to state change notifications for an accountId
subscribedServer → ClientConfirms a successful subscription
stateChangeServer → ClientNotifies the client that one or more JMAP data types have a new state
errorServer → ClientIndicates a request could not be processed
CodeMeaning
forbiddenThe authenticated user cannot access the requested accountId
invalidArgumentsThe message could not be parsed or a required field is missing