---
title: "Get Mail Message"
method: GET
path: "/api/mail-messages/{mail_message_id}"
tags: ["mailMessages"]
---

# Get Mail Message

`GET /api/mail-messages/{mail_message_id}`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/mail-messages/{mail_message_id}`
- Auth: none declared

## Path parameters

- `mail_message_id` integer, required

## Response `200`

OK

- GetMailMessageResponse: Response for GET /mailbox/mailMessages/{id}
  - `success` boolean, required: If the response is successful or not
  - `statusCode` integer, required: The email‐service specific status code
  - `statusText` string, required: The status text of the response
  - `service` string, required: The service name of the response
  - `data` MailMessageData, required: Full mail‐message data
    - `id` integer, required: ID of the mail message
    - `from_` MailMessageParticipant[], required: The array of mail message senders
      - `id` integer, required: ID of the mail participant
      - `email_address` string, required: Mail address of the mail participant
      - `name` string, required: Name of the mail participant
      - `linked_person_id` integer, nullable, required: ID of the linked person to the mail message
      - `linked_person_name` string, nullable, required: Name of the linked person to the mail message
      - `mail_message_party_id` integer, nullable, required: ID of the mail message participant
    - `to` MailMessageParticipant[], required: The array of mail message recipients
      - `id` integer, required: ID of the mail participant
      - `email_address` string, required: Mail address of the mail participant
      - `name` string, required: Name of the mail participant
      - `linked_person_id` integer, nullable, required: ID of the linked person to the mail message
      - `linked_person_name` string, nullable, required: Name of the linked person to the mail message
      - `mail_message_party_id` integer, nullable, required: ID of the mail message participant
    - `cc` MailMessageParticipant[], required: The array of CC recipients
      - `id` integer, required: ID of the mail participant
      - `email_address` string, required: Mail address of the mail participant
      - `name` string, required: Name of the mail participant
      - `linked_person_id` integer, nullable, required: ID of the linked person to the mail message
      - `linked_person_name` string, nullable, required: Name of the linked person to the mail message
      - `mail_message_party_id` integer, nullable, required: ID of the mail message participant
    - `bcc` MailMessageParticipant[], required: The array of BCC recipients
      - `id` integer, required: ID of the mail participant
      - `email_address` string, required: Mail address of the mail participant
      - `name` string, required: Name of the mail participant
      - `linked_person_id` integer, nullable, required: ID of the linked person to the mail message
      - `linked_person_name` string, nullable, required: Name of the linked person to the mail message
      - `mail_message_party_id` integer, nullable, required: ID of the mail message participant
    - `body_url` string, required: The mail message body URL
    - `account_id` string, required: The connection account ID
    - `user_id` integer, required: ID of the user to whom this mail message is assigned
    - `mail_thread_id` integer, required: ID of the mail thread
    - `subject` string, required: The subject of the mail message
    - `body` string, nullable: The body of the mail message
    - `snippet` string, required: A short snippet of the mail message body
    - `mail_tracking_status` string, nullable: The mail‐tracking status (`null` if tracking not enabled)
    - `mail_link_tracking_enabled_flag` integer: Whether link tracking is enabled (0 or 1)
    - `read_flag` integer: Whether the mail message is read or not (0 or 1)
    - `draft` string, nullable: If draft, the JSON‐formatted mail object; otherwise `null`
    - `draft_flag` integer: Whether the mail message is a draft (0 or 1)
    - `synced_flag` integer: Whether synced with provider (0 or 1)
    - `deleted_flag` integer: Whether deleted (0 or 1)
    - `has_body_flag` integer: Whether has a body (0 or 1)
    - `sent_flag` integer: Whether sent (0 or 1)
    - `sent_from_pipedrive_flag` integer: Whether sent via Pipedrive (0 or 1)
    - `smart_bcc_flag` integer: Whether created via Smart BCC (0 or 1)
    - `message_time` string, date-time, required: When the message was sent or received
    - `add_time` string, date-time, required: When inserted into the database
    - `update_time` string, date-time, required: When last updated in the database
    - `has_attachments_flag` integer: Whether has attachments (0 or 1)
    - `has_inline_attachments_flag` integer: Whether has inline attachments (0 or 1)
    - `has_real_attachments_flag` integer: Whether has non-inline attachments (0 or 1)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
