Download an attachment or message
Downloads an attachment, or a whole message as .eml, by the `blobId` runEmailJmap returned, under the file name `name`. The blob must belong to that mailbox. `accept` sets the content type. The caller must be able to read the mailbox: admins read every mailbox, other members the mailboxes assigned to them. An API token needs the `account` capability.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Query Parameters
Content type to send the file with; application/octet-stream when absent
length <= 200Response Body
application/octet-stream
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/mail/jmap/download/string/string/string""string"Upload an attachment POST
Uploads a file into a mailbox, for an attachment of a message created with runEmailJmap: put the returned `blobId` in the message's body parts. Up to 25 MB; an upload no message uses is deleted after an hour. The caller must be able to read the mailbox: admins read every mailbox, other members the mailboxes assigned to them. An API token needs the `account` capability.
Follow changes to mailboxes GET
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.