# Webhook from New Message is not including ThreadID

**URL:** <https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [January 9, 2024, 6:15pm UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448 "2024-01-09T18:15:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bubusi](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@Bubusi](https://community.hubspot.com/u/Bubusi)\
**Post date:** [January 9, 2024, 6:15pm UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/1 "2024-01-09T18:15:06Z")

</div>

I have created an app and subscribed to convesration.newMessage  
When a new message is typed, I get a webhook with the following information on it:

- eventId
- subscriptionId
- portalId
- appId
- occurredAt
- subscriptionType
- attemptNumber
- objectId
- messageId
- messageType
- changeFlag

To retrieve the content of the specific message, I need to call  
[https://api.hubapi.com/conversations/v3/conversations/threads/\](https://api.hubapi.com/conversations/v3/conversations/threads/%5C)/messages/\<messageID\>  
I have the messageID from the webhook, but how can I get the threadID if it does not seem to be included in the webhook?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 9, 2024, 8:41pm UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/2 "2024-01-09T20:41:54Z")

</div>

Hey, @Bubusi 👋 Thanks for reaching out. I reviewed the Webhook documentation for [Conversations](https://developers.hubspot.com/docs/api/webhooks#:~:text=The%20following-,conversations,-subscription%20types%20are) and messages. But as you found, I don’t see a way to get at the thread ID this way.

I answered a similar question **[here](https://community.hubspot.com/t5/APIs-Integrations/threadId-in-Inbox-and-messages-API/m-p/679509/highlight/true#M55780)**. The tldr is that you can get at this ID from the [GET threads endpoint](https://developers.hubspot.com/docs/api/conversations/conversations#retrieve-threads:~:text=GET%20request%20to-,conversations/v3/conversations/threads,-.%20To%20filter%20and). It will include the `thread ID` as `ID`.

`GET conversations/v3/conversations/threads`

This endpoint offers sort and filter options as well.

I hope this helps! Please let me know if this isn’t what you are after. — Jaycee

---

<div class="post-metadata">

**Author:** ![Bubusi](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@Bubusi](https://community.hubspot.com/u/Bubusi)\
**Post date:** [January 10, 2024, 6:16am UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/3 "2024-01-10T06:16:08Z")

</div>

Thanks Jaycee,  
Yes, I saw your answer to a similar question before sending mine, but I did not consider it solved my problem because it does not filter by a specific messageId, not without also adding the threadId, which defeats the purpose.  
I’m quite surpised that they require the threadId to retreive a message, considering how the messageId is by itself a uuid. It would be great if either Hubspot provided the threadId in the webhook or did not require the threadId in the GET call for a specific message. Othrwise I don’t see a solution to this problem.

---

<div class="post-metadata">

**Author:** ![Razmik](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@Razmik](https://community.hubspot.com/u/Razmik)\
**Post date:** [April 22, 2024, 4:24pm UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/4 "2024-04-22T16:24:24Z")

</div>

The “objectId” in your webhook data refers to the thread ID. Use it as the threadID when making an API call to fetch the contents of a specific message.

---

<div class="post-metadata">

**Author:** ![jmozzart](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jmozzart](https://community.hubspot.com/u/jmozzart)\
**Post date:** [March 6, 2025, 7:25pm UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/5 "2025-03-06T19:25:23Z")

</div>

There’s no objectId in the webhook.

---

<div class="post-metadata">

**Author:** ![jmozzart](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jmozzart](https://community.hubspot.com/u/jmozzart)\
**Post date:** [March 7, 2025, 5:57am UTC](https://community.hubspot.com/t/webhook-from-new-message-is-not-including-threadid/97448/6 "2025-03-07T05:57:45Z")

</div>

Hi @Bubusi Have you come up with a workaround here? Razmik’s answer doesn’t help.  
If only the webhook has the text context or at least the threadId, it would be easier. It such a pain developing with Hubspot, unlike GHL.
