API Reference

ProxMenux Monitor~22 min

HTTP endpoints for reading state and invoking documented actions on ProxMenux Monitor: Home Assistant sensors, Homepage cards, Grafana dashboards, Prometheus collection, n8n flows and custom scripts. Includes endpoint categories, exported metrics and curl examples.

What this page is for

This page lists the endpoints we expect external integrations to use — read-only data export across every part of the Monitor, plus the small set of write operations that automations legitimately need (trigger a backup, send a custom notification, acknowledge an alert). The whole API runs from the same Flask process that serves the dashboard UI on TCP 8008; bind address and TLS are configured in Access & Authentication.

Authentication

When authentication is enabled, protected endpoints expect a JWT bearer token in the request header:

curl -H "Authorization: Bearer <token>" http://<host>:8008/api/system | jq

Two ways to obtain the token:

  • API tokens (recommended for integrations). Tokens valid for 365 days, created under Security → API Tokens. Each has a name and can be revoked individually. Use read_only for data collection and select full_admin only for integrations that need administrative actions.
  • Login flow (24-hour JWT). POST /api/auth/login with a username, password and TOTP token when required by 2FA. The returned session JWT expires after 24 hours; scripts must authenticate again when it expires.

The auth flow, password policy, 2FA setup, audit log and TLS configuration all live in Access & Authentication.

EndpointMethodUse
/api/auth/loginPOSTBody fields (schematic): {"username","password","totp_token?"}. Returns a 24-hour session JWT.
/api/auth/api-tokensGETList API tokens (metadata only — names, prefixes, dates; never the actual secret).
/api/auth/generate-api-tokenPOSTCreate a 365-day API token using an authenticated session. Body fields: password, token_name?, totp_token?, scope?. Password and any required TOTP are checked again. Scope defaults to read_only; full_admin must be selected explicitly. The secret is returned only once.
/api/auth/api-tokens/<id>DELETERevoke a specific API token by its ID.

Conventions

  • Most endpoints use JSON. Downloads can return plain text, and /api/prometheus returns Prometheus text exposition format version 0.0.4 rather than OpenMetrics. Check the response type of the specific route.
  • Many write endpoints return {"success": true, ...}. Error formats vary; a common form is {"success": false, "error": "<reason>"}. Check both HTTP status and response fields: some authentication challenges return HTTP 200 with success false.
  • Query parameters vary by endpoint. Use limit, offset, since and category-specific filters only where the route supports them.
  • Time formats vary by endpoint: Unix timestamps, ISO-8601 strings and systemd-formatted dates all occur. Do not assume every time field has the same unit or an explicit timezone.

System & hardware

EndpointMethodUse
/api/systemGETCPU, memory, swap, uptime, load — current snapshot.
/api/infoGETStatic host info: hostname, kernel, PVE version, CPU model, distro.
/api/system-infoGETLightweight header info: hostname, uptime and cached health status. Without a token it returns only the health status.
/api/hardwareGETDetailed hardware inventory — PCI devices, GPUs, sensors map.
/api/hardware/liveGETLive values for sensors that change second to second.
/api/temperature/historyGETTime series of CPU / package temperatures.
/api/gpu/<slot>/realtimeGETNVIDIA / Intel / AMD GPU live metrics by PCI slot.

System actions

The asynchronous system actions below start operations in transient systemd units. With authentication enabled, their write routes require full_admin; read_only tokens can poll .../status. Accepted starts return HTTP 202 with a state snapshot; poll the matching .../status for progress. Guest control and backup use different response contracts, described below.

Common response shape

Asynchronous system actions share the JSON state object below. Guest-control and backup responses have different shapes:

{
  "unit": "proxmenux-action-pve-update.service",
  "state": "idle | running | success | failed | cancelled",
  "started_at": "Sat 2026-08-01 11:01:32 CEST",
  "finished_at": null,
  "exit_code": null,
  "result": null
}

Concurrency and cancellation

Starting a second run of the same system action returns HTTP 409 while it is active. Cancellation is available only for actions with a documented DELETE route, such as PVE update. Their state becomes cancelled and preserves timestamps. Terminal snapshots are kept in process memory and can be lost when the Monitor restarts.

EndpointMethodUse
/api/system/power/rebootPOSTReboot the Proxmox host. Fire-and-forget — the HTTP connection drops when systemd starts the shutdown sequence.
/api/system/power/reboot/statusGETState of the last / current reboot action.
/api/system/power/shutdownPOSTPower off the Proxmox host. Useful as an effect wired to a UPS shutdown signal.
/api/system/power/shutdown/statusGETState of the last / current shutdown action.
/api/system/pve-update/runPOSTTrigger the safe PVE update flow (the same one the Health Monitor's Update Now button and the shell menu run — delegates to update-pve-safe.sh).
/api/system/pve-update/statusGETState of the last / current PVE update run.
/api/system/pve-updateDELETECancel a PVE update in progress (SIGTERM to the running script).
/api/proxmenux/self-update/runPOSTUpdate ProxMenux using the installer for the configured stable or beta channel. It runs in its own systemd unit so the job can survive the proxmenux-monitor service restart performed by the installer.
/api/proxmenux/self-update/statusGETState of the last / current ProxMenux self-update run.
/api/vms/<vmid>/controlPOSTSubmit VM or LXC power control. Body field action accepts start, stop, shutdown or reboot. A successful response returns a confirmed PVE task; it does not mean the operation has completed. Poll the guest control-task endpoint for its outcome.
/api/vms/<vmid>/backupPOSTCreate a vzdump backup of a VM or LXC. Body fields, all optional unless the defaults do not match the storage layout: storage (a PVE storage), mode (snapshot, suspend or stop), compress (zstd, lzo, gzip or none), protected (true or false), notes and pbs_change_detection (default, legacy or data). Returns the PVE task UPID.
/api/vms/<vmid>/backupsGETList previous backups for a VM or LXC across all reachable storages.

Two flavours of action

Host power, PVE update and ProxMenux self-update run in transient systemd units with a .../status endpoint. Only PVE update has the DELETE cancellation route listed here. VM/LXC control returns a PVE task that must be polled; backup returns a UPID for a background job. An accepted request is not completion. Authentication and scope requirements depend on the route.

curl example

Fire a PVE update and poll for completion — the exact same sequence a Home Assistant automation or an Ansible playbook would run:

TOKEN=<your full_admin token>

curl -sSf -X POST \
  -H "Authorization: Bearer $TOKEN" \
  https://<host>:8008/api/system/pve-update/run

while true; do
  state=$(curl -sSf -H "Authorization: Bearer $TOKEN" \
    https://<host>:8008/api/system/pve-update/status | jq -r .state)
  [ "$state" != "running" ] && break
  sleep 30
done
echo "final state: $state"

Home Assistant integration snippet

A rest sensor polls the state and a rest_command triggers the update. Wire both to a dashboard button and to any automation you like:

# configuration.yaml
sensor:
  - platform: rest
    resource: https://pve.local:8008/api/system/pve-update/status
    name: pve_update_state
    value_template: "{{ value_json.state }}"
    scan_interval: 60
    headers:
      Authorization: "Bearer !secret proxmenux_token"

rest_command:
  pve_update:
    url: https://pve.local:8008/api/system/pve-update/run
    method: POST
    headers:
      Authorization: "Bearer !secret proxmenux_token"

  # Start VM 100 (works for LXC too — same endpoint)
  vm_100_start:
    url: https://pve.local:8008/api/vms/100/control
    method: POST
    content_type: 'application/json'
    payload: '{"action": "start"}'
    headers:
      Authorization: "Bearer !secret proxmenux_token"

  # Backup VM 100 to the 'pbs-main' storage
  vm_100_backup:
    url: https://pve.local:8008/api/vms/100/backup
    method: POST
    content_type: 'application/json'
    payload: '{"storage": "pbs-main", "mode": "snapshot", "compress": "zstd"}'
    headers:
      Authorization: "Bearer !secret proxmenux_token"

Health Monitor

EndpointMethodUse
/api/healthGETSmall health probe returning JSON with status, timestamp and version. Suitable for Uptime Kuma keyword checks; when authentication is enabled, the client must send the bearer header.
/api/health/statusGETOverall health verdict — single severity + summary string.
/api/health/detailsGETAll ten categories with per-category statuses and the structured payload that produced each.
/api/health/fullGETFull snapshot: categories, active errors, dismissed alerts and custom suppression settings. It uses background check results when less than six minutes old; otherwise, or on a forced refresh, it runs a fresh check.
/api/health/active-errorsGETActive list, filterable by ?category=<name>.
/api/health/dismissedGETDismissed list with remaining suppression hours.
/api/health/settingsGETPer-category Suppression Duration values currently configured.
/api/health/remote-storagesGETInventory of Proxmox-defined remote storages, with online state.
/api/health/interfacesGETInventory of network interfaces with type (bridge / bond / physical), IP and link speed.
/api/health/acknowledgePOSTBody: {"error_key":"smart_sdh"}. Dismiss an alert with the category's configured Suppression Duration.
/api/health/cleanup-orphansPOSTManual cleanup of errors whose underlying device or VM is gone. Idempotent.

Response shapes and the semantics of the categories live in Health Monitor.

Storage

EndpointMethodUse
/api/storageGETAll disks visible to the host (block devices, ZFS pools, LVM).
/api/storage/summaryGETCompact summary used by dashboard cards.
/api/proxmox-storageGETProxmox-defined storages from /etc/pve/storage.cfg with online state and free space.
/api/storage/observationsGETPermanent disk observation history — SMART warnings, I/O errors, ZFS pool events, kept across error auto-resolves.
/api/storage/smart/<disk>GETCurrent SMART attributes for one disk.
/api/storage/smart/<disk>/latestGETMost recent SMART self-test for the disk.
/api/storage/smart/<disk>/historyGETList of stored SMART reports for the disk.
/api/storage/smart/<disk>/history/<file>GETRead a specific stored SMART report.
/api/storage/smart/<disk>/testPOSTStart a SMART self-test. Body schema: {"test_type":"short"|"long"}.
/api/storage/smart/schedulesGETList the currently scheduled SMART tests.
/api/storage/smart/toolsGETDetect whether smartctl and friends are installed.

Network

EndpointMethodUse
/api/networkGETAll interfaces with link state and addresses.
/api/network/summaryGETCompact view used by the dashboard.
/api/network/<iface>/metricsGETPer-interface RX / TX, error counters, RRD time series.
/api/network/latency/currentGETLatest gateway latency probe.
/api/network/latency/historyGETTime series of gateway latency.

VMs & containers

EndpointMethodUse
/api/vmsGETVMs and CTs on the local node, with status, vmid and name.
/api/vms/<vmid>GETFull detail for one guest (config, network, disks).
/api/vms/<vmid>/metricsGETCPU / memory / disk I/O time series for one guest (RRD).
/api/vms/<vmid>/logsGETRecent task logs scoped to that guest.
/api/vms/<vmid>/backupsGETList backups currently held for this guest.
/api/vms/<vmid>/controlPOSTChoose one action from the body schema: {"action":"start|stop|reboot|shutdown"}. Controls guest power state.
/api/vms/<vmid>/backupPOSTTrigger vzdump for that guest. Body chooses storage and mode (snapshot / suspend / stop).
/api/vms/<vmid>/configPUTUpdate the description (notes) field of a VM / CT. Other config keys are not modifiable from this endpoint.
/api/node/metricsGETAggregated node-level metrics (RRD).

Backups

EndpointMethodUse
/api/backupsGETBackups found in dir, NFS, CIFS and PBS storages queried through the local node. This is not an exhaustive scan of every cluster node.
/api/backup-storagesGETStorages flagged as backup targets, with free space.

Logs, tasks, events

EndpointMethodUse
/api/logsGETFiltered journal entries. Query: ?priority=&service=&limit=&since_days= (priority 0-7, since_days up to 90).
/api/logs/downloadGETPlain-text dump of the filtered range.
/api/eventsGETRecent Proxmox cluster tasks and events from pvesh get /cluster/tasks. Query: ?limit= (default 50).
/api/task-log/<upid>GETPlain-text complete log for one Proxmox task by UPID.

Notifications & AI

The dispatch pipeline, channel walk-throughs and AI rewriter setup live in Notifications and AI Assistant.

EndpointMethodUse
/api/notificationsGETRecent notifications surfaced in the dashboard.
/api/notifications/downloadGETExport notifications as text.
/api/notifications/statusGETDispatcher status — whether the background thread is running, queue depth, last send.
/api/notifications/settingsGETRead the full notification config (channels, per-event toggles, AI rewriter, Display Name).
/api/notifications/historyGETDispatch history. Query: ?limit=&offset=&severity=&channel=.
/api/notifications/historyDELETEWipe the dispatch history table.
/api/notifications/testPOSTSend a test notification to one channel. Body: {"channel":"telegram"}.
/api/notifications/sendPOSTEmit a custom event. Body: {"event_type":"custom","severity":"WARNING","title":"...","message":"...","data":{'}'}.
/api/notifications/test-aiPOSTTest the AI provider connection. Body fields (schematic): {"provider","api_key","model","ollama_url?"}.
/api/notifications/provider-modelsPOSTList available models for the selected AI provider.
/api/notifications/proxmox/setup-webhookPOSTRegister the Monitor as a webhook target in /etc/pve/notifications.cfg.
/api/notifications/proxmox/cleanup-webhookPOSTRemove the Monitor target from PVE's notification config.
/api/notifications/proxmox/read-cfgGETRead PVE's current notifications.cfg as PVE sees it.

Security (read)

EndpointMethodUse
/api/security/firewall/statusGETPVE firewall state and active rules.
/api/security/fail2ban/detailsGETFail2Ban jail status — only useful when the optional jail is installed.
/api/security/fail2ban/activityGETRecent Fail2Ban events (bans, unbans, jail starts).
/api/security/lynis/statusGETLynis last-run status (whether installed, last scan timestamp).
/api/security/lynis/reportGETLatest Lynis audit report (warnings, suggestions, hardening index).
/api/security/toolsGETDetect which optional security tools (Fail2Ban, Lynis) are installed.

ProxMenux integration

EndpointMethodUse
/api/proxmenux/update-statusGETWhether ProxMenux Monitor has an update available, current and latest version.
/api/proxmenux/installed-toolsGETList of every ProxMenux post-install optimization currently registered on the host (from /usr/local/share/proxmenux/installed_tools.json).
/api/proxmenux/tool-source/<key>GETSource of the mapped post-install function, extracted from current host scripts or preserved legacy code. This is not a guaranteed snapshot of the exact code originally executed.

Prometheus metrics

The authenticated GET /api/prometheus endpoint returns Prometheus text exposition format version 0.0.4. Every metric includes node="<hostname>" and an explicit timestamp. Collect it with Prometheus or another compatible time-series database.

Exported metrics

GroupMetricDescription
Systemproxmox_cpu_usageCPU usage percentage (gauge).
proxmox_memory_total_bytesTotal physical memory in bytes.
proxmox_memory_used_bytesUsed memory in bytes.
proxmox_memory_usage_percentMemory usage percentage.
proxmox_load_averageSystem load average. Label period="1m" | "5m" | "15m".
Uptimeproxmox_uptime_secondsSeconds since last boot.
Hardwareproxmox_cpu_temperature_celsiusCPU package temperature.
proxmox_disk_temperature_celsiusTemperature per disk. Label disk.
proxmox_fan_speed_rpmFan speeds. Label fan.
Disk spaceproxmox_disk_total_bytesTotal capacity per exported disk entry. Label disk.
proxmox_disk_used_bytesUsed capacity per exported disk entry.
proxmox_disk_usage_percentUsed capacity percentage per exported disk entry.
Networkproxmox_network_bytes_sent_totalTotal bytes sent (counter).
proxmox_network_bytes_received_totalTotal bytes received (counter).
proxmox_interface_bytes_sent_totalPer-interface bytes sent. Label interface.
proxmox_interface_bytes_received_totalPer-interface bytes received.
VMs / CTsproxmox_vms_totalTotal number of VMs and LXCs.
proxmox_vms_runningNumber of running guests.
proxmox_vms_stoppedNumber of stopped guests.
proxmox_vm_statusStatus per VM/CT (1 = running, 0 = otherwise). Labels node, vmid, name.
proxmox_vm_cpu_usagePer-VM/CT CPU usage. Same labels.
proxmox_vm_memory_used_bytes / _max_bytesPer-VM/CT memory used and configured maximum.
GPUproxmox_gpu_temperature_celsiusGPU temperature. Labels slot, vendor; also includes the gpu name label.
proxmox_gpu_utilization_percentGPU utilization percentage.
proxmox_gpu_memory_total_bytesGPU memory total.
proxmox_gpu_power_draw_wattsGPU power draw in watts.
proxmox_gpu_clock_speed_mhzGPU core clock speed.
proxmox_gpu_memory_clock_mhzGPU memory clock speed.
UPSproxmox_ups_battery_charge_percentBattery charge percentage.
proxmox_ups_load_percentCurrent load on the UPS.
proxmox_ups_runtime_secondsEstimated runtime on battery.
proxmox_ups_input_voltage_voltsInput voltage.

Prometheus scrape config

When authentication is enabled, pass an API token in the bearer header of your Prometheus collection configuration:

# /etc/prometheus/prometheus.yml
scrape_configs:
  - job_name: 'proxmenux'
    metrics_path: /api/prometheus
    scheme: https              # or http if TLS isn't enabled in ProxMenux
    scrape_interval: 30s
    authorization:
      type: Bearer
      credentials: '<your-api-token>'
    static_configs:
      - targets:
          - 'pve01.lan:8008'
          - 'pve02.lan:8008'
          - 'pve03.lan:8008'

Per-host scrape

Each ProxMenux Monitor instance exports metrics for the host it runs on. In a cluster, point Prometheus at every node — the node label on every series lets you distinguish them in Grafana queries (proxmox_vms_running{node="pve01"}).

Putting it together

For end-to-end recipes wiring these endpoints into Home Assistant sensors, Homepage cards, Grafana dashboards, n8n flows and other tools, see the dedicated Integrations page — it walks through the typical setup for each platform with copy-paste configuration. This page stays focused on the catalogue itself.

Where to next

  • Access & Authentication — minting tokens, the audit log, the optional Fail2Ban jail, TLS configuration.
  • Notifications — what each event type carries in data when you call /api/notifications/send.
  • AI Assistant — how /api/notifications/test-ai and /api/notifications/provider-models are wired.
  • Health Monitor — the response shape of /api/health/* and the semantics of the ten categories.