cloadyDocs
API ReferenceEndpointsWorkspaces

Follow changes to mailboxes

Returns one JMAP StateChange with the current state of every mailbox the caller may read: every mailbox for admins, the ones assigned to them for other members. Sending `Accept: text/event-stream` instead follows them live, sending a StateChange whenever new mail arrives or a message or folder changes, which never completes on its own: then fetch the changes with runEmailJmap's /changes methods. An API token needs the `account` capability.

GET
/api/workspaces/{workspaceSlug}/mail/jmap/eventsource
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/mail/jmap/eventsource"
{  "@type": "StateChange",  "changed": {    "property1": {      "property1": "string",      "property2": "string"    },    "property2": {      "property1": "string",      "property2": "string"    }  }}