Hello everyone,
I'm trying to understand how the total_count
value is calculated for the ListConversations
and Search Conversations
endpoints, as I'm observing some unexpected behavior.
When I use the ListConversations endpoint, the total_count
seems stable and returns a very high number (around 7 million). However, when I use the Search Conversations endpoint with filters, the total_count
is significantly lower and seems unreliable.
Here are my specific questions and observations:
-
I added a filter to search for all conversations before today's date, but the result was much smaller (from 7M to around 350k). If I try an earlier date, it returns the same result. Is it possible that the Search endpoint only returns a limited dataset of the entire content?
-
Is the Search endpoint reliable for calculating
JSONtotal_count
? For example, when I use the following query to search for conversations within a specific date range:{
"query": {
"operator": "AND",
"value": [
{
"field": "created_at",
"operator": ">",
"value": "1756800000"
},
{
"field": "created_at",
"operator": "<",
"value": "1758844799"
}
]
},
"pagination": {
"per_page": 50
}
}It only returns one conversation, when there should be hundreds of thousands, considering I have about 6k new conversations daily.
Any insight into how these endpoints handle the total_count
and if there's a recommended way to get an accurate count for filtered searches would be greatly appreciated.
Thank you!