Whether list tickets API returns conversation_count data for each ticket Or Is there any other APIs where it shows the conversation_count metric for tickets ?
How to know what are the new conversations added/updated for a ticket/tickets after certain timestamp via API ?
Hi Haritha,
Unfortunately I believe that the answer to the first question is no, the only way to recover the conversations and their number is to do it for each ticket by scrolling through the pages using /api/v2/tickets/{id}/conversations?page=1&per_page=100 or using /api/v2/tickets/{id}?include=conversations.
For the second question the sorting is given by the creation date, but you can use the created_at and updated_at fields to filter the items after executing the api request. Unfortunately, I believe it is not possible to add a parameter like ?_updated_since=...
The list tickets API does not return the conversation_count data for each ticket. However, you can use the get ticket API to get the conversation_count data for a specific ticket.
To know what are the new conversations added/updated for a ticket/tickets after certain timestamp via API, you can use the following steps:
Use the list tickets API to get a list of all tickets that were created or updated after the specified timestamp.
For each ticket in the list, use the get ticket API to get the conversation_count data.
Here is an example of how you can use the list tickets API to get a list of all tickets that were created or updated after the specified timestamp:
curl -X GET https://api.freshworks.com/helpdesk/v2/tickets?updated_after=2023-09-13T00:00:00Z
Here is an example of how you can use the get ticket API to get the conversation_count data for a specific ticket:
curl -X GET https://api.freshworks.com/helpdesk/v2/tickets/1234567890