---
title: "EmailMailboxRelations.get"
method: GET
path: "/entities/EmailMailboxRelations/{id}"
tags: ["Email"]
---

# EmailMailboxRelations.get

`GET /entities/EmailMailboxRelations/{id}`

## Request

- Base URL: `https://us-east.api.coevera.com/api/v100/rest/spaces/your_space_id`
- URL: `https://us-east.api.coevera.com/api/v100/rest/spaces/your_space_id/entities/EmailMailboxRelations/{id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/coevera/apis/coevera-crm-api/docs/entities/EmailMailboxRelations/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the EmailMailboxRelation record with the given id.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `expand` string

## Response `200`

The EmailMailboxRelation record.

- object
  - `success` boolean: True when the request succeeded; false on error.
  - `data` EmailMailboxRelation: Link between an email and a mailbox the email belongs to.
    - `is_delete_protected` boolean, required: True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
    - `id` string, uuid, required: Unique identifier of entity.
    - `is_deleted` boolean: Specifies if the entity is considered deleted.
    - `modified` string, date-time: Last modification time.
    - `created` string, date-time: Creation time.
    - `email` string, uri, required: Email that belongs to the mailbox. Related Email record, returned as the URI of the record. With the 'expand' parameter the full record is returned instead; see 'Email' for its fields.
    - `direction` 1 | 2: Direction of the email relative to this mailbox: outgoing for the mailbox that sent it, incoming for a mailbox that received it. The same email can therefore be outgoing in one mailbox and incoming in another. Defaults to the email direction when not set. Integer enum value: 1 - OutgoingEmail, 2 - IncomingEmail
    - `email_created` string, date-time: Creation time.
    - `email_id` string, uuid, required: Id of the email that belongs to the mailbox.
    - `email_is_deleted` boolean: True when the related email has been deleted from this mailbox; such links are hidden from the inbox view.
    - `error_code` integer: Error code for the email in this mailbox; 0 means the email was processed without error.
    - `event_types` string: Tracking events recorded so far for the related email (opens, clicks, replies, bounces, unsubscribes); several can be combined. Read-only; kept in sync with the email's EmailEvent records.
    - `is_draft` boolean: Copy of the related email's draft flag; true when the email is an unsent draft, which shows it in the mailbox Drafts.
    - `is_scheduled` boolean: Whether the email is scheduled to be sent at a future time and has not been sent yet.
    - `label_ids` object: Ids of the labels applied to this conversation in this mailbox. Read-only copy of the EmailLabelRelation records; manage labels via that entity rather than writing here.
    - `mailbox_id` string, uuid, required: Id of the mailbox (connected email account) the email belongs to.
    - `sent_or_scheduled_at` string, date-time: Time when the email was sent, or its scheduled send time if it has not been sent yet.
    - `thread_or_id` string, uuid: Id of the email thread, or the id of the email itself when it does not belong to a thread.
    - `type` 1 | 2: Copy of the related email's type: an individual email or part of a mass email. Read-only; kept in sync with the email. Integer enum value: 1 - Standard, 2 - Mass

## Other responses

- `400`: Bad request: a bad or unknown parameter (codes 117, 118), a missing permission (code 50), conflicting data (code 2002) or any other API error. The REST API answers 400 where others answer 403 or 409; check `code`.
- `401`: Not authenticated: missing or wrong credentials, a credential of another space, or an expired token (code 401, ERROR_UNAUTHORIZED).
- `404`: No such record or entity (code 143 ERROR_NO_ENTITY, or 2006 ERROR_UNKNOWN_TYPE).
- `429`: Too many requests (code 182). Wait for the seconds in Retry-After, then retry.
- `500`: Unexpected server error (code 1000, ERROR_UNKNOWN).

---

[API](https://skmtc.dev/coevera/apis/coevera-crm-api.md) - [All operations](https://skmtc.dev/coevera/apis/coevera-crm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/coevera/apis/coevera-crm-api/revisions/40ebbc83f179?raw)
