Proxmox API Documentation: Where to Start (pvesh & REST)

proxmox api documentation - custom-pxapidoc-featured.png

proxmox api documentation searches want the first commands — not the whole reference manual. Security: API tokens & automation.

pvesh on the node

Shell API explorer — same paths as REST.

bashnodes
pvesh get /nodes
pvesh get /nodes/$(hostname)/qemu
pvesh
get

REST base URL

HTTPS on port 8006, path /api2/json.

bashcurl ticket
curl -k -s 'https://127.0.0.1:8006/api2/json/version'
8006
api2

API tokens

Prefer tokens over root password for scripts.

bashtoken header
curl -k -H 'Authorization: PVEAPIToken=USER@pam!ID=SECRET' \
  'https://PVE:8006/api2/json/nodes'
token
header

Next steps

Terraform, Ansible, and observability hooks.

TipPair with pve-exporter for metrics.
automation
next

Quick Reference

Related tutorials

Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.