Skip to main content

link not returned in the headers

  • November 15, 2017
  • 4 replies
  • 95 views

According to the documentation the next page URL is contained in the link header.


This is my URL:  https://xxxxxxxx.freshdesk.com/api/v2/tickets?per_page=30


I have 193 tickets in my test system.  I'm using the following to display the headers:


console.log(jqXHR.getAllResponseHeaders());


And the output is:


x-ratelimit-total: 1000

x-freshdesk-api-version: latest=v2; requested=v2

x-ratelimit-used-currentrequest: 1

x-ratelimit-remaining: 806

x-request-id: 8021a9f95eb773789c26c8331f71da97

pragma: no-cache

content-type: application/json; charset=utf-8

cache-control: must-revalidate, no-cache, no-store, private, max-age=0

expires: Wed, 13 Oct 2010 00:00:00 UTC



Where is the link reference?


Thanks.

Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Hi Railton,


Thanks for flagging this up. Not sure why the link content went missing for the List all tickets API query. We tested it out and it seems like it's working for other items such as contacts,articles,etc. Will troubleshoot this further and update you at the earliest possible.


Cheers!


Thanks for checking.  I don't get the link in the headers for contacts either.


Can you provide some the javascript code you use the get the link header.  Maybe I'm doing something wrong. :)

Thanks,


aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Hi Railton,


Upon checking this with the team here, I found that the api query with no filters , lists the tickets created in the last 30 days. In this case, there were only 11 tickets created in the last 30 days . This is the reason why the link was missing in the header as there was no second page of results ;)


Cheers!


I have 114 unresolved tickets that were created in the last 30 days.  So it is not what you suggested.