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 connection’s credentials were not accepted
accountNotFoundThe requested accountId does not exist or the authenticated user cannot access it
invalidArgumentsThe message could not be parsed or a required field is missing
tooManySubscriptionsThe types list is longer than the server allows in one subscribe
serverFailThe request could not be processed; the client may retry