APIs & Integrations

MAsghari
Member | Elite Partner
Member | Elite Partner

Getting email record based on conversation id in Hubspot conversation inbox

Hi There!

My question is simple and quick!

I use this endpoint to retrieve information about an specific conversatioins message:
/conversations/v3/conversations/threads/{threadId}/messages/{message_id }

 

How can I get the corresponding email record of this message?

I was expected to recieve the "Email ID" in response, but it seems the response only include the "message id"!

 

Why do I need the Email?

I need to fetch the corresponding email info, in order to associate it to ticket object!

0 Upvotes
5 Replies 5
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Getting email record based on conversation id in Hubspot conversation inbox

Hi @MAsghari ,


That endpoint should also return a createdBy variable in the response. 

If I am not mistaken, you can use that value to make a GET request to the 'Get a single actor endpoint': https://api.hubapi.com/conversations/v3/conversations/actors/{actorId}
The response will return details like the actor's name, email address, avatar, and actor type.




Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
MAsghari
Member | Elite Partner
Member | Elite Partner

Getting email record based on conversation id in Hubspot conversation inbox

Hi, thanks for the reply!

That is not what I want. Maybe I wasn't clear enough, so here is what I want

 

1) I receive an "email" in HubSpot conversation inbox

2) With the help of this endpoint I can retrieve all the related information for that specific message: (conversations/v3/conversations/threads/{threadID}/messages/{messageID})

 

3) Since this message is an email, I expect to receive the email Id from the API, but I don't receive it

 

4) I only receive an ID which is the message ID like this:

(3cde0cbc-7e13-4b5c-a3c5-8293b55c65c2)

 

5) What I want is to find the corresponding email and associate it to the ticket but there is no way I can find it!

 

6) The API you told me, simply sends the "Actor" information and not the email object!

0 Upvotes
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Getting email record based on conversation id in Hubspot conversation inbox

Hi @MAsghari,

 

My bad! So just to verify, you do not want to associate the contact who send the email to the ticket, but the actual email itself?



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
MAsghari
Member | Elite Partner
Member | Elite Partner

Getting email record based on conversation id in Hubspot conversation inbox

Yes exactly!

I would like to find that email and associate it to the ticket via "engagements email api"

0 Upvotes
MAsghari
Member | Elite Partner
Member | Elite Partner

Getting email record based on conversation id in Hubspot conversation inbox

Hi, do you think is it possible? is there any way to get the corresponding email record?

0 Upvotes