Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Reference

DockPanel exposes 840 REST endpoints (545 backend + 295 agent) across 50+ categories — the figure derived from the two routers in FEATURES.md §Verified Metrics, which owns it. The tables below document the commonly used subset, not every route. All endpoints except /api/health, /api/branding, /api/auth/setup-status, and /api/auth/login require authentication.

Authentication

All authenticated requests require either:

  • Cookie: token=<JWT> (set by login response)
  • Bearer: Authorization: Bearer <JWT>

JWTs expire after 2 hours. Obtain one via POST /api/auth/login.

Multi-server

Include X-Server-Id: <uuid> header to target a specific server. Omit for the local server.


Auth (18 endpoints)

GET /api/auth/setup-status

Check if initial admin setup is needed. No auth required.

Response: { "needs_setup": true }

POST /api/auth/setup

Create the initial admin account. Only works once.

{ "email": "admin@example.com", "password": "SecurePass123!" }

POST /api/auth/login

Authenticate and receive a JWT cookie.

{ "email": "admin@example.com", "password": "SecurePass123!" }

Response: { "user": { "id": "uuid", "email": "...", "role": "admin" } } If 2FA enabled: { "requires_2fa": true, "temp_token": "..." }

POST /api/auth/2fa/verify

Complete 2FA challenge.

{ "temp_token": "...", "code": "123456" }

POST /api/auth/logout

Invalidate the current JWT.

GET /api/auth/me

Get the authenticated user’s profile.

Other auth endpoints

MethodPathPurpose
POST/api/auth/registerCreate user account
POST/api/auth/verify-emailVerify email token
POST/api/auth/forgot-passwordRequest password reset
POST/api/auth/reset-passwordReset password with token
POST/api/auth/change-passwordChange password (authenticated)
POST/api/auth/revoke-allRevoke all sessions
POST/api/auth/2fa/setupGet TOTP QR code
POST/api/auth/2fa/enableEnable 2FA with verification code
POST/api/auth/2fa/disableDisable 2FA (TOTP or recovery code)
POST/api/auth/2fa/recovery-codesIssue a fresh set of recovery codes
GET/api/auth/2fa/status2FA state, enforcement, recovery codes remaining
GET/api/auth/oauth/{provider}Start OAuth flow (google/github/gitlab)
GET/api/auth/oauth/{provider}/callbackOAuth callback

Sites (70 endpoints)

POST /api/sites

Create a new site.

{
  "domain": "example.com",
  "runtime": "php",
  "php_version": "8.3",
  "proxy_port": null,
  "app_command": null,
  "cms": "wordpress",
  "site_title": "My Site",
  "admin_email": "admin@example.com",
  "admin_user": "admin",
  "admin_password": "WpPass123!"
}

Runtimes: static, php, proxy, node, python CMS options: wordpress, laravel, drupal, joomla, symfony, codeigniter

GET /api/sites

List all sites for the authenticated user.

GET /api/sites/{id}

Get site details.

DELETE /api/sites/{id}

Delete site and all associated resources (database containers, nginx config, SSL, crons, backups).

Files

MethodPathBody
GET/api/sites/{id}/files?path=.List directory
GET/api/sites/{id}/files/read?path=index.htmlRead file content
PUT/api/sites/{id}/files/write{ "path": "file.txt", "content": "..." }
POST/api/sites/{id}/files/create{ "path": "dir", "is_dir": true }
POST/api/sites/{id}/files/rename{ "from": "old.txt", "to": "new.txt" }
DELETE/api/sites/{id}/files?path=file.txtDelete file
POST/api/sites/{id}/files/uploadUpload a file — JSON body, content base64-encoded, 1.5 MB limit
GET/api/sites/{id}/files/download?path=file.txtDownload file

Backups

MethodPathPurpose
POST/api/sites/{id}/backupsCreate backup
GET/api/sites/{id}/backupsList backups
POST/api/sites/{id}/backups/{backup_id}/restoreRestore backup
DELETE/api/sites/{id}/backups/{backup_id}Delete backup
GET/api/sites/{id}/backup-scheduleGet schedule
PUT/api/sites/{id}/backup-scheduleSet schedule

Crons

MethodPathBody
POST/api/sites/{id}/crons{ "schedule": "*/5 * * * *", "command": "echo hi" }
GET/api/sites/{id}/cronsList crons
PUT/api/sites/{id}/crons/{cron_id}Update cron
DELETE/api/sites/{id}/crons/{cron_id}Delete cron
POST/api/sites/{id}/crons/{cron_id}/runRun immediately

SSL

MethodPathPurpose
POST/api/sites/{id}/sslProvision Let’s Encrypt cert
GET/api/sites/{id}/sslGet SSL status, including who issued the certificate
POST/api/sites/{id}/ssl/uploadUpload custom certificate

GET /api/sites/{id}/ssl returns provenance, one of:

ValueMeaning
dockpanelIssued by Let’s Encrypt, so DockPanel issued it and renews it
foreignIssued by somebody else; issuer names them, and DockPanel will not renew it
unknownNo answer to act on — the agent was unreachable, or the site is served by a certificate stored under its zone’s name rather than its own

⛔ unknown must never be rendered as a CA name. It is what an unreachable agent returns, and a certificate that is real and healthy sits behind it.

Other site endpoints

MethodPathPurpose
PUT/api/sites/{id}/phpSwitch PHP version
PUT/api/sites/{id}/limitsSet rate limits, upload size, PHP workers
GET/api/sites/{id}/provision-logSSE stream of provisioning progress
POST/api/sites/{id}/cloneClone site
GET/PUT/api/sites/{id}/envEnvironment variables
GET/api/sites/{id}/healthHTTP health check
GET/api/sites/{id}/statsBandwidth/traffic stats
GET/api/sites/{id}/access-logsNginx access logs
GET/api/sites/{id}/php-errorsPHP error log
POST/GET/api/sites/{id}/redirectsURL redirects
POST/GET/api/sites/{id}/password-protectHTTP basic auth
POST/GET/api/sites/{id}/aliasesDomain aliases
POST/GET/DELETE/api/sites/{id}/stagingStaging environments
GET/POST/api/sites/{id}/wordpress/*WordPress management

Databases (14 endpoints)

POST /api/databases

Create a MySQL or PostgreSQL database in a Docker container.

{
  "site_id": "uuid",
  "name": "mydb",
  "engine": "postgres"
}

Engines: postgres, mysql, mariadb

GET /api/databases

List all databases.

POST /api/databases/{id}/query

Execute SQL query.

{ "sql": "SELECT * FROM users LIMIT 10" }

Other database endpoints

MethodPathPurpose
DELETE/api/databases/{id}Delete database + container
GET/api/databases/{id}/credentialsConnection string
GET/api/databases/{id}/tablesList tables
GET/api/databases/{id}/tables/{table}Table schema
GET/api/databases/{id}/indexes/{table}Table indexes
GET/api/databases/{id}/foreign-keysForeign-key map
GET/api/databases/{id}/schema-overviewTables + relationships in one call
GET/PUT/api/databases/{id}/pitrRead/store a PITR retention preference. Point-in-time recovery is not implemented — nothing is archived and POST /pitr/restore answers 501
POST/api/databases/{id}/reset-passwordRotate the database password
GET/api/databases/{id}/dumpsAdmin only. List dumps the operator placed in this database’s backup directory, including files that cannot be imported and why
POST/api/databases/{id}/importAdmin only. Import one of those dumps. Body: {"filename": "mydb-20260821-120000.sql.gz"}. Answers 504 with an explanation if the import outlasts the panel’s 270s wait — that is not a failure

Docker Apps (25 endpoints)

GET /api/apps/templates

List available app templates (147 templates across 14 categories). Admin only.

POST /api/apps/deploy

Deploy a Docker app. Admin only.

{
  "template_id": "redis",
  "name": "my-redis",
  "port": 6379,
  "env": { "REDIS_PASSWORD": "secret" },
  "domain": "redis.example.com",
  "ssl_email": "admin@example.com",
  "memory_mb": 256,
  "cpu_percent": 50
}

Returns 202 with deploy_id. Stream progress via GET /api/apps/deploy/{deploy_id}/log (SSE).

GET /api/apps

List running containers.

Container lifecycle

MethodPathPurpose
POST/api/apps/{container_id}/startStart
POST/api/apps/{container_id}/stopStop
POST/api/apps/{container_id}/restartRestart
POST/api/apps/{container_id}/updatePull latest image + redeploy. Refuses, leaving the container running, when the image cannot be pulled and the local copy is either absent or already the one in use
DELETE/api/apps/{container_id}Remove
GET/api/apps/{container_id}/logsContainer logs
GET/api/apps/{container_id}/statsCPU/memory/network stats
GET/api/apps/{container_id}/envEnvironment variables
PUT/api/apps/{container_id}/envUpdate env vars (recreates container)
POST/api/apps/{container_id}/execExecute command in container
GET/api/apps/{container_id}/volumesVolume mounts
POST/api/apps/{container_id}/snapshotCreate backup image

PUT /api/apps/{container_id}/env replaces the container’s environment with the object you send: a name you omit is removed, and a value sent back as ******** means “leave this one alone” (the container is the only place an app’s environment is stored, so the masked read is what the panel has to reconcile against). Names may be added freely — the same bounds the deploy endpoint enforces apply here: at most 50 variables, names up to 255 characters, values up to 4KB, and a name may not contain = or a null byte.

Domain-derived variables. When a template declares a variable holding the app’s own public address and you claim a domain at deploy time, POST /api/apps/deploy fills that variable in from the domain rather than leaving the template’s localhost default. It applies to n8n, ghost, plausible, drone, photoprism and graylog; a value you send explicitly always wins. The template objects returned by GET /api/apps/templates mark such variables with domain_derived: true.

Docker Compose

MethodPathPurpose
POST/api/apps/compose/parseValidate compose YAML
POST/api/apps/compose/deployDeploy compose stack

Images & Registries

MethodPathPurpose
GET/api/apps/imagesList images
POST/api/apps/images/pruneRemove dangling images
DELETE/api/apps/images/{id}Remove image
GET/api/apps/registriesList registries
POST/api/apps/registry-loginLogin to registry
POST/api/apps/registry-logoutLogout

Docker Compose Stacks (8 endpoints)

POST /api/stacks

Create a named stack from compose YAML, optionally fronted by a domain.

{
  "name": "my-stack",
  "yaml": "version: \"3\"\nservices:\n  web:\n    image: nginx:alpine",
  "domain": "app.example.com",
  "tls_mode": "provided",
  "tls_certificate": "example-com-wildcard"
}

tls_mode is how the domain is served and is stored on the stack: none (plain HTTP, or TLS terminated upstream), acme (a Let’s Encrypt certificate ordered under ssl_email) or provided (a certificate registered under the alias in tls_certificate — see the registry below). Omitted, it is derived from ssl_email exactly as every client before v2.160.0 meant it. A provided claim is refused before any row is written when the alias is unknown on the stack’s server, when that server’s agent predates v2.160.0, or when the certificate does not name the domain — the refusal says which names it does cover.

PUT /api/stacks/{id} treats an absent field as keep: the mode, ssl_email, the alias and domain itself stay as stored unless the request names them. An explicit "domain": null vacates the domain (and a vacated domain has no mode). Before v2.160.0 the request’s ssl_email was forwarded verbatim, so an edit that omitted it rewrote the vhost without TLS.

MethodPathPurpose
GET/api/stacksList stacks
GET/api/stacks/{id}Stack details
PUT/api/stacks/{id}Update YAML + redeploy
POST/api/stacks/{id}/startStart all services
POST/api/stacks/{id}/stopStop all services
POST/api/stacks/{id}/restartRestart
DELETE/api/stacks/{id}Remove stack

TLS certificate registry (4 endpoints)

A certificate registered once, under an alias, and served by any number of Compose stacks that claim a domain it covers (#104). The pair lives on that server’s agent, beside the per-domain tree; the panel keeps the alias and the metadata. Administrators only.

MethodPathPurpose
GET/api/tls-certificatesList the certificates registered on the scoped server, with names, issuer, expiry, status and the stacks using each
POST/api/tls-certificatesRegister {alias, certificate, private_key} — the alias is 1–64 lowercase letters, digits or hyphens; the key must belong to the certificate; 409 if the alias is taken
PUT/api/tls-certificates/{id}Replace the pair behind an alias; refused if the new certificate stops covering a domain a stack serves under it
DELETE/api/tls-certificates/{id}Remove it; 409 naming the stacks while any still uses it

Git Deploy (16 endpoints)

POST /api/git-deploys

Create a git deployment.

{
  "name": "my-app",
  "repo_url": "https://github.com/user/repo.git",
  "branch": "main",
  "domain": "app.example.com",
  "container_port": 3000,
  "auto_deploy": true,
  "build_context": ".",
  "preview_ttl_hours": 24
}

POST /api/git-deploys/{id}/deploy

Trigger a build + deploy. Returns 202 in two different shapes, and a client that reads only deploy_id will treat the second as a silent success:

{ "deploy_id": "…", "message": "Deployment started" }

The build has started. Stream it via GET /api/git-deploys/deploy/{deploy_id}/log (SSE).

{ "status": "pending_approval", "message": "Deploy requires approval from another admin …" }

The deployment has deploy_protected set, so nothing was built. A request was filed and a different administrator must resolve it — see Deploy Approvals below. There is no deploy_id, and none exists until the approval is granted. Filing a request is idempotent: a deployment may have only one waiting at a time, and a repeat call says so rather than queueing a second.

MethodPathPurpose
GET/api/git-deploysList deployments
GET/api/git-deploys/{id}Details
PUT/api/git-deploys/{id}Update config
DELETE/api/git-deploys/{id}Remove
POST/api/git-deploys/{id}/keygenGenerate SSH deploy key
GET/api/git-deploys/{id}/historyDeploy history
POST/api/git-deploys/{id}/rollback/{history_id}Rollback to version
GET/api/git-deploys/{id}/logsContainer logs
POST/api/git-deploys/{id}/startStart container
POST/api/git-deploys/{id}/stopStop
POST/api/git-deploys/{id}/restartRestart
GET/api/git-deploys/{id}/previewsPreview environments
DELETE/api/git-deploys/{id}/previews/{preview_id}Delete preview

Monitoring (13 endpoints)

POST /api/monitors

Create an uptime monitor.

{
  "name": "Google",
  "url": "https://google.com",
  "check_interval": 300,
  "monitor_type": "http",
  "alert_email": true,
  "alert_slack_url": "https://hooks.slack.com/...",
  "keyword": "OK"
}

Types: http, https, tcp, ping, dns

MethodPathPurpose
GET/api/monitorsList monitors
PUT/api/monitors/{id}Update
DELETE/api/monitors/{id}Delete
POST/api/monitors/{id}/checkForce check now
GET/api/monitors/{id}/checksCheck history
GET/api/monitors/{id}/incidentsDowntime incidents
GET/api/monitors/{id}/uptimeUptime percentage
GET/api/monitors/{id}/chartResponse time chart
GET/api/monitors/certificatesSSL certificate dashboard
GET/POST/api/monitors/maintenanceMaintenance windows
GET/api/status-pagePublic status page
POST/api/heartbeat/{monitor_id}/{token}Dead man’s switch (no auth)

DNS (12 endpoints)

POST /api/dns/zones

Create a DNS zone.

{
  "domain": "example.com",
  "provider": "cloudflare",
  "cf_zone_id": "...",
  "cf_api_token": "..."
}

Providers: cloudflare, powerdns

POST /api/dns/zones/{id}/records

Add a DNS record.

{
  "type": "A",
  "name": "@",
  "content": "1.2.3.4",
  "ttl": 3600,
  "proxied": true
}
MethodPathPurpose
GET/api/dns/zonesList zones
DELETE/api/dns/zones/{id}Delete zone
GET/api/dns/zones/{id}/recordsList records
PUT/api/dns/zones/{id}/records/{record_id}Update record
DELETE/api/dns/zones/{id}/records/{record_id}Delete record
POST/api/dns/propagationCheck propagation
POST/api/dns/health-checkDNS health check
GET/api/dns/zones/{id}/dnssecDNSSEC status
GET/api/dns/zones/{id}/changelogRecord change history
GET/api/dns/zones/{id}/analyticsQuery volume

Security (23 endpoints)

MethodPathPurpose
GET/api/security/overviewSecurity posture summary
POST/api/security/scanRun security scan
GET/api/security/scansScan history
GET/api/security/scans/{id}Scan details
GET/api/security/postureSecurity score
GET/api/security/reportCompliance report (HTML)
GET/api/security/firewallUFW rules
POST/api/security/firewall/rulesAdd rule
DELETE/api/security/firewall/rules/{number}Delete rule
GET/api/security/fail2banFail2Ban status
POST/api/security/fail2ban/banBan IP
POST/api/security/fail2ban/unbanUnban IP
GET/api/security/fail2ban/{jail}/bannedList banned
POST/api/security/ssh/disable-passwordDisable SSH password auth
POST/api/security/ssh/enable-passwordEnable SSH password auth
POST/api/security/ssh/disable-rootDisable root login
POST/api/security/ssh/change-portChange SSH port
GET/api/security/login-auditLogin history
POST/api/security/fixApply security fix
POST/api/security/panel-jail/setupCreate Fail2Ban jail for panel
GET/api/security/panel-jail/statusPanel jail status
GET/api/security/canary-statusCanary tripwire state — which paths are watched, absent or masked
POST/api/security/canary/armPlant the canary files the agent can write

Alerts (8 endpoints)

MethodPathPurpose
GET/api/alertsList alerts (filter by status/type)
GET/api/alerts/summaryCount by severity
PUT/api/alerts/{id}/acknowledgeMark as seen
PUT/api/alerts/{id}/resolveClose alert
GET/api/alert-rulesGet thresholds
PUT/api/alert-rulesUpdate global rules
PUT/api/alert-rules/{server_id}Per-server rules
DELETE/api/alert-rules/{server_id}Remove server overrides

Mail (39 endpoints)

POST /api/mail/install

Install Postfix + Dovecot + OpenDKIM. Admin only.

POST /api/mail/domains

Add a mail domain.

Key mail endpoints

CategoryEndpoints
DomainsCRUD /api/mail/domains, /api/mail/domains/{id}
AccountsCRUD /api/mail/domains/{id}/accounts
AliasesCRUD /api/mail/domains/{id}/aliases
DNS/api/mail/domains/{id}/dns, /api/mail/domains/{id}/dns-check
QueueGET /api/mail/queue, POST flush, DELETE {queue_id}
Spam/api/mail/rspamd/install, status, toggle
Webmail/api/mail/webmail/install, status, remove
Relay/api/mail/relay/configure, status, remove
TLS/api/mail/tls/status, enforce
Rate limit/api/mail/rate-limit/set, status, remove
LogsGET /api/mail/logs
StorageGET /api/mail/storage
BackupPOST /api/mail/backup, GET backups, POST restore
ReputationGET /api/mail/blacklist-check

Account passwords are hashed with Argon2id and stored in Dovecot’s {ARGON2ID} scheme (since v2.13.1). Accounts created before v2.13.1 were stored with a hash Dovecot could not verify — reset each mailbox’s password once after upgrading so login works. Address fields (e-mail, alias source/destination, catch-all, forward-to) are validated against a strict character set and return 400 on invalid input.


Servers (8 endpoints)

MethodPathPurpose
GET/api/serversList servers
POST/api/serversAdd remote server
GET/api/servers/{id}Server details + metrics
PUT/api/servers/{id}Update name/IP/URL
DELETE/api/servers/{id}Remove server
POST/api/servers/{id}/testTest agent connectivity
GET/api/servers/{id}/metricsHistorical metrics
POST/api/servers/{id}/rotate-tokenRotate agent token

Extensions (7 endpoints)

POST /api/extensions

Create a webhook integration.

{
  "name": "My Webhook",
  "webhook_url": "https://example.com/hook",
  "event_subscriptions": "site.created,site.deleted,backup.completed",
  "api_scopes": "sites:read,monitors:read"
}

Events: site.created, site.deleted, backup.completed, deploy.started, deploy.completed, app.deployed, auth.login, ssl.provisioned

MethodPathPurpose
GET/api/extensionsList
PUT/api/extensions/{id}Update
DELETE/api/extensions/{id}Delete
POST/api/extensions/{id}/testSend test event
POST/api/extensions/{id}/rotate-secretRotate HMAC secret
GET/api/extensions/{id}/eventsDelivery log

Other Endpoints

Users (4) — Admin only

MethodPathPurpose
GET/api/usersList users
POST/api/usersCreate user
PUT/api/users/{id}Update role
DELETE/api/users/{id}Delete user
POST/api/users/{id}/reset-passwordSet a new password for a user
POST/api/users/{id}/toggle-suspendSuspend or restore a user
POST/api/users/{id}/reset-2faClear a user’s 2FA enrolment

Teams (7)

⚠ These endpoints grant no access. They create teams, invite members and validate roles, but team_members is read by routes/teams.rs and by nothing else, so no authorization path in the panel consults team membership — the admin / developer / viewer roles have no effect on any resource. There is also no Teams UI, and the invite email links to an SPA route that does not exist. Documented because the endpoints are real and routed; do not build against them expecting them to authorize anything. See FEATURES.md §Withdrawn Claims.

MethodPathPurpose
GET/POST/api/teamsList/create teams
DELETE/api/teams/{id}Delete team
POST/api/teams/{id}/inviteInvite member
POST/api/teams/acceptAccept invitation
PUT/DELETE/api/teams/{id}/members/{member_id}Update/remove member

Resellers (14) — Admin creates, reseller manages

The /api/resellers family is admin-only and is driven by Admin → Resellers. The /api/reseller/* family answers for the calling reseller’s own tenant and refuses an administrator, who has no tenant — use /api/resellers/{id} instead.

MethodPathPurpose
GET/POST/api/resellersList/create reseller profiles
GET/PUT/DELETE/api/resellers/{id}Manage profile
GET/POST/DELETE/api/resellers/{id}/serversServer allocation
GET/api/reseller/dashboardReseller’s dashboard
GET/POST/PUT/DELETE/api/reseller/usersReseller’s sub-users

POST /api/resellers promotes an existing account and takes its user_id. It refuses an administrator (400) and an account that already has a profile (409). An account that kept a profile through an earlier demotion is restored with its stored quotas rather than re-created. PUT is COALESCE on every column, so a null field leaves the stored value unchanged — there is no way to clear one through this API.

API Keys (4)

A dp_-prefixed key issued here authenticates requests: send it as Authorization: Bearer dp_... and auth.rs’s AuthUser extractor looks up its hash and authenticates as the owning user (since v2.221.0; last_used_at updates on each use). This does not extend to the separate dpiac_ (Terraform/Pulumi) or dpx_ (extensions) key families, which still authenticate nothing — see FEATURES.md §Withdrawn Claims.

MethodPathPurpose
GET/POST/api/api-keysList/create
DELETE/api/api-keys/{id}Revoke
POST/api/api-keys/{id}/rotateRotate key

System (10)

MethodPathPurpose
GET/api/system/infoCPU, RAM, disk, OS
GET/api/system/processesRunning processes
GET/api/system/networkNetwork stats
GET/api/system/disk-ioDisk I/O
POST/api/system/cleanupClean temp files
POST/api/system/hostnameChange hostname
GET/api/system/updatesAvailable updates
GET/api/system/updates/countUpdate count
POST/api/system/updates/applyApply updates
POST/api/system/rebootReboot server

Settings (7)

MethodPathPurpose
GET/PUT/api/settingsPanel settings
GET/api/settings/healthHealth check (DB + agent)
POST/api/settings/smtp/testTest email delivery
POST/api/settings/test-webhookTest Slack/Discord webhook
GET/api/settings/exportExport config as JSON
POST/api/settings/importImport config

Logs (10)

MethodPathPurpose
GET/api/logsSystem logs
GET/api/logs/searchSearch logs
GET/api/logs/statsLog statistics
GET/api/logs/sizesLog file sizes
POST/api/logs/truncateTruncate log
GET/api/logs/dockerList Docker containers
GET/api/logs/docker/{container}Container logs
GET/api/logs/service/{service}Service logs
POST/api/logs/check-errorsFind error patterns
GET/api/logs/stream/tokenGet WebSocket token for live streaming

Diagnostics (2)

MethodPathPurpose
GET/api/agent/diagnosticsRun diagnostics (6 categories)
POST/api/agent/diagnostics/fixApply one-click fix

Terminal (3)

MethodPathPurpose
GET/api/terminal/tokenGet WebSocket ticket
POST/api/terminal/shareCreate shareable terminal link
GET/api/terminal/shared/{id}View shared terminal

Migration (6)

MethodPathPurpose
POST/api/migration/analyzeAnalyze cPanel/Plesk/HestiaCP backup
GET/api/migrationList migrations
GET/api/migration/{id}Migration details
POST/api/migration/{id}/importStart import
GET/api/migration/{id}/progressImport progress (SSE)
DELETE/api/migration/{id}Delete migration

WordPress Toolkit (2 global)

MethodPathPurpose
GET/api/wordpress/sitesScan all sites for WordPress
POST/api/wordpress/bulk-updateUpdate plugins/themes across sites

Other

MethodPathPurpose
GET/api/healthAPI health (no auth)
GET/api/brandingPanel branding (no auth)
GET/api/dashboard/intelligenceHealth score + issues
GET/api/dashboard/metrics-historyHistorical charts
GET/api/dashboard/dockerDocker summary
GET/POST/api/ssh-keysSSH key management
DELETE/api/ssh-keys/{fingerprint}Remove SSH key
GET/POST/POST/api/auto-updates/*Auto-update management
GET/POST/api/backup-destinationsRemote backup targets
POST/api/traefik/installInstall Traefik
GET/api/traefik/statusTraefik status
POST/api/traefik/uninstallRemove Traefik
GET/api/ws/metricsWebSocket live metrics
GET/api/activityActivity audit log
GET/api/system-logsSystem event log
GET/POST/api/services/*Service installers (PHP, Certbot, UFW, Fail2Ban)

Backup Orchestrator

MethodPathDescription
GET/api/backup-orchestrator/healthHealth dashboard
GET/api/backup-orchestrator/storage-historyStorage growth (30 days)
POST/api/backup-orchestrator/policiesCreate backup policy
POST/api/backup-orchestrator/policies/protect-allOne-click protect-all
GET/api/backup-orchestrator/policiesList policies
PUT/api/backup-orchestrator/policies/{id}Update policy
DELETE/api/backup-orchestrator/policies/{id}Delete policy
POST/api/backup-orchestrator/db-backupCreate DB backup
GET/api/backup-orchestrator/db-backupsList DB backups
POST/api/backup-orchestrator/db-backups/{id}/restoreRestore DB backup
DELETE/api/backup-orchestrator/db-backups/{id}Delete DB backup
POST/api/backup-orchestrator/volume-backupCreate volume backup
GET/api/backup-orchestrator/volume-backupsList volume backups
POST/api/backup-orchestrator/volume-backups/{id}/restoreRestore volume backup
GET/api/backup-orchestrator/verificationsList verifications
POST/api/backup-orchestrator/verifyVerify the most recent backups
POST/api/backup-orchestrator/drillTrigger end-to-end drill (site/db/volume) — async, returns 202
GET/api/backup-orchestrator/drillsList drills (paginated {items, total})

Incident Management

MethodPathDescription
GET/api/incidentsList incidents
GET/api/incidents/summaryCounts by status, plus open — every status except resolved and postmortem
POST/api/incidentsCreate incident
GET/api/incidents/{id}Get incident
PUT/api/incidents/{id}Update incident
POST/api/incidents/{id}/updatesPost timeline update
GET/api/incidents/{id}/updatesGet timeline
DELETE/api/incidents/{id}Delete incident

Status Page

MethodPathDescription
GET/api/status-page/configGet status page config
PUT/api/status-page/configUpdate config
GET/api/status-page/componentsList components
POST/api/status-page/componentsCreate component
DELETE/api/status-page/components/{id}Delete component
POST/api/status-page/subscribeSubscribe email (public, no auth)
POST/api/status-page/unsubscribeUnsubscribe (public, no auth; DELETE also accepted)
GET/api/status-page/subscribersList subscribers (admin)
GET/api/status-page/publicPublic status payload (no auth)

Secrets Manager

MethodPathDescription
GET/api/secrets/vaultsList vaults
POST/api/secrets/vaultsCreate vault
PUT/api/secrets/vaults/{id}Update vault
DELETE/api/secrets/vaults/{id}Delete vault
GET/api/secrets/vaults/{id}/secretsList secrets
POST/api/secrets/vaults/{id}/secretsCreate secret
PUT/api/secrets/vaults/{id}/secrets/{sid}Update secret
DELETE/api/secrets/vaults/{id}/secrets/{sid}Delete secret
GET/api/secrets/vaults/{id}/secrets/{sid}/versionsVersion history
POST/api/secrets/vaults/{id}/inject/{site_id}Inject a vault’s secrets into a site’s env
GET/api/secrets/vaults/{id}/pullPull secrets (CLI)
GET/api/secrets/vaults/{id}/exportExport vault
POST/api/secrets/vaults/{id}/importImport vault

Webhook Gateway

MethodPathDescription
POST/api/webhooks/gateway/{token}Public inbound receiver. The only unauthenticated route here — the token in the path is the credential
GET/api/webhook-gateway/endpointsList endpoints
POST/api/webhook-gateway/endpointsCreate endpoint
PUT/api/webhook-gateway/endpoints/{id}Pause or resume an endpoint — body {"enabled": bool}
DELETE/api/webhook-gateway/endpoints/{id}Delete endpoint, and every delivery and route recorded against it
GET/api/webhook-gateway/endpoints/{id}/deliveriesList deliveries
POST/api/webhook-gateway/deliveries/{delivery_id}/replayReplay a delivery to its matching routes
GET/api/webhook-gateway/endpoints/{id}/routesList routes
POST/api/webhook-gateway/endpoints/{id}/routesCreate route
PUT/api/webhook-gateway/routes/{route_id}Pause or resume a route — body {"enabled": bool}
DELETE/api/webhook-gateway/routes/{id}Delete route

Notifications

MethodPathDescription
GET/api/notificationsList notifications (limit, before, category, unread)
GET/api/notifications/summaryTotals and per-category counts
GET/api/notifications/unread-countUnread badge count
POST/api/notifications/{id}/readMark as read
POST/api/notifications/read-allMark all read
DELETE/api/notifications/{id}Delete one notification
DELETE/api/notifications/readDelete every notification already read
GET/api/notifications/streamSSE real-time stream

Sessions

MethodPathDescription
GET/api/auth/sessionsList active sessions
DELETE/api/auth/sessions/{id}Revoke session
GET/api/auth/export-my-dataGDPR data export

Deploy Approvals

A Git deployment with deploy_protected set will not build when its owner asks. The request is filed here and a different administrator has to resolve it — the panel surfaces this as Pending Approvals on the Git Deploy page.

MethodPathDescription
GET/api/deploy-approvalsList pending approvals
POST/api/deploy-approvals/{id}/approveApprove, and start the deploy
POST/api/deploy-approvals/{id}/rejectReject, or withdraw your own

GET /api/deploy-approvals returns only requests whose deployment is still protected, on machines this administrator operates — this box, or a server they registered themselves. Each row carries id, deploy_id, deploy_name, repo_url, branch, requested_by, requested_by_email, status and created_at.

approve answers 202 with a fresh deploy_id you can stream, and refuses with:

CodeWhen
403you filed the request yourself
409the request is already resolved, the deployment is no longer protected, or a build is already running
404the request is not on a machine you operate

reject is terminal — the requester has to ask again. It carries no self-rejection rule, deliberately: withdrawing your own request is the only exit on an install with a single administrator, where nobody else can ever approve it.


Panel Self-Update (v2.10.0+, Phase 4 W4)

Admin-only endpoints to drive panel updates from the UI instead of SSH. The orchestrator shells out to scripts/update.sh under DOCKPANEL_NO_SELF_REFRESH=1 + DOCKPANEL_VERSION=<target> rather than reimplementing binary swap — every bug fix in update.sh keeps working.

MethodPathDescription
GET/api/update/statusCurrent update state + version + channel
POST/api/update/manual-checkForce a /releases poll now (bypasses hold)
POST/api/update/applySnapshot + invoke update.sh. {target_version: "v2.10.0"} must match advertised version
POST/api/update/rollbackRestore from snapshot. {snapshot_id: "<uuid>"}. Destructive — DB is also restored. Returns 202 immediately; see below
GET/api/update/channelRead current channel (stable | candidate | hold)
PUT/api/update/channelSet channel. {channel: "candidate"}
GET/api/snapshotsList panel snapshots (newest first)
POST/api/snapshotsCreate a manual snapshot. Empty body. Returns the new snapshot row
DELETE/api/snapshots/{id}Delete a snapshot (file + DB row)
GET/api/update/fleetList recent fleet update runs
POST/api/update/fleetStart a fleet rolling update. {target_version, halt_on_failure?, include_panel?}
GET/api/update/fleet/{id}Fleet run detail (plan + per-server progress)

Rollback is asynchronous, and how you learn the outcome

POST /api/update/rollback returns 202 as soon as the restore has been handed to a detached systemd unit. It cannot return the result: the first thing a restore does is stop dockpanel-api, so the process handling your request no longer exists by the time there is an outcome to report. Validation that can be done up front (snapshot exists, file present, sha256 matches) still happens synchronously, so a bad request is still a 404/410/5xx immediately.

Poll GET /api/update/status afterwards and read last_restore:

{
  "snapshot_id": "…",
  "ok": true,
  "stage": "complete",
  "detail": "restored snapshot …; health: {\"status\":\"ok\"}",
  "finished_at": "2026-07-19T18:16:34Z"
}

stage names the step that was running when the restore stopped, so a failure says where it stopped and what was left untouched. The database is applied in a single transaction, so a rollback that fails during the database stage changes nothing at all. The same document is written to /var/lib/dockpanel/last-restore.json on the box.

What a rollback does and does not rewind. It restores what the snapshot contains: the three binaries, /etc/dockpanel, and the database. The database is a true point-in-time revert — the public schema is dropped and rebuilt from the dump in a single transaction — so database objects created after the snapshot do not survive it, and neither does data written into them. The database as it stood immediately before the rollback is dumped first to /var/lib/dockpanel/pre-rollback-<id>.sql.gz (mode 0600), which is the way back from a rollback you did not mean; the three most recent are kept and older ones are pruned. Nothing outside the snapshot — nginx vhosts, Let’s Encrypt certificates, site files, docker volumes — is touched. A rollback restores the panel, not the machine.

Up to and including v2.11.6 the database stage applied only the dump’s own DROP statements, which merged the snapshot into whatever was already there: tables added by a newer version’s migration outlived the rollback while _sqlx_migrations was rewound past them, and a subsequent update back to that version re-ran the migration against objects that already existed, leaving the panel in a startup crash loop. Rolling back with v2.11.7 or newer replaces the schema outright and is unaffected.

What a fleet rolling update actually does

POST /api/update/fleet builds an ordered plan of your remote servers — oldest agent version first, skipping any that are already at the target and any that have not checked in for five minutes — and returns 202 with a run_id. Poll GET /api/update/fleet (the list endpoint) for progress; it returns every run with its full per-server plan/progress/outcome, which is already everything a single run needs to render — there is no need to additionally fetch a single run by id.

Each member updates its own agent binary: the agent fetches dockpanel-agent-linux-<arch> for the requested release tag, verifies it against that release’s checksums.txt before installing it, swaps it in by rename, restarts itself, and rolls back to the previous binary if the new one does not come up. The result is written to /var/lib/dockpanel/last-agent-update.json on the member. A server that is itself a full DockPanel install runs the ordinary update.sh flow instead.

A member counts as updated only when its /health reports the target version. Nothing infers success from an exit status or from the agent’s own claim — up to v2.11.7 it did, and a fleet run could report success on a box whose update had aborted a second earlier.

With halt_on_failure (the default) the run stops at the first failure and the remaining members are marked skipped. include_panel updates the panel itself after the fleet, and only if every member succeeded.

Upgrading a fleet that is on 2.11.7 or older: the mechanism lives in the agent, so those members cannot be rolled from the panel. They report that they are too old and name the remedy — re-run install-agent.sh on them once to reach 2.11.8, after which fleet updates work normally.

Agent-side (called by the orchestrator over the agent’s bearer-auth API):

MethodPathDescription
POST/panel/updateStart the update on the agent host. {target_version}. Returns immediately
GET/panel/update/statusProgress window + failure reason. Reports running_version; success is confirmed from /health, not from here

Agent auto-update (2.12.0)

Instead of you starting a fleet run, each agent can ask the panel whether it should move. This is off by default, including on upgrade.

MethodPathAuthDescription
GET/api/agent/versionAgent bearer token (the servers row token, not a user session)What version the calling agent should be running
{ "target_version": "v2.12.0" }     // move to this
{ "target_version": null }          // do nothing

null is the answer whenever Settings → Telemetry → Updates → Agent Auto-Update is off, or the update channel is on Hold. Hold wins over the switch. The decision is made by the panel, not the agent: an agent only ever learns things by asking, so the panel is the only place a switch can actually take effect.

The target is always the release the panel itself is running — an agent is never pushed ahead of its panel, and the release that built the panel also built that agent asset, so it is guaranteed to exist.

An agent that is behind checks in on its own schedule (first check an hour after start, then roughly every 6 hours with jitter so a fleet does not arrive at once) and runs the same updater a fleet rolling update runs: the download is verified against the release’s own checksums.txt before anything is installed, the swap is atomic within the target directory, and the new agent must answer /health reporting the expected version or it is rolled back. The outcome is written to /var/lib/dockpanel/last-agent-update.json on every exit path.

Rate limit: 120 requests/minute per server, as for the other agent endpoints.

Agents older than 2.12.0 ignore this. They read a different field, so they see nothing to do and carry on — the response deliberately carries no version, download_url or checksum key, so an old agent cannot be walked into an update it has no working code to perform. Bring them forward with a fleet rolling update.

Note: distinct from /system/updates/* (OS-package apt-get mgmt).

Configuration Drift (v2.13.0, Phase 4 W5)

Read-only report answering “is my fleet’s operational posture consistent?”. Because DockPanel is a single hub DB + thin agents, every server’s declared config already lives centrally keyed by server_id, so this is a local cross-server diff — no remote agent call, and an offline member is still comparable. Computed on demand (no background scan). Admin only.

MethodPathDescription
GET/api/drift/serversComparable servers (local first) — reference/target picker source
GET/api/drift?reference=<uuid>&targets=<uuid,uuid>Drift report against the reference server

reference defaults to the local server; targets defaults to every other server. Four entities are compared, each in its most meaningful form:

  • alert_rules — one row per server, whole-row posture diff (the flagship signal: “monitoring is not identical”).
  • sites — per-domain inventory asymmetry (present on one server, not the other) plus per-site config diffs (waf_mode, ssl_enabled, php_version, caches, limits, …) for domains present on both.
  • crons — per (domain, command) job parity.
  • backup_coverage — per-server summary: how many sites have an enabled backup schedule, how many are unprotected, how many destinations exist.

Secret-bearing fields (notify_slack_url, notify_discord_url) are compared by presence only — the report shows set/unset, never the value.

Report only. Reconcile (push a source-of-truth server’s config to the others) is deliberately not in this release — it is cross-server mutation with no existing transport, and DockPanel keeps that surface explicit. Comparing a member’s live on-box state against its declared config is likewise a later leg.