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

# PersonMailMessagesByPersonId: Pipedrive Person Mail Messages by Person

`read only` `REST`

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

Can only retrieve data.

## Summary

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

## API Source

- Endpoint: `/persons/{id}/mailMessages`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `person_id` | `int64` | [x] |  | The person id. |

## Table Columns

The columns of the table `PersonMailMessagesByPersonId` 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 |
|---|---|---|:---:|---|---|
| `data_account_id` | `varchar2` | Data Account ID | [ ] | filters on the platform, writable, computed, `data.account_id` | The connection account ID. |
| `data_add_time` | `datetime` | Data Add Time | [ ] | filters on the platform, writable, computed, `data.add_time` | The insertion into the database time of the mail message. |
| `data_bcc` | `varchar2` | Data BCC | [ ] | filters on the platform, writable, computed, `data.bcc` | The array of mail message blind copies (object). |
| `data_body` | `varchar2` | Data Body | [ ] | filters on the platform, writable, computed, `data.body` | The mail message body content. |
| `data_body_url` | `varchar2` | Data Body URL | [ ] | filters on the platform, writable, computed, `data.body_url` | The mail message body URL. |
| `data_cc` | `varchar2` | Data CC | [ ] | filters on the platform, writable, computed, `data.cc` | The array of mail message copies (object). |
| `data_company_id` | `int64` | Data Company ID | [ ] | filters on the platform, writable, computed, `data.company_id` | The ID of the company. |
| `data_deleted_flag` | `varchar2` | Data Deleted Flag | [ ] | filters on the platform, writable, computed, `data.deleted_flag` | The data deleted flag. |
| `data_draft` | `varchar2` | Data Draft | [ ] | filters on the platform, writable, computed, `data.draft` | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise null. |
| `data_draft_flag` | `varchar2` | Data Draft Flag | [ ] | filters on the platform, writable, computed, `data.draft_flag` | The data draft flag. |
| `data_external_deleted_flag` | `char` | Data External Deleted Flag | [ ] | filters on the platform, writable, computed, `data.external_deleted_flag` | If the Mail Message has been deleted on the provider side or not. |
| `data_from` | `varchar2` | Data From | [ ] | filters on the platform, writable, computed, `data.from` | The array of mail message sender (object). |
| `data_has_attachments_flag` | `varchar2` | Data Has Attachments Flag | [ ] | filters on the platform, writable, computed, `data.has_attachments_flag` | The data has attachments flag. |
| `data_has_body_flag` | `varchar2` | Data Has Body Flag | [ ] | filters on the platform, writable, computed, `data.has_body_flag` | The data has body flag. |
| `data_has_inline_attachments_flag` | `varchar2` | Data Has Inline Attachments Flag | [ ] | filters on the platform, writable, computed, `data.has_inline_attachments_flag` | The data has inline attachments flag. |
| `data_has_real_attachments_flag` | `varchar2` | Data Has Real Attachments Flag | [ ] | filters on the platform, writable, computed, `data.has_real_attachments_flag` | The data has real attachments flag. |
| `data_id` | `int64` | Data ID | [ ] | filters on the platform, writable, computed, `data.id` | ID of the mail message. |
| `data_item_type` | `varchar2` | Data Item Type | [ ] | filters on the platform, writable, computed, `data.item_type` | The type of the data item. |
| `data_mail_link_tracking_enabled_flag` | `varchar2` | Data Mail Link Tracking Enabled Flag | [ ] | filters on the platform, writable, computed, `data.mail_link_tracking_enabled_flag` | The data mail link tracking enabled flag. |
| `data_mail_thread_id` | `int64` | Data Mail Thread ID | [ ] | filters on the platform, writable, computed, `data.mail_thread_id` | ID of the mail message thread. |
| `data_mail_tracking_status` | `varchar2` | Data Mail Tracking Status | [ ] | filters on the platform, writable, computed, `data.mail_tracking_status` | The status of tracking mail message. |
| `data_message_time` | `datetime` | Data Message Time | [ ] | filters on the platform, writable, computed, `data.message_time` | Creation or receival time of the mail message. |
| `data_mua_message_id` | `varchar2` | Data MUA Message ID | [ ] | filters on the platform, writable, computed, `data.mua_message_id` | The Mail Message ID assigned by the mail user agent. |
| `data_nylas_id` | `varchar2` | Data Nylas ID | [ ] | filters on the platform, writable, computed, `data.nylas_id` | The Mail Message ID assigned by the sync provider. |
| `data_read_flag` | `varchar2` | Data Read Flag | [ ] | filters on the platform, writable, computed, `data.read_flag` | The data read flag. |
| `data_s3_bucket` | `varchar2` | Data S3 Bucket | [ ] | filters on the platform, writable, computed, `data.s3_bucket` | The name of the S3 bucket. |
| `data_s3_bucket_path` | `varchar2` | Data S3 Bucket Path | [ ] | filters on the platform, writable, computed, `data.s3_bucket_path` | The path of the S3 bucket. |
| `data_sent_flag` | `varchar2` | Data Sent Flag | [ ] | filters on the platform, writable, computed, `data.sent_flag` | The data sent flag. |
| `data_sent_from_pipedrive_flag` | `varchar2` | Data Sent From Pipedrive Flag | [ ] | filters on the platform, writable, computed, `data.sent_from_pipedrive_flag` | The data sent from pipedrive flag. |
| `data_smart_bcc_flag` | `varchar2` | Data Smart BCC Flag | [ ] | filters on the platform, writable, computed, `data.smart_bcc_flag` | The data smart bcc flag. |
| `data_snippet` | `varchar2` | Data Snippet | [ ] | filters on the platform, writable, computed, `data.snippet` | The snippet of mail message. |
| `data_subject` | `varchar2` | Data Subject | [ ] | filters on the platform, writable, computed, `data.subject` | The subject of mail message. |
| `data_synced_flag` | `varchar2` | Data Synced Flag | [ ] | filters on the platform, writable, computed, `data.synced_flag` | The data synced flag. |
| `data_template_id` | `int64` | Data Template ID | [ ] | filters on the platform, writable, computed, `data.template_id` | The ID of the mail template. |
| `data_timestamp` | `datetime` | Data Timestamp | [ ] | filters on the platform, writable, computed, `data.timestamp` | The add date and time of the Mail Message. |
| `data_to` | `varchar2` | Data To | [ ] | filters on the platform, writable, computed, `data.to` | The array of mail message receiver (object). |
| `data_update_time` | `datetime` | Data Last Update Time | [ ] | filters on the platform, writable, computed, `data.update_time` | The updating time in the database of the mail message. |
| `data_user_id` | `int64` | Data User ID | [ ] | filters on the platform, writable, computed, `data.user_id` | ID of the user whom mail message will be assigned to. |
| `object` | `varchar2` | Object | [ ] | filters on the platform, writable, computed, `object` | The type of the data item. |
| `person_id` | `int64` | Person ID | [ ] | filters on the platform, writable, computed, `person_id` | The person id the rows were read for. |
| `timestamp` | `datetime` | Timestamp | [ ] | filters on the platform, writable, computed, `timestamp` | The date and time when the item was created. |

