Hi everyone, I have two tickets - 3166777574 and 3772262891. They both have one conversation attached to it (different conversation for each ticket). On both of them, I will make the exact same API call:
GET to https://api.hubapi.com/crm/v3/objects/tickets/3166777574?associations=conversations
Response:
“conversations”: { “results”: [ { “id”: “3941110766”, “type”: “ticket_to_conversation” }, { “id”: “127753355746”, “type”: “ticket_to_conversation_v2” } ] }
---
GET to https://api.hubapi.com/crm/v3/objects/tickets/3772262891?associations=conversations
Response:
“associations”: { “conversations”: { “results”: [ { “id”: “145581535990”, “type”: “ticket_to_conversation_v2” } ] } }
---
While the 3166777574 contains both ticket_to_conversation and ticket_to_conversation_v2, the 3772262891 only contains ticket_to_conversation_v2.
When I then try to make API call to https://api.hubapi.com/conversations/v3/conversations/threads/3941110766/messages, I will get messages back.
When I, however, make a call to either https://api.hubapi.com/conversations/v3/conversations/threads/127753355746/messages or https://api.hubapi.com/conversations/v3/conversations/threads/145581535990/messages, I will get 404.
It means that only ticket_to_conversation is valid ID for pulling messages from thread and I am unable to find any endpoint for pulling them from ticket_to_conversation_v2.
---
Questions:
Is there any (maybe undocumented) endpoint for pulling messages from ticket_to_conversation_v2?
Why am I not getting ticket_to_conversation ID on some tickets when they clearly exist (I can find it in HubSpot’s UI)?
Hi everyone, I have two tickets - 3166777574 and 3772262891. They both have one conversation attached to it (different conversation for each ticket). On both of them, I will make the exact same API call:
GET to https://api.hubapi.com/crm/v3/objects/tickets/3166777574?associations=conversations
Response:
“conversations”: { “results”: [ { “id”: “3941110766”, “type”: “ticket_to_conversation” }, { “id”: “127753355746”, “type”: “ticket_to_conversation_v2” } ] }
---
GET to https://api.hubapi.com/crm/v3/objects/tickets/3772262891?associations=conversations
Response:
“associations”: { “conversations”: { “results”: [ { “id”: “145581535990”, “type”: “ticket_to_conversation_v2” } ] } }
---
While the 3166777574 contains both ticket_to_conversation and ticket_to_conversation_v2, the 3772262891 only contains ticket_to_conversation_v2.
When I then try to make API call to https://api.hubapi.com/conversations/v3/conversations/threads/3941110766/messages, I will get messages back.
When I, however, make a call to either https://api.hubapi.com/conversations/v3/conversations/threads/127753355746/messages or https://api.hubapi.com/conversations/v3/conversations/threads/145581535990/messages, I will get 404.
It means that only ticket_to_conversation is valid ID for pulling messages from thread and I am unable to find any endpoint for pulling them from ticket_to_conversation_v2.
---
Questions:
Is there any (maybe undocumented) endpoint for pulling messages from ticket_to_conversation_v2?
Why am I not getting ticket_to_conversation ID on some tickets when they clearly exist (I can find it in HubSpot’s UI)?
Hey @MHlavacka thank you for posting in our Community!
The ticket_to_conversation ID you mentioned works because it’s supported by the existing API endpoints. However, the ticket_to_conversation_v2 IDs currently don’t have a direct endpoint to retrieve messages, which is why you’re getting a 404 error.
To our top experts @DanielSanchez and @Anton do you have any recommendations for @MHlavacka matter?
Thank you,
Pam
Hey, @MHlavacka
Thanks for your question.
- There is not a public endpoint for what you are wanting.
There are other cases I’ve encountered here where something is visible in-app but not accessible via a public endpoint, but our documentation cannot list what’s not possible, only the available options (I hope that doesn’t read as sarcastic, I intend to be clear and respect your time)
Question – do you have any workflows that are triggered from a ticket (created from a conversation) that creates a new ticket as a part of the workflow actions? (it’s a long-shot, but I wanted to ask)
Best,
Jaycee