# Category Index Endpoint

## Structure

See [View Category Endpoint](https://support.aerocommerce.com/books/api/page/view-category-endpoint) for the structure of the category payload inside the `data` array.

## Example Request

```
GET /api/categories?per_page=2
```

## Example Response

```json
{
    "current_page": 1,
    "data": [
        //...
    ],
    "first_page_url": "http://aero.test/api/categories?page=1",
    "from": 1,
    "last_page": 3,
    "last_page_url": "http://aero.test/api/categories?page=3",
    "next_page_url": "http://aero.test/api/categories?page=2",
    "path": "http://aero.test/api/categories",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 5
}
```

<p class="callout info">See [View Category Endpoint](https://support.aerocommerce.com/books/api/page/view-category-endpoint) for the structure of the category payload inside the `data` array.</p>