---
title: "Get all mail messages of mail thread"
method: GET
path: "/mailbox/mailThreads/{id}/mailMessages"
tags: ["Mailbox"]
---

# Get all mail messages of mail thread

`GET /mailbox/mailThreads/{id}/mailMessages`

Returns all the mail messages inside a specified mail thread.

## Path parameters

- `id` integer, required

## Response `200`

Get mail messages from thread

- object
  - `success` boolean — If the response is successful or not
  - `data` object[] — The array of the mail messages of the mail thread
    - `id` integer — ID of the mail thread
    - `account_id` string — The connection account ID
    - `user_id` integer — ID of the user whom mail message will be assigned to
    - `subject` string — The subject
    - `snippet` string — A snippet
    - `read_flag` 0 | 1 — Whether the mail thread is read
    - `mail_tracking_status` string, nullable — Mail tracking status
    - `has_attachments_flag` 0 | 1 — Whether the mail thread has an attachment
    - `has_inline_attachments_flag` 0 | 1 — Whether the mail thread has inline attachments
    - `has_real_attachments_flag` 0 | 1 — Whether the mail thread has real attachments (which are not inline)
    - `deleted_flag` 0 | 1 — Whether the mail thread is deleted
    - `synced_flag` 0 | 1 — Whether the mail thread is synced
    - `smart_bcc_flag` 0 | 1 — Whether one of the parties of the mail thread is Bcc
    - `mail_link_tracking_enabled_flag` 0 | 1 — Whether the link tracking of the mail thread is enabled
    - `from` object[] — Senders of the mail thread
      - `id` integer — ID of the mail thread participant
      - `name` string — Name of the mail thread participant
      - `latest_sent` boolean — Whether the mail thread participant was last to send an email
      - `email_address` string — Email address of the mail thread participant
      - `message_time` number — Message time
      - `linked_person_id` integer — ID of the linked person
      - `linked_person_name` string — Email of the linked person
      - `mail_message_party_id` integer — ID of the mail message party
      - `linked_organization_id` integer, nullable — Linked Organization ID
    - `to` object[] — Recipients of the mail thread
      - `id` integer — ID of the mail thread participant
      - `name` string — Name of the mail thread participant
      - `latest_sent` boolean — Whether the mail thread participant was last to send an email
      - `email_address` string — Email address of the mail thread participant
      - `message_time` number — Message time
      - `linked_person_id` integer — ID of the linked person
      - `linked_person_name` string — Email of the linked person
      - `mail_message_party_id` integer — ID of the mail message party
      - `linked_organization_id` integer, nullable — Linked Organization ID
    - `cc` object[] — Participants of the Cc
      - `id` integer — ID of the mail thread participant
      - `name` string — Name of the mail thread participant
      - `latest_sent` boolean — Whether the mail thread participant was last to send an email
      - `email_address` string — Email address of the mail thread participant
      - `message_time` number — Message time
      - `linked_person_id` integer — ID of the linked person
      - `linked_person_name` string — Email of the linked person
      - `mail_message_party_id` integer — ID of the mail message party
      - `linked_organization_id` integer, nullable — Linked Organization ID
    - `bcc` object[] — Participants of the Bcc
      - `id` integer — ID of the mail thread participant
      - `name` string — Name of the mail thread participant
      - `latest_sent` boolean — Whether the mail thread participant was last to send an email
      - `email_address` string — Email address of the mail thread participant
      - `message_time` number — Message time
      - `linked_person_id` integer — ID of the linked person
      - `linked_person_name` string — Email of the linked person
      - `mail_message_party_id` integer — ID of the mail message party
      - `linked_organization_id` integer, nullable — Linked Organization ID
    - `body_url` string — A link to the mail thread message
    - `mail_thread_id` integer — ID of the mail thread
    - `draft` string, nullable — If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`.
    - `has_body_flag` 0 | 1 — Whether the mail thread message has a body
    - `sent_flag` 0 | 1 — Whether the mail thread message is sent
    - `sent_from_pipedrive_flag` 0 | 1 — Whether the mail thread message is sent from Pipedrive
    - `message_time` string, date-time — The time when the mail message was received or created
    - `add_time` string, date-time — The time when the mail message was inserted to database
    - `update_time` string, date-time — The time when the mail message was updated in database received

---

[API](https://skmtc.net/pipedrive/apis/pipedrive-api-v1.md) · [All operations](https://skmtc.net/pipedrive/apis/pipedrive-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pipedrive/pipedrive-api-v1/revisions/bf863a979545/schema)
