# Plugin Builder endpoints (Admin API)

> 14 FeatherPanel Admin API endpoints from admin/plugin-builder.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/plugin-builder/

Defined in [`backend/app/routes/admin/plugin-builder.php`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php). Authentication used here: **Admin**. 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/admin/plugin-builder/catalog`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-catalog`
- Controller: [`PluginBuilderController::catalog`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L27)

```bash
curl -X GET "$PANEL_URL/api/admin/plugin-builder/catalog" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/plugin-builder/presets/{preset}`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-preset`
- Controller: [`PluginBuilderController::preset`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L31)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `preset` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/plugin-builder/presets/$PRESET" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/generate`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-generate`
- Controller: [`PluginBuilderController::generate`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L35)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/generate" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/preview`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-preview`
- Controller: [`PluginBuilderController::preview`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L39)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/preview" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/dry-run`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-dry-run`
- Controller: [`PluginBuilderController::dryRun`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L43)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/dry-run" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/install`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-install`
- Controller: [`PluginBuilderController::install`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L47)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/install" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/export`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-export`
- Controller: [`PluginBuilderController::export`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L51)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/export" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/plugin-builder/plugins/{identifier}`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-load`
- Controller: [`PluginBuilderController::load`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L55)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `identifier` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/plugin-builder/plugins/$IDENTIFIER" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/plugin-builder/projects`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-list`
- Controller: [`PluginBuilderController::listProjects`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L59)

```bash
curl -X GET "$PANEL_URL/api/admin/plugin-builder/projects" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/projects`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-create`
- Controller: [`PluginBuilderController::createProject`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L63)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/projects" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/plugin-builder/projects/import`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-import`
- Controller: [`PluginBuilderController::importProject`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L67)

```bash
curl -X POST "$PANEL_URL/api/admin/plugin-builder/projects/import" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/plugin-builder/projects/{id}`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-get`
- Controller: [`PluginBuilderController::getProject`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L71)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/plugin-builder/projects/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PUT `/api/admin/plugin-builder/projects/{id}`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-update`
- Controller: [`PluginBuilderController::updateProject`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L75)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X PUT "$PANEL_URL/api/admin/plugin-builder/projects/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### DELETE `/api/admin/plugin-builder/projects/{id}`

- Auth: Admin
- Permission: `admin.root`
- Route name: `admin-plugin-builder-projects-delete`
- Controller: [`PluginBuilderController::deleteProject`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/PluginBuilderController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/plugin-builder.php#L79)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X DELETE "$PANEL_URL/api/admin/plugin-builder/projects/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```
