List resources endpoint may return paginated items. Each paginated response may include a special value attribute
last_evaluated_key. Presence of such attribute means more items are available. API client must include last_evaluated_key in reuquest body to fetch next page.Response will not include
last_evaluated_keyfor the last page to indicate the end of the list.
How pagination works
- Include
page_sizein the request body - Response body includes
itemsandlast_evaluated_key - Include
page_sizeandlast_evaluated_keyon subsequent request body - Repeat until response body does not include
last_evaluated_key
Pagination is forward-only
Key Request Attributes for Pagination
Include following attributes in the request body when using pagination:| Field | Type | Required | Description |
|---|---|---|---|
page_size | integer | No | Max items to return per page (up to 50) |
last_evaluated_key | string | No | Cursor for the next page, returned from previous response |
Key Response Attributes for Pagination
| Field | Meaning |
|---|---|
items | Results for the current page |
last_evaluated_key | Present only when more pages exist |