Pagination
Most GET
endpoints support pagination via additional optional parameters in the URL.
Pagination request parameters
Sample usage:
GET https://api.bespokify.com/v2/measurements?page=2&perPage=40
Parameter | Type | Description |
---|---|---|
page | integer | The page number to use in pagination. Default: 1 |
perPage | integer | The number of items per page. Default: 20 Max: 200 |
Pagination headers
The following custom headers are included in responses to requests to endpoints that support pagination:
Header | Description |
---|---|
X-Total | The total number of items |
X-Total-Pages | The total number of pages |
X-Per-Page | The number of items per page |
X-Page | The index of the current page. Starting at 1 |
X-Next-Page | The index of the next page |
X-Prev-Page | The index of the previous page |