> ## Documentation Index
> Fetch the complete documentation index at: https://aeros-c1d071c8.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Public status

> GET /api/public/status: an optional read-only JSON feed of host metrics and service up/down counts.

`/api/public/status` exposes a small, read-only summary of the host for status pages, uptime monitors, or mobile alert clients. It is **disabled by default**. It never includes `.env` contents, commit SHAs, webhook secrets, or settings.

## Enable it

**1. Open Settings**

Go to **Settings > PUBLIC\_STATUS\_ENDPOINT** and set **STATUS: ENABLED**.

**2. Optionally set a token**

Enter a value in **OPTIONAL\_ACCESS\_TOKEN (Bearer or ?token=)**, or press **GEN** for a random one. Leave it blank for open read-only access.

**3. Save and test**

Press **SAVE\_STATUS\_CONFIG**, then **TEST** to see the live response.

![Settings page](https://mintcdn.com/aeros-c1d071c8/8fuJs39e8BgaLs5j/settings.png?fit=max\&auto=format\&n=8fuJs39e8BgaLs5j\&q=85\&s=539c99601cd9832cbc7ad5af1e93c6d8)

Settings page with the public status endpoint.

The same settings can be changed with `PUT /api/settings/public-status`. See [Settings endpoints](https://aeros-c1d071c8.mintlify.site/api/endpoints.md#settings).

## `GET /api/public/status`

No session needed. When a token is configured, send it in one of these ways:

**Authorization** `string`

`Bearer <token>`. Takes precedence over the query parameter.

**token** `string`

The token as a query parameter, for clients that cannot set headers. Query strings can end up in proxy and browser logs, so prefer the header.

```bash Header theme={null}
curl -s -H 'Authorization: Bearer <token>' https://panel.example.com/api/public/status
```

```bash Query theme={null}
curl -s 'https://panel.example.com/api/public/status?token=<token>'
```

```json 200 theme={null}
{
  "status": "operational",
  "timestamp": "2026-11-21T18:00:00.000Z",
  "panel": { "name": "AerosPanel", "version": "2.0.0" },
  "host": { "hostname": "celeron-homelab", "uptime": 412800 },
  "metrics": {
    "cpuPercent": 4,
    "memoryPercent": 19.2,
    "memoryUsedMb": 786,
    "memoryTotalMb": 4096,
    "storagePercent": 28.4,
    "temperatureC": 43.5
  },
  "services": {
    "total": 3,
    "up": 3,
    "down": 0,
    "items": [
      { "name": "Discord Bot", "service_name": "discord-bot", "status": "active" }
    ]
  }
}
```

```json 401 theme={null}
{ "error": "Invalid or missing status token" }
```

```json 404 theme={null}
{ "error": "Public status endpoint is disabled" }
```

### Response fields

**status** `string`

`operational` when every service is active or there are none, `down` when none is active, `degraded` otherwise.

**timestamp** `string`

ISO 8601 time the payload was built.

**panel** `object`

**properties**

**name** `string`

Always `AerosPanel`.

**version** `string`

Feed format version.

**host** `object`

**properties**

**hostname** `string`

The host name.

**uptime** `number`

System uptime in seconds.

**metrics** `object`

**properties**

**cpuPercent** `number`

CPU usage percentage.

**memoryPercent** `number`

Memory used, one decimal.

**memoryUsedMb** `number`

Memory used in MB.

**memoryTotalMb** `number`

Total memory in MB.

**storagePercent** `number`

Root filesystem used, one decimal.

**temperatureC** `number | null`

`thermal_zone0` temperature, or `null` if the host does not expose it.

**services** `object`

**properties**

**total** `number`

Number of projects.

**up** `number`

Projects whose unit is `active`.

**down** `number`

`total - up`.

**items** `object[]`

`name`, `service_name`, and `status` (the `systemctl is-active` result) for each project.

## Behavior

* **Caching:** the payload is cached for 2 seconds. Saving the settings clears the cache.
* **CORS:** responses carry `Access-Control-Allow-Origin: *`, so a status page on another domain can fetch it from the browser. `OPTIONS` preflight allows `GET` and the `Authorization` header.
* **No caching downstream:** `Cache-Control: no-store`.
* **Token check:** compared with `crypto.timingSafeEqual`.

> [!NOTE]
>
> With no token set, anyone who can reach the panel can read the feed. It reveals the hostname, load figures, and project and service names. Set a token if the panel is reachable from the internet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.