# Ai Helper endpoints (Client API: game servers)

> 1 FeatherPanel Client API: game servers endpoint from user/server/ai-helper.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/user/server/ai-helper/

Defined in [`backend/app/routes/user/server/ai-helper.php`](https://github.com/MythicalLTD/FeatherPanel/blob/b7d8353f30f822c6aeae3b7be72604deedc5aa92/backend/app/routes/user/server/ai-helper.php). Authentication used here: **Server access**. 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

### POST `/api/user/servers/{uuidShort}/ai/helper`

- Auth: Server access
- Default rate limit: 12 / minute (`user-server-ai-helper`)
- Route name: `user-server-ai-helper`
- Controller: [`ServerAiHelperController::explain`](https://github.com/MythicalLTD/FeatherPanel/blob/b7d8353f30f822c6aeae3b7be72604deedc5aa92/backend/app/Controllers/User/Server/ServerAiHelperController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/b7d8353f30f822c6aeae3b7be72604deedc5aa92/backend/app/routes/user/server/ai-helper.php#L25)

**Explain console errors and suggest a file diff** Uses the panel chatbot provider (OpenRouter etc.). Secrets are redacted before leaving the panel. Suggestions are never auto-applied.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `uuidShort` | path | string | yes |  |

| Body field | Type | Required | Description |
| --- | --- | --- | --- |
| `console_log` | string | no |  |
| `file_path` | string | no |  |
| `file_content` | string | no |  |
| `question` | string | no |  |

```bash
curl -X POST "$PANEL_URL/api/user/servers/$UUID_SHORT/ai/helper" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"console_log":"","file_path":"","file_content":"","question":""}'
```

Responses: `200` Explanation and optional suggested diff · `400` Invalid request · `403` Disabled or permission denied
