404, and so does an id that isn’t an email_… id, or an email of another account.
The email object
The conversation it belongs to. See Replies and threads.
Each
{ id, name, extension, size, mime, cid, inline }. inline images are referenced from the HTML by cid. Download with the attachment endpoint.Every header as
{ name, value }. Read Message-ID, In-Reply-To and References here. See Replies and threads.api when the email was sent through this API (including drafts sent through the API), otherwise external.true when the mailbox’s owner sent the email from their own email app (Gmail, Outlook…): it’s in Sent and wasn’t sent through this API. Emails you send through the API, and received emails, are false. Use it to record replies your users write outside your app.For an email sent through this API:
{ api_key_id, api_key_name, metadata }, the key it was sent with and the metadata given when sending (or null). For other emails, null. Together with is_echo, it tells who sent an email in Sent: your app (your key and metadata), another app (another key), or the user in their own email app (is_echo: true).Example
Emails are a synced copy. When the user changes something in Gmail or their email app directly, the engine updates the email and sends a webhook (
email.update, or email.delete when it’s deleted for good).