# Packages

These requests use the same endpoint, `/v3/client/packages`&#x20;

## Get package list and current (<mark style="color:purple;">GET</mark>)

To get the package list and the current package in use the main endpoint is used to request: `/v3/client/packages`&#x20;

The <mark style="color:purple;">GET</mark> should return a success (<mark style="color:$success;">200</mark>) and a JSON data like this:

```json
{
    "actual": "fursmpnh",
    "list": [
        "fursmpnh",
        "fursmpdw"
    ]
}
```

## Get metadata (<mark style="color:purple;">GET</mark>)

To get the metadata from any package is used the endpoint `/v3/client/packages/{packageName}` being the `{packageName}` the package name

If the package can't be found the server will return a <mark style="color:$danger;">404</mark> code

If successful the server shoud return a <mark style="color:$success;">200</mark> code and a JSON data like this:

```json
{
        "createdAt": 1772799534009,
        "createdBy": 63512401712529731467780656083392,
        "display": "FurSMP: New Horizon",
        "staffOnly": false,
        "name": "fursmpnh",
        "banner": "https://cdn.nextfur.net/v1/file/banner.png",
        "logo": "https://cdn.nextfur.net/v1/file/logo.png",
        "latest": "2-0-0",
        "beta_latest": null,
        "versions": [
                "1-0-0",
                "1-1-2",
                "1-2-3",
                "2-0-0"
        ]
    }
```
