Skip to content

Reference

46 endpoints, one bearer token.

The console and both SDKs are ordinary clients of this API. There is no private channel between the UI and the agent, so anything listed here you can call yourself.

authentication
# Everything is prefixed /api/v1. Everything except /health
# wants the bearer token the installer printed.

export VPSGUI_AGENT_TOKEN="paste-the-token-here"

curl -s https://vps.example.com/api/v1/system/telemetry \
  -H "Authorization: Bearer $VPSGUI_AGENT_TOKEN"

# 401 -> token wrong or missing
# 429 -> this client is locked out after repeated failures

ImportantPOST /terminal/exec runs arbitrary commands as the agent user. That one route is why the token is root-equivalent, and why the agent belongs on loopback behind a proxy you control.

46 / 46

Health & node

Liveness, agent build info, and the inventory of hosts this console knows about.

  • GET/healthLiveness probe. The only unauthenticated route.
  • GET/agent/infoAgent version, platform and configured roots.
  • GET/nodeIdentity and specs of the host running this agent.
  • GET/nodesEvery host registered with the console.
  • GET/health/matrixPer-subsystem health roll-up.
  • GET/topologyNode graph of what reaches what.

System

Live host metrics, the process table, and the package and service managers.

  • GET/system/telemetryCPU, memory, load, disk and network, read from /proc.
  • GET/system/processesProcess table with owner, CPU and RSS.
  • GET/system/packagesInstalled packages from the detected package manager.
  • POST/system/packages/installInstall a package via apt, dnf, apk or pacman.
  • GET/system/servicessystemd units with load, active and sub state.
  • POST/system/services/actionStart, stop, restart or enable a unit.
  • GET/usersLocal accounts with shell and home directory.

Docker

Container and image control through the local Docker socket.

  • GET/docker/containersContainers with state, image and ports.
  • POST/docker/containers/actionStart, stop, restart or remove a container.
  • GET/docker/imagesLocal images with tags, size and digest.
  • POST/docker/images/actionRemove an image, optionally forced.

Files

Confined to the configured roots. Paths are resolved with realpath before every call, and credential files are refused even inside an allowed root.

  • GET/filesDirectory listing with mode, owner, size and mtime.
  • GET/files/readFile contents, flagged truncated past the read cap.
  • POST/files/writeOverwrite a file. Refused for truncated reads.
  • POST/files/mkdirCreate a directory.
  • POST/files/renameRename or move within the roots.
  • POST/files/deleteDelete a path, optionally recursive.

Security

Firewall state, SSH key inventory, the audit log, and the encrypted secret store.

  • GET/security/firewallRules from nftables or ufw.
  • POST/security/firewall/actionAdd, delete, enable or disable a rule.
  • GET/security/ssh-keysauthorized_keys entries per user.
  • GET/security/audit-logsPrivileged calls the agent has served.
  • GET/security/secretsSecret names and metadata. Values stay masked.
  • POST/security/secretsCreate or update a secret, sealed with AES-256-GCM.
  • POST/security/secrets/revealDecrypt one secret. Audited.
  • POST/security/secrets/deleteRemove a secret from the store.

Network & storage

Interface inventory, geolocation proxied server-side, block devices and mounts.

  • GET/network/interfacesInterfaces with addresses and counters.
  • GET/network/ip-infoGeolocation proxied so the API token stays server-side.
  • GET/storage/partitionsBlock devices, mounts and usage.
  • GET/proxy/rulesReverse-proxy vhosts the agent can see.
  • GET/databasesDetected database engines and their listeners.

Operations

Deployments, backups, the catalog, workflows and the job queue.

  • GET/deploymentsGit-backed deployment directories and their HEAD.
  • POST/deployments/pullRun git pull in a tracked directory.
  • GET/backupsExisting archives with size and creation time.
  • POST/backups/createCreate a tar archive of a path.
  • POST/backups/restoreExtract an archive to a destination.
  • POST/backups/deleteDelete an archive.
  • GET/catalogOne-click stack templates.
  • GET/automation/workflowsDefined workflows and their last run.
  • GET/queue/jobsQueued and completed agent jobs.

Terminal

Command execution on the host. This is the endpoint that makes the token root-equivalent.

  • POST/terminal/execExecute a shell command and return stdout, stderr and exit code.