Live updates
Server-sent events when a mailbox changes, and keeping the connection alive.
| Method | Path | Summary |
|---|---|---|
| GET | /api/events | Live mailbox changes (server-sent events) |
| GET | /api/push | Keep the live connection alive |
#Live mailbox changes (server-sent events)
GET
/api/eventsServer-Sent Events: "changed" when the INBOX changes (IMAP IDLE on a connection of its own), so new mail shows without polling.
- Address
https://<your-org>.brambleit.cloud/mail/api/events- Requires
- Signed-in browser session (the
sso_session/session_idcookies from Bramble sign-in).
Licence: Mail.
Query parameters
| Name | Type | Description |
|---|---|---|
mb | any |
Response
An empty body.
Example request
JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/mail/api/events', {
method: 'GET',
credentials: 'include',
});
const data = await res.json();#Keep the live connection alive
GET
/api/push- Address
https://<your-org>.brambleit.cloud/mail/api/push- Requires
- Signed-in browser session (the
sso_session/session_idcookies from Bramble sign-in).
Licence: Mail.
Query parameters
| Name | Type | Description |
|---|---|---|
mb | any | |
ping | number |
Response
An empty body.
Example request
JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/mail/api/push', {
method: 'GET',
credentials: 'include',
});
const data = await res.json();Was this page helpful?
Thanks for your feedback.