## Pagination `GET https://getkollek.com/api/collections` Every list endpoint is paginated. Pass per_page to control the page size (between 1 and 100) and page to move through the results. Responses include links and meta objects to navigate between pages. ### Query parameters - `per_page` (integer, optional): The number of objects to return per page, between 1 and 100. Default: `10`. - `page` (integer, optional): The page number to return. Default: `1`. ### Example request ```bash curl https://getkollek.com/api/collections?per_page=1&page=2 \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" ``` ### Example response `Status: 200` ```json { "data": [ { "type": "collection", "id": "2", "attributes": { "uuid": "9e2f6c1a-4b3d-4b6e-9a2f-0c1d2e3f4a5b", "name": "Vinyl", "description": null, "emoji": "💿", "visibility": "shared", "currency": "USD", "created_at": 1752537600, "updated_at": 1752537600 }, "links": { "self": "https://getkollek.com/api/collections/2" } } ], "links": { "first": "https://getkollek.com/api/collections?page=1", "last": "https://getkollek.com/api/collections?page=2", "prev": "https://getkollek.com/api/collections?page=1", "next": null }, "meta": { "current_page": 2, "from": 2, "last_page": 2, "links": [ { "url": "https://getkollek.com/api/collections?page=1", "label": "« Previous", "active": false }, { "url": "https://getkollek.com/api/collections?page=1", "label": "1", "active": false }, { "url": "https://getkollek.com/api/collections?page=2", "label": "2", "active": true }, { "url": null, "label": "Next »", "active": false } ], "path": "https://getkollek.com/api/collections", "per_page": 1, "to": 2, "total": 2 } } ```