APIs & Integrations

Cerwind
Membre

Get the total number of Conversation Threads

Résolue

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 Votes
1 Solution acceptée
zach_threadint
Solution
Guide

Get the total number of Conversation Threads

Résolue

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.


Voir la solution dans l'envoi d'origine

4 Réponses
zach_threadint
Solution
Guide

Get the total number of Conversation Threads

Résolue

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
Membre

Get the total number of Conversation Threads

Résolue

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 Votes
zach_threadint
Guide

Get the total number of Conversation Threads

Résolue

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 Votes
Jaycee_Lewis
Gestionnaire de communauté
Gestionnaire de communauté

Get the total number of Conversation Threads

Résolue

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 Votes