APIs & Integrations

Cerwind
Mitglied

Get the total number of Conversation Threads

lösung

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 Akzeptierte Lösung
zach_threadint
Lösung
Ratgeber/-in

Get the total number of Conversation Threads

lösung

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.


Lösung in ursprünglichem Beitrag anzeigen

4 Antworten
zach_threadint
Lösung
Ratgeber/-in

Get the total number of Conversation Threads

lösung

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
Mitglied

Get the total number of Conversation Threads

lösung

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
Ratgeber/-in

Get the total number of Conversation Threads

lösung

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/-in
Community-Manager/-in

Get the total number of Conversation Threads

lösung

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


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