# Self-test endpoints (System (public))

> 1 FeatherPanel System (public) endpoint from system/selftest.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/system/selftest/

Defined in [`backend/app/routes/system/selftest.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/system/selftest.php). Authentication used here: **Public**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### GET `/api/selftest`

- Auth: Public
- Route name: `system-selftest`
- Controller: [`SelfTest::getSelfTest`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/System/SelfTest.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/system/selftest.php#L24)

**Selftest** Runs a selftest to check if the system is working correctly. Response is cached for 1 hour.

Response data: [`SelftestResponse`](https://featherpanel.com/docs/api/schemas/#schema-selftestresponse)

| Response `data` field | Type | Description |
| --- | --- | --- |
| `status` | string | Overall system status |
| `checks` | object | Individual check results |
| `timestamp` | integer | This check timestamp |
| `cached` | boolean | If the response is cached |

```bash
curl -X GET "$PANEL_URL/api/selftest" \
  -H "Accept: application/json"
```

Responses: `200` Selftest information retrieved successfully
