# Debug endpoints (System (public))

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

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

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

- Auth: Public
- Route name: `debug-ip`
- Controller: [`DebugController::getIPDebugInfo`](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/Controllers/System/DebugController.php)
- only when APP\_DEBUG is on
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/15b94e9fc9df233123706b47c42728b81e48cb3d/backend/app/routes/system/debug.php#L37)

**Get IP detection debug information** Returns debug information about IP detection and all relevant headers. Use this to troubleshoot IP detection issues.

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

| Response `data` field | Type | Description |
| --- | --- | --- |
| `ip_info` | object | IP detection debug information |
| `headers` | object | All HTTP headers |
| `server_vars` | object | Relevant $\_SERVER variables |

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

Responses: `200` Debug information retrieved successfully
