Skip to content

API Reference

All endpoints are prefixed with /api. Requires JWT Bearer token in the Authorization header (except login/setup).

// Success
{"code": 0, "data": { ... }}
// Error
{"code": 40001, "message": "error_key"}
MethodPathDescription
POST/api/auth/loginLogin
POST/api/auth/logoutLogout
POST/api/auth/refreshRefresh token
GET/api/auth/meCurrent user
POST/api/auth/2fa/setupConfigure 2FA
POST/api/auth/2fa/verifyVerify 2FA
MethodPathDescription
GET/api/sitesList sites
POST/api/sitesCreate site
GET/api/sites/{id}Site details
PUT/api/sites/{id}Update site
DELETE/api/sites/{id}Delete site
GET/api/sites/{id}/cacheCache config
PUT/api/sites/{id}/cacheUpdate cache
POST/api/sites/{id}/cache/purgePurge cache
MethodPathDescription
GET/api/databasesList databases
POST/api/databasesCreate database
DELETE/api/databases/{id}Delete database
POST/api/databases/{id}/exportExport
POST/api/databases/{id}/importImport
MethodPathDescription
GET/api/wordpress/instancesList instances
POST/api/wordpress/install-quickQuick install
POST/api/wordpress/scanScan instances
POST/api/wordpress/instances/{id}/security-scanSecurity scan
MethodPathDescription
POST/api/backup/restic/initInitialize repository
POST/api/backup/restic/snapshotCreate snapshot
GET/api/backup/restic/snapshotsList snapshots
POST/api/backup/restic/restoreRestore snapshot
POST/api/backup/restic/forgetPrune snapshots
GET/api/backup/restic/statsRepository stats
MethodPathDescription
GET/api/system/statsSystem status
POST/api/system/upgradePanel upgrade
POST/api/system/service-upgradeService upgrade
MethodPathDescription
GET/api/monitoring/historyHistory data
GET/api/monitoring/redis-historyRedis history
GET/api/monitoring/cgroup-pressurecgroup pressure
MethodPathDescription
POST/api/sites/{id}/stagingCreate staging site
DELETE/api/sites/{id}/stagingDelete staging site
POST/api/sites/{id}/staging/pushPush staging to production
POST/api/sites/{id}/staging/pullPull production to staging

Request body for push/pull: mode param accepts all, files, or database

MethodPathDescription
GET/api/sites/{id}/cdnGet CDN configuration
PUT/api/sites/{id}/cdnConfigure CDN (API token + Zone ID)
DELETE/api/sites/{id}/cdnRemove CDN integration
POST/api/sites/{id}/cdn/purgePurge CDN cache

Vulnerability Database (/api/wordpress/vulnerability-db)

Section titled “Vulnerability Database (/api/wordpress/vulnerability-db)”
MethodPathDescription
POST/api/wordpress/instances/{id}/security-scanScan for CVE vulnerabilities
GET/api/wordpress/vulnerability-db/statusWordfence DB sync status
POST/api/wordpress/vulnerability-db/syncSync vulnerability feed
PUT/api/wordpress/vulnerability-db/tokenSet API token
DELETE/api/wordpress/vulnerability-db/tokenRemove API token
MethodPathDescription
GET/api/wordpress/instances/{id}/auto-updateGet auto-update config
PUT/api/wordpress/instances/{id}/auto-updateSet auto-update schedule
MethodPathDescription
GET/api/backup/restic/scheduleGet backup schedule
PUT/api/backup/restic/scheduleSet backup schedule
MethodPathDescription
POST/api/backup/restic/restoreRestore snapshot with mode param: all / files / database
MethodPathDescription
GET/api/redis/{id}/aclList ACL users
POST/api/redis/{id}/aclCreate ACL user
DELETE/api/redis/{id}/acl/{username}Delete ACL user
MethodPathDescription
GET/api/usersList users
POST/api/usersCreate user with role
PUT/api/users/{id}Update user role/plan
PUT/api/users/{id}/sitesAssign sites to user
GET/api/users/{id}/permissionsGet user permissions