Cannot retrieve the whole list of policies Tyk v4.0.0

Hello, I’m having an issue with retrieving the whole list of policies. When I send a request to list policies, I only get back the first 10 policies (the 10 policies that appear on the first page).

I tried looking into the documentation to see if there’s anything I’d need to put in the body of the request, but the documentation provides no info.

What should I do?

Thank you in advance!

Hello @Vanja_Prokic, and welcome to the community! :partying_face:

Is this for the dashboard or the gateway?

I know we have pagination documentation for the dashboard. The number of entries shown 10 is driven by the page_size config.

I can’t recall what happens on the gateway side but if you are using the gateway REST APIs then try specifying a query param p={page_num}.

If you set the page to -2 in the query parameter it should return everything

Hi and thanks for the warm welcome! I’m using the gateway. That did solve the issue however, so thank you!