Pagination
All endpoints that return a list of items will return a paginated result.
{
"total": 0,
"per_page": 0,
"current_page": 0,
"last_page": 0,
"result": [
]
}
Field | Description |
total | Total number of results |
per_page | Number of items per page |
current_page | Current page that is returned |
last_page | Last page number |
result | Actual data |
You can control how data are returned with the following query parameters:
page
: page number to return (Default: 1)per_page
: number of items returned (Default: 20, Max: 100)
Example:
GET .../users?page=2&per_page=50
If you omit any of these parameters in the query the default value is used.