Get a message
GET/api/accounts/:accountId/folders/:folder/messages/:uid
Returns the full, parsed message: all address fields, text and html bodies, the raw source, and attachments with their content as base64. When the message has no HTML part, html is generated from the text and textOnly is true. Calendar invitation attachments (ICS) also carry the parsed event.
Opening a message adds the \Seen flag, and its sender and recipients (other than the account's own addresses) are added to the user's collected addresses.
A UID that is not in the folder returns 404; a folder that cannot be opened returns 424.
Request
Responses
- 200
- 401
- 404
- 424
Full message.
The session has no mailbox access token. code is mail_token_missing; sign in again.
Request failed.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.