> For the complete documentation index, see [llms.txt](https://wemx.gitbook.io/wemx-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wemx.gitbook.io/wemx-api/api-reference/categories.md).

# Categories

## Get all categories

<mark style="color:blue;">`GET`</mark> `https://wemx.app/api/v1/categories`

Returns all categories made on your application

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "status": true,
    "current_page": 1,
    "data": [
        {
            "id": 2,
            "status": "active",
            "name": "Web",
            "link": "web",
            "icon": "web.png",
            "order": 0,
            "description": "View all plans for web packages",
            "created_at": "2023-09-26T21:33:53.000000Z",
            "updated_at": "2023-12-07T19:26:58.000000Z"
        }
        // more results
    ],
    "first_page_url": "http://wemx.app/api/v1/categories?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://wemx.app/api/v1/categories?page=1",
    "links": [
        {
            "url": null,
            "label": "Previous",
            "active": false
        },
        {
            "url": "http://wemx.app/api/v1/categories?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "http://wemx.app/api/v1/categories",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
```

{% endtab %}
{% endtabs %}

### Available Relationships (optional)

```
https://wemx.app/api/v1/categories?include=packages
```

#### Available relationships:

`packages`

## Filters (optional)

```
https://wemx.app/api/v1/categories?filter[status]=active
```

#### Available Filters:

`id`, `status`, `name`, `description`, `link`, `icon`

## Sorting (optional)

```
https://wemx.app/api/v1/categories?sort[order]=asc
```

#### Available Sorting Parameters:

`id`, `status`, `name`, `order`, `created_at`

#### Sorting operators

`asc`, `desc`, `random`

## Dates (optional)

```
https://wemx.app/api/v1/categories?date=30days
```

<table><thead><tr><th width="390">Operator</th><th>Description</th></tr></thead><tbody><tr><td>today</td><td>Get categories created today</td></tr><tr><td>yesterday</td><td>Get categories created yesterday</td></tr><tr><td><code>3days</code>, <code>7days</code>, <code>14days</code>, <code>30days</code>, <code>90days</code></td><td>Get categories created last x days</td></tr><tr><td>YYYY-MM-DD,YYY-MM-DD</td><td>Get categories created between a range of dates</td></tr></tbody></table>
