API pagination mechanism: double entry "link:" in header


I’m using the API endpoint

If there are more than 1000 Users in this group, I have to use the Pagination mechanism, that uses the “link:” field in the response header

As you can see Okta generates to lines with the same identifier “link:” in the resonse header (is this allowed?)
and our system (Apache NiFi) only saves the first “link”-line and I need the second “link”-line

Any Idea how I can solve this?

As you note in your screenshot, one of the links is for the current page, and the other is for the next page, as demonstrated in our docs.

You will want to configure your application to get ALL link headers you receive in the response from Okta and use the "rel’ value to identify between the request URL for the next page of results.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.