How to Retrieve a Conversation Thread Associated with a Ticket

Hello HubSpot Friends,

I am currently working on retrieving a conversation thread associated with a specific ticket using the HubSpot API. While I am able to get the conversation ID from the ticket associations, I am facing difficulties in finding the correct endpoint to fetch the details of the conversation thread itself.

Here is what I have done so far:

  1. I retrieved the ticket associations and obtained the conversation ID.
  2. Now, I need to use this conversation ID to get the full details of the conversation thread.

Could someone please guide me on the correct API endpoint or the best approach to achieve this?

Thank you in advance for your help!

Best regards,
Luiz Felipe Dias.

Hi @LFDias ,

If I’m not mistaken, you should be able to use the following endpoint: https://api.hubapi.com/conversations/v3/conversations/threads/{threadId}

It’s the ‘Get a single thread’ endpoint in the docs.

Hi @Teun , Im also trying to achieve this,

https://api.hubapi.com/crm/v3/objects/tickets/%s?associations=conversation&properties=hs_pipeline

When i hit this endpoint I get
“associations” => array:1 [
“conversations” => array:1 [
“results” => array:2 [
0 => array:2 [
“id” => “7576346755”
“type” => “ticket_to_conversation”
]
1 => array:2 [
“id” => “347814203263”
“type” => “ticket_to_conversation_v2”
]
]
]
]
But when I try to call the threads endpoint using the ‘id’ of the result i get a 404,
Am i doing something wrong, is that association result id not the thread id?

Thanks in advance

Hey @fraz :waving_hand: It looks like your reply got hung up in the spam filter. You should be good to go now — Jaycee

@Jaycee_Lewis Ah thank you, i did think I had commented and it had disappeared,
I’m all sorted now anyway, it just looked like some threads didnt exist

Awesome! Thanks for letting us know :raising_hands: — Jaycee

Hello @LFDias, how did you manage to retrieve tickets from a thread? I’m getting stuck on that issue… was it through associations API?
Thanks in advance!