Pagination
A collection endpoint returns an index of records. All collection endpoints will return a set of HTTP headers that contain pagination info.
Response Header | Description |
---|---|
X-Page | The current page index |
X-Per-Page | The number of results per page |
X-Total-Count | The total number of records |
X-Total-Pages | The total number of pages |
A client can also request specific pages through query string parameters.
GET /api/v1/teams/:team_id/purchase_orders?per_page=10&page=3
HTTP/1.1 200 OK
Content-Type: application/json
X-Page: 1
X-Per-Page: 100
X-Total-Count: 131
X-Total-Pages: 2
The default value for per_page is 100 and the max is 1000.
Updated almost 2 years ago