Paging
When you make a request to an endpoint that returns multiple items, the response will be paginated. The response will include:
count: The total number of items across all pagesnext: URL to the next page (null if there is no next page)previous: URL to the previous page (null if there is no previous page)results: Array of items for the current page
Example Response
{
"count": 123,
"next": "https://api.hoxtonmix.com/api/v2/mail-items/?page=2",
"previous": null,
"results": [
// items on this page
]
}
Pagination Parameters
You can control pagination using these query parameters:
page: The page number (starts at 1)page_size: Number of items per page (default is 10, maximum is 100)
Example request:
GET https://api.hoxtonmix.com/api/v2/mail-items/?page=2&page_size=25
This will return the second page with 25 items per page.