> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phanomcloud.online/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Logs

> Returns the last N lines of stdout/stderr logs captured from the bot's Docker container.

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the bot.
</ParamField>

## Query Parameters

<ParamField query="lines" type="number" default="100">
  Number of log lines to return. Maximum: `500`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/logs?lines=50" \
    -H "Authorization: Bearer sess_..."
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "lines": 3,
      "logs": [
        "[2025-01-15 10:00:01] Bot started successfully",
        "[2025-01-15 10:00:02] Connected to Discord",
        "[2025-01-15 10:00:05] Listening for commands..."
      ]
    }
  }
  ```
</ResponseExample>
