# Plugin Themes endpoints (System (public))

> 2 FeatherPanel System (public) endpoints from system/plugin-themes.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/system/plugin-themes/

Defined in [`backend/app/routes/system/plugin-themes.php`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/system/plugin-themes.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/system/plugin-themes`

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

**List plugin theme packs** Aggregate Frontend/theme.json declarations from installed plugins.

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

Plugin events: [`featherpanel:system:plugins:ui:themes:retrieved`](https://featherpanel.com/docs/plugins/events/plugin-ui/#themes-retrieved)

Responses: `200` Theme packs retrieved successfully · `500` Internal server error

### GET `/api/system/plugin-theme-css`

- Auth: Public
- Route name: `plugin-theme-css`
- Controller: [`PluginThemesController::css`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/System/PluginThemesController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/system/plugin-themes.php#L33)

**Get active plugin theme CSS** Serve Frontend theme CSS for a specific pack id (plugin:packId).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | query | string | yes | Theme pack id in the form pluginId:themeId |

```bash
curl -X GET "$PANEL_URL/api/system/plugin-theme-css?id=$ID" \
  -H "Accept: application/json"
```

Responses: `200` Theme CSS · `404` Theme CSS not found
