APIs & Integrations

Cerwind
Member

Get the total number of Conversation Threads

SOLVE

How to get the total number of conversation threads from the `/conversations/threads` API? 

 

As far as I can see the only way to do this is to recursively call the next page until you run out of pages but there must be a simpler way to do this?

0 Upvotes
1 Accepted solution
zach_threadint
Solution
Guide

Get the total number of Conversation Threads

SOLVE

Hi @Cerwind 👋

 

As far as I can tell, you're right -- the only way to do this via API is via the GET /conversations/v3/conversations/threads endpoint, paging through and counting the results as you go. Normally this could be done via the CRM Search API, but it doesn't seem to support Conversation Threads. Sorry this isn't the news you were likely hoping for.

 

Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


View solution in original post

4 Replies 4
zach_threadint
Solution
Guide

Get the total number of Conversation Threads

SOLVE

Hi @Cerwind 👋

 

As far as I can tell, you're right -- the only way to do this via API is via the GET /conversations/v3/conversations/threads endpoint, paging through and counting the results as you go. Normally this could be done via the CRM Search API, but it doesn't seem to support Conversation Threads. Sorry this isn't the news you were likely hoping for.

 

Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


Cerwind
Member

Get the total number of Conversation Threads

SOLVE

Hi Zach,

 

Thanks for the response, no problem - I wanted to make sure I wasn't missing something obvious as it feels like this should be some top level information in the API. 

 

Do you know if there are any plans to add the Conversation Threads to the Search API as this would be really useful?

0 Upvotes
zach_threadint
Guide

Get the total number of Conversation Threads

SOLVE

Hi @Cerwind 👋

No problem at all, happy to help.

I'm not personally aware of any product updates in this space -- we could maybe direct this query to @Jaycee_Lewis 🙂

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Get the total number of Conversation Threads

SOLVE

Hi @Cerwind 👋 Thanks for your question. Let's invite some of our community experts to the converstaion — hey @Teun @dsmarion @zach_threadint, do you have any recent experience you can share with @Cerwind?

 

Thank you very much! — Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes