Interaction logs between customer and agents | Community
Skip to main content

Interaction logs between customer and agents

  • March 11, 2022
  • 3 replies
  • 0 views

fredic

Hi, I am new to Zendesk API and am trying to get interaction details within tickets via API.  What I am trying to achieve is to get details of sender & timestamp for any responses from either customer or agents, for all the tickets in result set.  I saw Ticket Comments provides similar information, but I am not able to apply filters in query parameter like what I can do in Search function. I also saw Incremental Ticket Event Export, but only saw start_ts as the parameter, not sure if I can also apply filters like group:A -tag:B?  I also saw option of side load comment for events, but is it possible for ticket?  Would like to learn what's the best practice to get a list of Tickets meeting applied criteria along with interaction details of sender&ts?  Thanks!

Fredic

3 replies

Greg29
  • March 15, 2022
Hi Fredic! I generally recommend using cursor-based pagination for cleaner results, as opposed to time-based. That being said, you can access the tickets sideloads for both of them, with the exclusion of last_audits. Tags are not an available option due to the enormity of that table, but you definitely can use groups! This article should give you a good run-down of what the best option for you. Let us know if you have any questions!

fredic
  • Author
  • April 21, 2022

Thanks Greg, we are now able to do incremental export for ticket and ticket audits endpoint, but we didn't find a way to limit ticket audits results by applying filters like for ticket endpoint.  Is there any way to do that? 

this is the sample code provided in api reference, based on cursor, but how can we apply filters onto that?  thanks!

  • GET /api/v2/ticket_audits.json?cursor=fDE1MDE1OTE1MzQuMHx8MTEzMjQ4NDI1MQ%3D%3D

Greg29
  • April 21, 2022
Hi Fredic! You can use the include parameter to add supported side-loads, which you can read about here.