Get an email with its body
GET /emails/{uuid}
/emails/{uuid}Gets one synchronized email as the user may see it: participants, date, subject and, with full access, the cleaned HTML and plain-text body and the list of attachments.
When to use: To read what an email says, after finding it with list_emails, or to know which attachments it has before downloading one.
When not to use: To find emails, use list_emails. To download an attachment, use get_email_attachment_content. To show the images embedded in body_html, use get_email_inline_images. This operation only reads; it cannot write, reply to or forward an email.
Side effects: Read-only. If the content of the email is still index_only, it is queued to be downloaded from Gmail and content_state is hydrating until the background job finishes: read it again after a moment.
Permissions: Requires a CRM seat and the crm.contacts_companies.read capability. Reading the emails of an opportunity needs the crm.opportunities.read capability instead (it is always granted together with crm.contacts_companies.read) and read access to the pipeline of the opportunity. Only emails held by a mailbox the user owns, or one whose owner shared it with the user, can be seen at all, and each email shows only what the sharing level of that mailbox allows. Being the owner or assignee of a record gives no extra access to its emails. Body, snippet and attachments need full_access to the email; below that they come as null.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the email. Get it from list_emails.
uuidQuery Parameters
UUID of the contact through which you reached the email (the one you listed it from). Send exactly one of contact, company and opportunity; an email that is not part of that record is a 404.
uuidUUID of the company through which you reached the email (the one you listed it from). Send exactly one of contact, company and opportunity; an email that is not part of that record is a 404.
uuidUUID of the opportunity through which you reached the email (the one you listed it from). Send exactly one of contact, company and opportunity; an email that is not part of that record is a 404.
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/emails/b3c1d8e4-52a7-4f19-8e06-7d9a2c4b1f35?contact=3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40&company=7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21&opportunity=5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "occurred_at": "2019-08-24T14:15:22Z", "direction": "incoming", "access": "metadata_only", "sender": { "address": "string", "name": "string", "role": "from", "kind": "member", "avatar_url": "string", "contact": "/entity/1" }, "participants": [ { "address": "string", "name": "string", "role": "from", "kind": "member", "avatar_url": "string", "contact": "/entity/1" } ], "sent_by": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "avatar_url": "string" }, "mailboxes": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "address": "string", "owner_name": "string" } ], "subject": "string", "snippet": "string", "attachment_count": 0, "content_state": "index_only", "can_share": true, "ai_summary": "string", "ai_summary_state": "none", "body_text": "string", "body_html": "string", "body_truncated": true, "attachments": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "filename": "string", "mime_type": "string", "size_bytes": 0, "disposition": "attachment", "embedded": true } ]}