plain-lunch-50969
04/16/2024, 8:20 PMchilly-king-10285
04/16/2024, 8:20 PMchilly-king-10285
04/16/2024, 8:20 PMpage_token
query parameter to navigate through the pages of results. This replaces the deprecated per_page
and page
parameters. Here's how you can use it: 1. Make a GET request to the /admin/identities
endpoint. If this is your first request, you don't need to provide a page_token
. 2. The response will include a Link
header. This header will contain the page_token
for the next page of results. 3. For subsequent requests, include the page_token
in your request as a query parameter. For example, if your page_token
is 'abc123', your request would look like this: GET /admin/identities?page_token=abc123
. 4. Repeat this process until you've retrieved all the pages of results you need. Remember, the page_token
is not a sequential number, and some page_token
values might return an empty list. The first page can be retrieved by omitting the page_token
parameter. For more details, you can refer to the [Kratos API documentation](https://www.ory.sh/docs/kratos/reference/api).plain-lunch-50969
04/16/2024, 8:22 PMplain-lunch-50969
04/16/2024, 8:22 PMchilly-king-10285
04/16/2024, 8:22 PMchilly-king-10285
04/16/2024, 8:22 PMpage_token
when iterating over identities using the Ory API. I recommend checking the [Ory API documentation](https://www.ory.sh/docs/reference/api) for more detailed information.