API, link header lies

  • 28 December 2016
  • 3 replies
  • 82 views


 Hello,


    API keeps lying to us. We're hitting the API at /api/v2/agents,  and it returns the headers['link']:  '<https://.........freshdesk.com/api/v2/agents?page=2>; rel="next"', and then not surprisingly, there is no next page, as calling it produces a 404.




path:  /api/v2/agents&page=2
statusCode:  404





This topic has been closed for comments

3 replies


Hey Juan,




The url in the header contains a '?' separating the words 'agents' and 'page'.


Can you please try this https://.........freshdesk.com/api/v2/agents?page=2


instead of the url https://.........freshdesk.com/api/v2/agents&page=2





 ohh yes.  Your right.  and now it works as documented.


Thank you so much.


I think we can delete this thread..


:)



need API