Checkpoint Pagination is not working for API /api/v2/roles/{id}/users

I am trying to read the users for a roleId where the user count is more than 1000.
So as per the documentation i need to use checkpoint pagination instead of offset pagination.

for the first request i pass only take parameter and got response with next.
for the next request when i pass from:(value from prev response next value) and take parameter. its giving below error response.

{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Invalid request query input”
}

my request:
curl --location --request GET ‘https://XXXXXXXXXX/api/v2/roles/rol_Ba8c12EDw0rS7fsm/users?take=10&from=MjAyMy0wOS0yMCAwNzowMDo1Nyg’ \

kindly suggest how to use next value for the subsequent calls

1 Like