---
title: "MailMessagesByMailThreadId (Pipedrive)"
description: "Mail Messages by Mail Thread"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Mail.MailMessagesByMailThreadId
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Mail.MailMessagesByMailThreadId
updated: 2026-11-01T16:22:11Z
license: https://documentation.invantive.eu/en/
---

# MailMessagesByMailThreadId: Pipedrive Mail Messages by Mail Thread

`read only` `REST`

- Catalog: `Pipedrive`
- Schema: `Mail`
- Primary Keys: `id`
- Label: Mail Messages by Mail Thread

Can only retrieve data.

## Summary

The e-mail messages of one conversation. Each request costs 20 tokens of the daily budget of the company.

## API Source

- Endpoint: `/mailbox/mailThreads/{id}/mailMessages`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `mail_thread_id` | `int64` | [x] |  | The mail thread id. |

## Table Columns

The columns of the table `MailMessagesByMailThreadId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `account_id` | `varchar2` | Account ID | [ ] | filters on the platform, writable, computed, `account_id` | The connection account ID. |
| `add_time` | `datetime` | Creation Time | [ ] | filters on the platform, writable, computed, `add_time` | The time when the mail message was inserted to database. |
| `bcc` | `varchar2` | BCC | [ ] | filters on the platform, writable, computed, `bcc` | Participants of the Bcc. |
| `body_url` | `varchar2` | Body URL | [ ] | filters on the platform, writable, computed, `body_url` | A link to the mail thread message. |
| `cc` | `varchar2` | CC | [ ] | filters on the platform, writable, computed, `cc` | Participants of the Cc. |
| `deleted_flag` | `varchar2` | Deleted Flag | [ ] | filters on the platform, writable, computed, `deleted_flag` | The deleted flag. |
| `draft` | `varchar2` | Draft | [ ] | filters on the platform, writable, computed, `draft` | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise null. |
| `from` | `varchar2` | From | [ ] | filters on the platform, writable, computed, `from` | Senders of the mail thread. |
| `has_attachments_flag` | `varchar2` | Has Attachments Flag | [ ] | filters on the platform, writable, computed, `has_attachments_flag` | The has attachments flag. |
| `has_body_flag` | `varchar2` | Has Body Flag | [ ] | filters on the platform, writable, computed, `has_body_flag` | The has body flag. |
| `has_inline_attachments_flag` | `varchar2` | Has Inline Attachments Flag | [ ] | filters on the platform, writable, computed, `has_inline_attachments_flag` | The has inline attachments flag. |
| `has_real_attachments_flag` | `varchar2` | Has Real Attachments Flag | [ ] | filters on the platform, writable, computed, `has_real_attachments_flag` | The has real attachments flag. |
| `id` | `int64` | ID | [x] | filters on the platform, writable, computed, `id` | ID of the mail thread. |
| `mail_link_tracking_enabled_flag` | `varchar2` | Mail Link Tracking Enabled Flag | [ ] | filters on the platform, writable, computed, `mail_link_tracking_enabled_flag` | The mail link tracking enabled flag. |
| `mail_thread_id` | `int64` | Mail Thread ID | [ ] | filters on the platform, writable, computed, `mail_thread_id` | ID of the mail thread. |
| `mail_tracking_status` | `varchar2` | Mail Tracking Status | [ ] | filters on the platform, writable, computed, `mail_tracking_status` | Mail tracking status. |
| `message_time` | `datetime` | Message Time | [ ] | filters on the platform, writable, computed, `message_time` | The time when the mail message was received or created. |
| `read_flag` | `varchar2` | Read Flag | [ ] | filters on the platform, writable, computed, `read_flag` | The read flag. |
| `sent_flag` | `varchar2` | Sent Flag | [ ] | filters on the platform, writable, computed, `sent_flag` | The sent flag. |
| `sent_from_pipedrive_flag` | `varchar2` | Sent From Pipedrive Flag | [ ] | filters on the platform, writable, computed, `sent_from_pipedrive_flag` | The sent from pipedrive flag. |
| `smart_bcc_flag` | `varchar2` | Smart BCC Flag | [ ] | filters on the platform, writable, computed, `smart_bcc_flag` | The smart bcc flag. |
| `snippet` | `varchar2` | Snippet | [ ] | filters on the platform, writable, computed, `snippet` | A snippet. |
| `subject` | `varchar2` | Subject | [ ] | filters on the platform, writable, computed, `subject` | The subject. |
| `synced_flag` | `varchar2` | Synced Flag | [ ] | filters on the platform, writable, computed, `synced_flag` | The synced flag. |
| `to` | `varchar2` | To | [ ] | filters on the platform, writable, computed, `to` | Recipients of the mail thread. |
| `update_time` | `datetime` | Last Update Time | [ ] | filters on the platform, writable, computed, `update_time` | The time when the mail message was updated in database received. |
| `user_id` | `int64` | User ID | [ ] | filters on the platform, writable, computed, `user_id` | ID of the user whom mail message will be assigned to. |

