Stream only User-scoped folder invalidations so Mail badges can refresh after durable cache changes. The initial event and lag recovery both ask the client to reread snapshots; message contents never enter this stream (#771).
GET
/api/v1/mail/events
const url = 'https://example.com/api/v1/mail/events';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/mail/events \ --header 'Authorization: Bearer <token>'Route: /api/v1/mail/events. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”User-scoped Mail folder invalidation stream
Media typetext/event-stream
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}