Hi everyone,
I’m currently working on a project where I need to use the HubSpot API to retrieve all the messages we’ve had with a client in the Conversations Inbox but I’ve run into a issue where attachments in email channels are not showing up.
I’ve tried the following endpoints in the API:
- GET /conversations/v3/conversations/threads/{threadId}/messages
- GET /conversations/v3/conversations/threads/{threadId}
- GET /conversations/v3/conversations/threads/{threadId}/messages/{messageId}
- GET /conversations/v3/conversations/threads/{threadId}/messages/{messageId}/original-content
Each time the output returns the Attachments section as empty. Does anyone have any idea how I can fix this issue?
Here’s an example message that I’ve tested with
Making an request to it using GET /conversations/v3/conversations/threads/{threadId}/messages/ results in an output like the following:
"archived": false,
"text": "See attached are the responses to your questions.\n\nCan we schedule a meeting/call early next week?\n\n\n",
"richText": "<div class=\"elementToProof\" style=\"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);\">\n See attached are the responses to your questions. \n</div> \n<div class=\"elementToProof\" style=\"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);\"> \n<br> \n</div> \n<div class=\"elementToProof\" style=\"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);\">\n Can we schedule a meeting/call early next week? \n</div> \n<div class=\"elementToProof\" style=\"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);\"> \n<br> \n</div> \n<div class=\"elementToProof\" style=\"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);\"> \n<br> \n</div> \n<div id=\"appendonsend\"></div> \n<hr style=\"display:inline-block;width:98%\" tabindex=\"-1\">",
"attachments": [],
"subject": "Re: Ada:有關你的「企業全能審計會議」",
"truncationStatus": "TRUNCATED_TO_MOST_RECENT_REPLY",
"status": {
"statusType": "RECEIVED"
},
"direction": "INCOMING",
"channelId": "1002",
"channelAccountId": "272863166",
"type": "MESSAGE"
},
Which you can see the attachments part of the output shows up as empty even though we can clearly see an attachment in the message itself on the HubSpot webpage of the conversation.
