Skip to main content
Closed for Voting

Fresh Service tickets API Query based on agents

Related products:Freshservice
  • April 6, 2020
  • 3 replies
  • 78 views

We are using Fresh Service and we want to get the list of tickets assigned to a specific agent. I looked at Fresh Service v1(https://api.freshservice.com/#view_all_ticketand v2  (https://api.freshservice.com/v2/#view_all_ticketapi and couldn't find any API.


However Freshdesk has  api's  (https://developer.freshdesk.com/api/#filter_ticketsto query based on agent id.

 I tried calling like  "https://xyz.freshservice.com/api/v2/search/tickets?query="(agent_id:15001150810) AND (status:5) "&order_by=created_at&order_type=asc" and it returned results. However the total number of tickets returned is wrong and it always shows 30 (though there are more tickets) and the pagination also doesn't seem to work. When i append page=2 parameter to the query, it returns same set of results as page=1. So basically i always get the first 30 tickets.


Any solutions on how to make the agent and status based query to work ?

3 replies