Skip to main content

API, link header lies

  • December 28, 2016
  • 3 replies
  • 92 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


Did this topic help you find an answer to your question?
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