APIs & Integrations

Cerwind
Miembro

Get the total number of Conversation Threads

resolver

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 Me gusta
1 Soluciones aceptada
zach_threadint
Solución
Guía

Get the total number of Conversation Threads

resolver

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.


Ver la solución en mensaje original publicado

4 Respuestas 4
zach_threadint
Solución
Guía

Get the total number of Conversation Threads

resolver

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
Miembro

Get the total number of Conversation Threads

resolver

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 Me gusta
zach_threadint
Guía

Get the total number of Conversation Threads

resolver

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 Me gusta
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

Get the total number of Conversation Threads

resolver

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 Me gusta