How to link to FRONT thread from pipedrive mailMessage update

Hi there,

I am trying to go from the mailMessage info returned by /deals/{id}/flow to the underlying GMAIL thread, and then from there to the corresponding frontapp.com message id.

Any tips which ids I could use.

Here is a sample message I am getting from the API.

{

“object”: “mailMessage”,
“timestamp”: “2020-03-16 15:54:28”,
“data”: {
“id”: 673906,
“from”: [
{
“id”: 196020,
“email_address”: “XXX”,
“name”: “XXX”,
“linked_person_id”: 5773,
“linked_person_name”: “XXX”,
“mail_message_party_id”: 200844
}
],
“to”: [
{
“id”: 53542,
“email_address”: “keegan@leansentry.com”,
“name”: “keegan@leansentry.com”,
“linked_person_id”: 2681,
“linked_person_name”: “Keegan Sheedy”,
“mail_message_party_id”: 200845
}
],
“cc”: [ ],
“bcc”: [ ],
“body_url”: “XXX”,
“nylas_id”: “4zmdots4t1c3m4gmi4ovivpfi”,
“account_id”: “XXX”,
“user_id”: 6671926,
“mail_thread_id”: 22336,
“subject”: “RE: Slowdowns in DMTLeadResponse”,
“snippet”: "What is ",
“mail_tracking_status”: null,
“mail_link_tracking_enabled_flag”: 0,
“read_flag”: 1,
“draft”: null,
“s3_bucket”: “pipedrive-mail-live”,
“s3_bucket_path”: “XXX”,
“draft_flag”: 0,
“synced_flag”: 1,
“deleted_flag”: 0,
“has_body_flag”: 1,
“sent_flag”: 0,
“sent_from_pipedrive_flag”: 0,
“smart_bcc_flag”: 0,
“message_time”: “2020-03-16T15:54:28.000Z”,
“add_time”: “2020-03-16T15:54:55.000Z”,
“update_time”: “2020-03-16T15:55:29.000Z”,
“has_attachments_flag”: 1,
“has_inline_attachments_flag”: 1,
“has_real_attachments_flag”: 0,
“mua_message_id”: “MWHPR04MB1246BE98F90DDC23F2E97951BCF90@MWHPR04MB1246.namprd04.prod.outlook.com”,
“write_flag”: false,
“template_id”: null,
“item_type”: “mailMessage”,
“timestamp”: “2020-03-16T15:54:55.000Z”,
“company_id”: 1785083
}
},

Appreciate it,

Mike

Hi.
There is an API relevant to mailbox in our developer docs Pipedrive API v1 Reference

Let me know if it solves your challenge.