Skip to main content
GET
/
bots
/
{id}
/
metrics
/
history
curl "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/metrics/history?minutes=10" \
  -H "Authorization: Bearer sess_..."
{
  "success": true,
  "data": {
    "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "minutes": 10,
    "points": 20,
    "interval_seconds": 30,
    "history": [
      {
        "timestamp": "2025-01-15T09:50:00Z",
        "cpu_percent": 5.2,
        "ram_used": 100663296,
        "ram_limit": 268435456,
        "ram_percent": 37.5,
        "net_rx": 1000000,
        "net_tx": 500000,
        "net_rx_rate": 800.0,
        "net_tx_rate": 200.0,
        "pids": 3
      }
    ]
  }
}

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.

Path Parameters

id
string
required
UUID of the bot.

Query Parameters

minutes
number
default:"30"
How many minutes of history to return. Min: 1, Max: 30.
curl "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/metrics/history?minutes=10" \
  -H "Authorization: Bearer sess_..."
{
  "success": true,
  "data": {
    "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "minutes": 10,
    "points": 20,
    "interval_seconds": 30,
    "history": [
      {
        "timestamp": "2025-01-15T09:50:00Z",
        "cpu_percent": 5.2,
        "ram_used": 100663296,
        "ram_limit": 268435456,
        "ram_percent": 37.5,
        "net_rx": 1000000,
        "net_tx": 500000,
        "net_rx_rate": 800.0,
        "net_tx_rate": 200.0,
        "pids": 3
      }
    ]
  }
}