Get your free beta license ↗
API operation · load group
GET

/load/sessions/{id}/readings

First published 26 Oct 20260.2.17Unchanged since publication

Get incremental readings from a Load monitor session

Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsreadall
Answers200 OK

Returns the session, including its state, and the completed readings after the number specified by after. A reading in progress becomes available on the first request after it is complete.

Poll every few seconds to receive new readings and keep a running session active. A running session ends after one minute without a request for its readings.

An invalid session ID format or after value returns 400. If the session does not exist, the operation returns 404.

Parameters

idpath ·string, matching ^[0-9]{8}-[0-9]{6}$Required
Session ID derived from the UTC start time, in YYYYMMDD-HHMMSS format. Example ID 20261025-171203.
afterquery ·integer, 0 to 720
Number of readings the client already has and wants to skip. An integer from 0 to 720, defaulting to 0.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/load/sessions/1/readings?after=1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "readings": [
    {
      "apache": {
        "answered": true,
        "busy": 1,
        "closing": 1,
        "connections": 1,
        "full": true,
        "idle": 1,
        "keepalive": 1,
        "ms": 1,
        "processes": 1,
        "reason": "text",
        "scoreboard": "text",
        "stopping": 1,
        "writing": 1
      },
      "at": "text",
      "backlog_http": {},
      "blocked": 1,
      "cores": 1,
      "cpu": {
        "idle": 1,
        "iowait": 1,
        "steal": 1,
        "system": 1,
        "user": 1
      },
      "disks": {},
      "dstate": [
        {
          "name": "alice",
          "pid": 1,
          "user": "alice",
          "wchan": "text"
        }
      ],
      "dt": 1,
      "error": "Domain 'example.com' already exists",
      "kernel_errors": [
        "text"
      ],
      "load": [
        1
      ],
      "mariadb": {
        "answered": true,
        "installed": true,
        "long": [
          {
            "database": "alice_shop",
            "query": "text",
            "seconds": 1,
            "state": "text",
            "user": "alice"
          }
        ],
        "reason": "text",
        "stuck": true,
        "threads_connected": 1,
        "threads_running": 1,
        "version": "0.0.1"
      },
      "memory_kb": {
        "available": 1,
        "dirty": 1,
        "swap_total": 1,
        "swap_used": 1,
        "total": 1,
        "writeback": 1
      },
      "n": 1,
      "pools": [
        {
          "busy": 1,
          "hits": 1,
          "idle": 1,
          "kind": "domain",
          "max": 1,
          "name": "alice",
          "peak": 1,
          "php": "text",
          "running": 1,
          "running_peak": 1,
          "set_in": {
            "domain": "example.com",
            "file": "urbestack-panel-20260909T101500Z.json.enc",
            "key": "panel.port"
          },
          "user": "alice",
          "waiting": 1,
          "waiting_peak": 1
        }
      ],
      "processes": 1,
      "raid": [
        {
          "action": "text",
          "device": "text",
          "finish": "text",
          "progress": 100,
          "speed_kb_s": 1
        }
      ],
      "running": 1,
      "swap_pages_s": {
        "in": 1,
        "out": 1
      },
      "t": 1,
      "top_cpu": [
        {
          "cpu_pct": 1,
          "name": "alice",
          "pid": 1,
          "rss_kb": 1,
          "user": "alice"
        }
      ],
      "top_io": [
        {
          "name": "alice",
          "pid": 1,
          "read_b_s": 1,
          "user": "alice",
          "write_b_s": 1
        }
      ],
      "top_memory": [
        {
          "name": "alice",
          "pid": 1,
          "rss_kb": 1,
          "user": "alice"
        }
      ],
      "waiting_http": {}
    }
  ],
  "session": {
    "ended_at": "text",
    "ends_at": "text",
    "every": 1,
    "how": "done",
    "id": 1,
    "keep": true,
    "readings": 1,
    "started_at": "2026-09-09T10:15:01Z",
    "started_by": "text",
    "state": "running",
    "stopped_by": "text",
    "taken": 1,
    "worst": {
      "apache_busy_max": 1,
      "apache_full": 1,
      "blocked_max": 1,
      "disk": {
        "busy_pct": 1,
        "name": "alice",
        "wait_ms": 1
      },
      "iowait_max": 1,
      "kernel_errors": 1,
      "load_max": 1,
      "mariadb_stuck": 1,
      "pool": {
        "domain": "example.com",
        "hits": 1,
        "kind": "domain",
        "max": 1,
        "name": "alice",
        "peak": 1,
        "php": "text",
        "waiting_peak": 1
      },
      "query": {
        "database": "alice_shop",
        "seconds": 1,
        "state": "text",
        "user": "alice"
      },
      "running_max": 1,
      "steal_max": 1,
      "threads_running_max": 1
    }
  }
}

Errors

4 errors, each a status and a sentence
400A session ID is the moment it started, like 20261025-171203
400Invalid id
401Authentication required
404No session <id>
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.17 on 26 Oct 2026.
urbestack.com/docs/api/get-load-sessions-id-readings/