Easymailing
Emails

Get who an email is shared with

GET /emails/{uuid}/access_grants

GET/emails/{uuid}/access_grants

Shows the people and teams the owner of the mailbox has given full read access to, either to this one email or to all the emails of the record it was reached through, and the addresses or domains of the record not yet covered by that second grant.

When to use: Before changing the sharing with set_email_access_grants, or to answer who else can read this email.

When not to use: It does not show who can read the mailbox as a whole or who can send from it. To change the sharing, use set_email_access_grants. To pick people or teams to share with, use list_email_access_grantees. Only the owner of a mailbox that holds the email can see or change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist.

Permissions: Requires a CRM seat and the crm.contacts_companies.read capability. Only the owner of a mailbox that holds the email can see or change who it is shared with; for anyone else it is a 404, exactly as if the email did not exist. 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.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the email. Get it from list_emails.

Formatuuid

Query Parameters

contact?string

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.

Formatuuid
company?string

UUID 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.

Formatuuid
opportunity?string

UUID 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.

Formatuuid

Response 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/access_grants?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",  "mailbox": "ba8efdb9-b4c4-43cf-965e-5da7040913a7",  "record_type": "contact",  "message": {    "users": [      {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "name": "string",        "email": "string",        "avatar_url": "string",        "can_send": true,        "read_full": true      }    ],    "teams": [      {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "name": "string",        "member_count": 0,        "can_send": true,        "read_full": true      }    ]  },  "record": {    "users": [      {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "name": "string",        "email": "string",        "avatar_url": "string",        "can_send": true,        "read_full": true      }    ],    "teams": [      {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "name": "string",        "member_count": 0,        "can_send": true,        "read_full": true      }    ],    "value_kind": "address",    "not_included": [      "string"    ]  }}