
1qvdq (1qvdq) asked a question.
I'm using Postman to pull a list of all of our apps so I can separate out ones that are using SAML. Using /api/v1/apps?filter=status eq "ACTIVE" It will pull a list of 27 apps. If I set a limit using &limit=500 it returns 200 apps, but i cannot get it to pull a full list, the number should be closer to 400 in our org. Am I missing something obvious?

Hi Thomas,
According to this link: https://developer.okta.com/docs/reference/api/apps/#list-applications the maximum of applications returned on /api/v1/apps is 200. So even if you put a limit on 500 okta will set it to a maximum of 200. To fix this and get the rest of the applications, you need to use pagination to get to the next page. The results are paginated according to the limit parameter. If there are multiple pages of results, the Link header contains a next link. More information can be found here https://developer.okta.com/docs/reference/core-okta-api/#pagination under the sections pagination and link header.
How you do this in postman is to first do the request as you do now, but in the response headers you should see something like this:
link: <https://${yourOktaDomain}/api/v1/apps?limit=200>; rel="self"
link: <https://${yourOktaDomain}/api/v1/apps?limit=200&after=1627500044869_1>; rel="next"
In the "next" link, paste that url (https://${yourOktaDomain}/api/v1/apps?limit=200&after=1627500044869_1) into postman with the same token and you should get the rest of the apps. Hopefully that will fix your issues!
Best regards,
Alexander
Thanks, I found info on this last night, but your description is dead on what I needed.