ServerAvatarDocs
API Reference

Server panel

API routes for the server screens, from the dashboard, settings and system users to the firewall, Fail2ban, cron jobs, services, PHP, Node.js, Docker, logs, sync, alerts and databases.

These routes are the API side of the server screens in the panel: dashboard, settings, system users, firewall, Fail2ban, cron jobs, services, PHP, Node.js, Docker, logs, disk cleaner, server sync, alerts, notifications, databases and the activity log. They manage what runs on one server.

Other routes for a server are on their own pages: adding, connecting, deleting and sharing a server are on Servers, what runs inside an application is on Applications, and backups are on Backups. For the same tasks in the panel, see Servers and Databases.

Before you start

  • Base path. Every route here starts with /organizations/{organization}/servers/{server}. In the tables the path is shown without it, so GET /firewall means GET /organizations/{organization}/servers/{server}/firewall. {organization} is the organization id from GET /organizations; {server} is a server id from GET .../servers.
  • Tokens. Both the login token and the personal API token can call these routes, except the ones marked Login token only. See Authentication.
  • The server must be ready. A server that is still installing or has failed answers 409 with the code server_not_ready.
  • Most answers come from the panel on the server. Central passes your request to the panel on the server and returns its answer in data. The shapes, the dates (for example 25-11-2026 01:24:25) and the page information (a meta object, no links) follow that panel, not the rest of this API. The examples on this page are real answers from a demo server.
  • Permissions. The Permission column names the role permission you need and whether it is view (read) or manage (change; manage includes view). People a server is shared with, and Control Panel customers, have only what the share or the grant gives them. See Roles and permissions.
  • Jobs that take time. A route marked 202 starts the work and answers at once. Read the item again to follow it, or call GET /operations on the server page.
  • Signed links. A download is two steps: a POST .../link route makes a one-time link, then you open the link with a plain GET. The second step needs no token.

Make a first call

List the system users of a server:

curl https://<api-address>/api/v1/organizations/590/servers/145/system-users \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <token>"

200:

{
  "data": [
    {
      "id": 1,
      "username": "acme",
      "home_path": "/home/acme",
      "shell": "/bin/bash",
      "shell_title": "Full shell access (bash)",
      "shell_allows_login": true,
      "sudo": false,
      "ssh_access": false,
      "container_login": false,
      "password": null,
      "password_known": false,
      "applications": [ { "id": 1, "name": "acme-landing" } ],
      "created_at": "25-11-2026 01:24:25",
      "created_at_human": "5 hours ago"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 10,
    "total": 1,
    "last_page": 1,
    "ssh_access_enforced": false
  }
}

Dashboard

The live view of the server: facts, current figures, history and processes.

RoutePermissionPurpose
GET /dashboard/factsServer (view)Static facts about the server: operating system, CPU, memory and disk size, uptime and software versions.
GET /dashboard/historyServer (view)Metric history for charts.
GET /dashboard/metricsServer (view)Current CPU, memory, disk, load and network figures.
GET /dashboard/processesServer (view)The processes running on the server.
DELETE /dashboard/processes/{pid}Server (manage)Stop a process. The optional signal is TERM (default) or KILL.

DELETE /dashboard/processes/{pid}

JSON body:

FieldTypeRequiredRules
signalstringnoone of TERM, KILL

Settings

The Settings screen of the server. GET /settings returns every group; each group has its own route to change it.

RoutePermissionPurpose
GET /settingsSettings (view)All server settings in one answer: general, reboot, Redis, security, swap and updates.
PUT /settings/generalSettings (manage)Change the time zone, host name and time sync (NTP).
POST /settings/rebootSettings (manage)Reboot the server now, or after delay_minutes. Answers 202.
GET /settings/rebootSettings (view)Whether a reboot is waiting.
DELETE /settings/rebootSettings (manage)Cancel a reboot that is waiting.
PUT /settings/reboot-scheduleSettings (manage)Turn the scheduled reboot on or off, and set when it runs.
GET /settings/reboot-schedule/presetsSettings (view)The ready-made schedules the panel offers.
PUT /settings/redisSettings (manage)Change the Redis memory limit, eviction policy and password. Answers 202.
PUT /settings/securitySettings (manage)Change the SSH port, root login and password sign-in.
PUT /settings/swapSettings (manage)Set the swap size in MB. 0 turns swap off.
GET /settings/timezonesSettings (view)The time zone names the server accepts.
PUT /settings/updatesSettings (manage)Change the automatic security updates and the reboot that follows them.
POST /settings/updates/runSettings (manage)Run the updates now. Answers 202.
GET /settings/updates/runSettings (view)Progress and result of the update run.

PUT /settings/general

JSON body:

FieldTypeRequiredRules
timezonestringyesa time zone name
hostnamestringyesat most 64 characters; pattern ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$
ntpbooleanyes

POST /settings/reboot

JSON body:

FieldTypeRequiredRules
delay_minutesintegerno0 to 60

PUT /settings/reboot-schedule

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
frequencystringwhen enabled=trueone of daily, weekly, monthly
hourintegerwhen enabled=true0 to 23
day_of_weekintegernocan be null; 0 to 6
day_of_monthintegernocan be null; 1 to 28

PUT /settings/redis

JSON body:

FieldTypeRequiredRules
maxmemorystringyespattern ^(0|\d+(kb|mb|gb|b)?)$, not case-sensitive
maxmemory_policystringyesone of noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl
passwordstringno8 to 255 characters; can be null
remove_passwordbooleanno

PUT /settings/security

JSON body:

FieldTypeRequiredRules
portintegeryes1 to 65535
permit_root_loginstringyesone of yes, no, prohibit-password
password_authenticationbooleanyes

PUT /settings/swap

JSON body:

FieldTypeRequiredRules
size_mbintegeryes0 to 65536

PUT /settings/updates

JSON body:

FieldTypeRequiredRules
security_updates_enabledbooleanyes
auto_rebootbooleanyes
reboot_timestringyespattern ^(now|([01]\d|2[0-3]):[0-5]\d)$
reboot_with_usersbooleanno

System users

The Linux users on the server. Applications run as a system user.

RoutePermissionPurpose
GET /system-usersSystem Users (view)List the system users.
POST /system-usersSystem Users (manage)Create a system user. Answers 201.
GET /system-users/shellsSystem Users (view)The shells you can give a user.
GET /system-users/{systemUser}System Users (view)One system user.
DELETE /system-users/{systemUser}System Users (manage)Delete a system user. end_sessions also ends its open sessions. Answers 204.
PUT /system-users/{systemUser}/passwordSystem Users (manage)Set a new password.
PUT /system-users/{systemUser}/shellSystem Users (manage)Change the shell.
PUT /system-users/{systemUser}/sshSystem Users (manage)Turn SSH access on or off.
GET /system-users/{systemUser}/ssh-keysSystem Users (view)List the user's SSH keys.
POST /system-users/{systemUser}/ssh-keysSystem Users (manage)Add an SSH key to the user. Answers 201.
DELETE /system-users/{systemUser}/ssh-keys/{sshKey}System Users (manage)Remove an SSH key from the user. Answers 204.
PUT /system-users/{systemUser}/sudoSystem Users (manage)Give or take away sudo.

GET /system-users

Query string:

FieldTypeRequiredRules
searchstringnoat most 255 characters
sortstringnoone of created_at, -created_at, username, -username
per_pageintegernoone of 10, 20, 30, 50, 100
pageintegernoat least 1

POST /system-users

JSON body:

FieldTypeRequiredRules
usernamestringyespattern ^[a-z_][a-z0-9_-]{0,31}$
passwordstringno8 to 255 characters; no control characters
shellstringnoat most 255 characters
sudobooleanno
ssh_accessbooleanno
public_keystringnoat most 16384 characters; can be null; one line; a complete OpenSSH public key

DELETE /system-users/{systemUser}

JSON body:

FieldTypeRequiredRules
end_sessionsbooleanno

PUT /system-users/{systemUser}/password

JSON body:

FieldTypeRequiredRules
passwordstringyes8 to 255 characters; no control characters

PUT /system-users/{systemUser}/shell

JSON body:

FieldTypeRequiredRules
shellstringyesat most 255 characters

PUT /system-users/{systemUser}/ssh

JSON body:

FieldTypeRequiredRules
ssh_accessbooleanyes

POST /system-users/{systemUser}/ssh-keys

JSON body:

FieldTypeRequiredRules
namestringyesat most 255 characters
public_keystringyesat most 16384 characters; one line; a complete OpenSSH public key

PUT /system-users/{systemUser}/sudo

JSON body:

FieldTypeRequiredRules
sudobooleanyes

SSH keys

The SSH keys of all system users in one place, so you can add or remove a key on many users at once.

RoutePermissionPurpose
GET /ssh-keysSystem Users (view)The SSH keys of all system users on the server, one row per key. Filter by fingerprint or system_user_id.
DELETE /ssh-keysSystem Users (manage)Remove a key (by fingerprint) from all users, or from the users in system_user_ids. Limit: 30 a minute.
POST /ssh-keys/deploySystem Users (manage)Add one key to several system users at once. Limit: 30 a minute.

GET /ssh-keys

Query string:

FieldTypeRequiredRules
fingerprintstringnopattern '.DeleteServerSshKeyRequest::FINGERPRINT
system_user_idintegernoat least 1

DELETE /ssh-keys

JSON body:

FieldTypeRequiredRules
fingerprintstringyespattern '.self::FINGERPRINT
system_user_idsarraynoat least 1 items; at most 100 items
system_user_ids.*integeryesat least 1; no duplicates

POST /ssh-keys/deploy

JSON body:

FieldTypeRequiredRules
namestringyesat most 255 characters
public_keystringyesat most 16384 characters; one line; a complete OpenSSH public key
system_user_idsarrayyesat least 1 items; at most 100 items
system_user_ids.*integeryesat least 1; no duplicates

Firewall

The server firewall. Rules you add here are managed by the panel; rules that exist on the server but were not made in the panel are "unmanaged" and can be adopted or deleted.

RoutePermissionPurpose
GET /firewallFirewall (view)Whether the firewall is on. rules=true adds the rules to the answer.
PUT /firewallFirewall (manage)Turn the firewall on or off.
GET /firewall/presetsFirewall (view)Ready-made rules the panel offers.
GET /firewall/rulesFirewall (view)List the rules.
POST /firewall/rulesFirewall (manage)Add a rule. Answers 201.
PUT /firewall/rules/{rule}Firewall (manage)Change a rule, or turn it on or off with enabled.
DELETE /firewall/rules/{rule}Firewall (manage)Delete a rule. Answers 204.
DELETE /firewall/unmanaged-rulesFirewall (manage)Delete a rule that exists on the server but was not made in the panel. Answers 204.
POST /firewall/unmanaged-rules/adoptFirewall (manage)Take over such a rule, so the panel manages it. Answers 201.

GET /firewall

Query string:

FieldTypeRequiredRules
rulesbooleanno

PUT /firewall

JSON body:

FieldTypeRequiredRules
enabledbooleanyes

GET /firewall/rules

Query string:

FieldTypeRequiredRules
searchstringnoat most 255 characters
filterstringnokeys enabled, action, origin
filter.enabledbooleanno
filter.actionstringnoone of allow, deny
filter.originstringnoone of user, default, db_user
sortstringnoone of created_at, -created_at, port_from, -port_from, action, -action, protocol, -protocol
per_pageintegernoone of 10, 20, 30, 50, 100
pageintegernoat least 1

POST /firewall/rules

JSON body:

FieldTypeRequiredRules
port_fromintegeryes1 to 65535
port_tointegernocan be null; 1 to 65535; not less than port_from
protocolstringyesone of all, tcp, udp; a port range needs tcp or udp, not all
actionstringyesone of allow, deny
source_ipstringnoat most 64 characters; can be null; IP address or CIDR range
descriptionstringnoat most 255 characters; can be null; one line

PUT /firewall/rules/{rule}

JSON body:

FieldTypeRequiredRules
port_fromintegerno1 to 65535
port_tointegernocan be null; 1 to 65535; not less than port_from
protocolstringnoone of all, tcp, udp; a port range needs tcp or udp, not all
actionstringnoone of allow, deny
source_ipstringnoat most 64 characters; can be null; IP address or CIDR range
descriptionstringnoat most 255 characters; can be null; one line
enabledbooleanno

DELETE /firewall/unmanaged-rules

JSON body:

FieldTypeRequiredRules
keystringyesat most 255 characters

POST /firewall/unmanaged-rules/adopt

Takes the same fields as DELETE /firewall/unmanaged-rules.

Fail2ban

Server-wide Fail2ban: install it, tune the ban settings, choose jails and manage bans.

RoutePermissionPurpose
GET /fail2banFail2ban (view)The Fail2ban settings, jails and current bans.
PUT /fail2banFail2ban (manage)Change the ban time, find time, retries, ignored IPs and which jails are on.
POST /fail2ban/bansFail2ban (manage)Ban an IP address in a jail.
DELETE /fail2ban/bansFail2ban (manage)Lift every ban.
DELETE /fail2ban/bans/{ip}Fail2ban (manage)Lift the ban on one IP address.
POST /fail2ban/ignore-ipsFail2ban (manage)Add an IP address or range that is never banned.
DELETE /fail2ban/ignore-ipsFail2ban (manage)Remove one from the ignore list.
POST /fail2ban/installFail2ban (manage)Install Fail2ban. Answers 202.

PUT /fail2ban

JSON body:

FieldTypeRequiredRules
bantimeintegeryes
findtimeintegeryes30 to 86400
maxretryintegeryes2 to 100
ignore_ipsarraynoat most 100 items
ignore_ips.*stringyesIP address or CIDR range
jailsarrayno
jails.*booleanno
acknowledgedbooleanno

POST /fail2ban/bans

JSON body:

FieldTypeRequiredRules
ipstringyesan IP address
jailstringyesat most 64 characters; pattern ^[A-Za-z0-9_-]+$

POST /fail2ban/ignore-ips

JSON body:

FieldTypeRequiredRules
ipstringyesIP address or CIDR range
acknowledgedbooleanno

DELETE /fail2ban/ignore-ips

Takes the same fields as POST /fail2ban/ignore-ips.

Cron jobs

Server cron jobs. Some rules differ on a managed server: the user cannot be root or www-data.

RoutePermissionPurpose
GET /cronjobsCron Jobs (view)List the cron jobs.
POST /cronjobsCron Jobs (manage)Create a cron job. Answers 201.
GET /cronjobs/command-presetsCron Jobs (view)Ready-made commands.
GET /cronjobs/schedule-presetsCron Jobs (view)Ready-made schedules.
GET /cronjobs/{cronjob}Cron Jobs (view)One cron job.
PUT /cronjobs/{cronjob}Cron Jobs (manage)Change a cron job.
DELETE /cronjobs/{cronjob}Cron Jobs (manage)Delete a cron job. Answers 204.
POST /cronjobs/{cronjob}/runCron Jobs (manage)Run the job now. The result shows in its runs. Answers 202.
GET /cronjobs/{cronjob}/runsCron Jobs (view)The latest runs and what they printed, newest first.

GET /cronjobs

Query string:

FieldTypeRequiredRules
filterstringnokeys system_user_id, application_id, username, active
filter.system_user_idintegerno
filter.application_idintegerno
filter.usernamestringnoat most 32 characters
filter.activebooleanno
per_pageintegernoone of 10, 20, 50, 100
pageintegernoat least 1

POST /cronjobs

JSON body:

FieldTypeRequiredRules
namestringyesat most 255 characters; one line
system_user_idintegernocan be null
usernamestringwithout system_user_idcan be null; pattern ^[a-z_][a-z0-9_-]{0,31}$; not root or www-data on a managed server
application_idintegernocan be null
commandstringyesat most 1000 characters; one line; not_regex:/\{path\}/
expressionstringyesat most 100 characters; one line
activebooleanno

PUT /cronjobs/{cronjob}

JSON body:

FieldTypeRequiredRules
namestringyesat most 255 characters; one line
system_user_idintegernocan be null
usernamestringnocan be null; pattern ^[a-z_][a-z0-9_-]{0,31}$; not root or www-data on a managed server
application_idstringnoprohibited
commandstringyesat most 1000 characters; one line; not_regex:/\{path\}/
expressionstringyesat most 100 characters; one line
activebooleanno

Services and service monitoring

The server's fixed list of services, such as the web server, PHP-FPM and database engines. Stopping or disabling a protected service is refused (422). Restarting or reloading the web server or PHP-FPM that the panel itself runs on answers 202: the action runs right after the answer.

RoutePermissionPurpose
GET /service-monitoringServices (view)The service monitoring settings.
PUT /service-monitoringServices (manage)Turn service monitoring on or off and choose the services. It needs Premium Hosting Care.
GET /servicesServices (view)List the services, with their state.
POST /services/{service}/config-testServices (view)Test the service's configuration. Nothing changes.
POST /services/{service}/{action}Services (manage)Start, stop, restart, reload, enable or disable a service. {action} is one of those six words.

PUT /service-monitoring

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
intervalstringyesRule::in(array_keys(ServerServiceMonitoring::INTERVALS))

PHP

PHP versions, extensions, php.ini and ionCube. {version} is a version such as 8.3 (digits, a dot, digits).

RoutePermissionPurpose
GET /phpPHP (view)The installed PHP versions, the default and the versions you can install.
PUT /php/defaultPHP (manage)Set the default PHP version.
POST /php/versionsPHP (manage)Install a PHP version. Answers 202.
DELETE /php/versions/{version}PHP (manage)Remove a PHP version. Answers 202.
GET /php/versions/{version}/extensionsPHP (view)List the extensions of a version.
PUT /php/versions/{version}/extensions/{extension}PHP (manage)Turn an extension on or off.
GET /php/versions/{version}/iniPHP (view)The php.ini of a version.
PUT /php/versions/{version}/iniPHP (manage)Replace the php.ini of a version.
GET /php/versions/{version}/ioncubePHP (view)Whether ionCube is installed.
POST /php/versions/{version}/ioncubePHP (manage)Install ionCube. Answers 202.
DELETE /php/versions/{version}/ioncubePHP (manage)Remove ionCube.
GET /php/versions/{version}/settingsPHP (view)The common PHP settings of a version, such as memory and upload limits.
PUT /php/versions/{version}/settingsPHP (manage)Change those settings.

PUT /php/default

JSON body:

FieldTypeRequiredRules
defaultstringyespattern ^\d+\.\d+$

POST /php/versions

JSON body:

FieldTypeRequiredRules
versionstringyespattern ^\d+\.\d+$

PUT /php/versions/{version}/extensions/{extension}

JSON body:

FieldTypeRequiredRules
enabledbooleanyes

PUT /php/versions/{version}/ini

JSON body:

FieldTypeRequiredRules
contentsstringyesat most 262144 characters
acknowledgedstringyesaccepted

Node.js and build tools

Node.js versions and the build tools. {version} is a full version such as 22.11.0.

RoutePermissionPurpose
GET /build-toolsNode.js (view)Whether the build tools are installed.
POST /build-tools/installNode.js (manage)Install the build tools. Answers 202.
GET /nodeNode.js (view)The installed Node.js versions and the default.
PUT /node/defaultNode.js (manage)Set the default Node.js version.
POST /node/versionsNode.js (manage)Install a Node.js version. Answers 202.
DELETE /node/versions/{version}Node.js (manage)Remove a Node.js version. Answers 204.
POST /node/versions/{version}/npmNode.js (manage)Update npm for a version.

PUT /node/default

JSON body:

FieldTypeRequiredRules
defaultstringyespattern ^\d+\.\d+\.\d+$

POST /node/versions

JSON body:

FieldTypeRequiredRules
versionstringyespattern ^\d+\.\d+\.\d+$

Docker

Docker networks, volumes, database containers and image lookups, and the Docker registries the server can log in to. A network or volume {name} starts with a letter or digit and has at most 128 letters, digits, _, . and -. Creating or deleting a network or volume answers with the whole list again.

RoutePermissionPurpose
GET /docker/databasesDocker (view)List the database containers.
POST /docker/databasesDocker (manage)Create a database container. Answers 201 or 202.
DELETE /docker/databases/{database}Docker (manage)Delete a database container. Answers 204.
GET /docker/databases/{database}/credentialsDocker (manage)Show the database container's connection details.
GET /docker/images/inspectApplication (manage)Check an image before you use it. Needs Application (manage).
GET /docker/images/searchApplication (manage)Search Docker Hub (for a container application). Needs Application (manage).
GET /docker/images/tagsApplication (manage)The versions (tags) of an image. Needs Application (manage).
GET /docker/limitsDocker (view)The Docker limits of this server.
GET /docker/networksDocker (view)List the Docker networks.
POST /docker/networksDocker (manage)Create a network. Answers 201.
DELETE /docker/networks/{name}Docker (manage)Delete a network.
GET /docker/volumesDocker (view)List the Docker volumes.
POST /docker/volumesDocker (manage)Create a volume. Answers 201.
DELETE /docker/volumes/{name}Docker (manage)Delete a volume.
GET /integrations/registriesDocker Registries (view)List the Docker registries.
POST /integrations/registriesDocker Registries (manage)Add a registry. Answers 201.
GET /integrations/registries/{registry}Docker Registries (view)One registry.
PATCH /integrations/registries/{registry}Docker Registries (manage)Change a registry.
DELETE /integrations/registries/{registry}Docker Registries (manage)Delete a registry.
POST /integrations/registries/{registry}/testDocker Registries (manage)Test the registry login.

POST /docker/databases

JSON body:

FieldTypeRequiredRules
namestringyesat most 63 characters; pattern '.StoreDockerResourceRequest::NAME
enginestringyesat most 32 characters; pattern ^[a-z0-9_-]+$
versionstringyesat most 32 characters; one line
docker_networkstringnoat most 255 characters; can be null; pattern '.StoreDockerResourceRequest::NAME
cpu_limitstringnoat most 16 characters; can be null; one line
memory_limitstringnoat most 20 characters; can be null; one line

DELETE /docker/databases/{database}

JSON body:

FieldTypeRequiredRules
remove_databooleanno

GET /docker/images/inspect

Query string:

FieldTypeRequiredRules
imagestringyesat most 255 characters; pattern '.self::IMAGE_PATTERN
registry_idintegernoat least 1

GET /docker/images/search

Query string:

FieldTypeRequiredRules
qstringyes2 to 100 characters
limitintegerno1 to 25

POST /docker/networks

JSON body:

FieldTypeRequiredRules
namestringyespattern '.self::NAME

POST /docker/volumes

Takes the same fields as POST /docker/networks.

POST /integrations/registries

JSON body:

FieldTypeRequiredRules
namestringyesat most 100 characters; no control characters
registrystringyesat most 255 characters; no control characters
usernamestringyesat most 255 characters; no control characters
tokenstringyesat most 4096 characters; no control characters

PATCH /integrations/registries/{registry}

JSON body:

FieldTypeRequiredRules
namestringyesat most 100 characters; no control characters
registrystringyesat most 255 characters; no control characters
usernamestringyesat most 255 characters; no control characters
tokenstringnoat most 4096 characters; can be null; no control characters

Logs

The server's own log files. You can read and download them. You cannot clear them here.

RoutePermissionPurpose
GET /logsLogs (view)List the server's log files.
GET /logs/{log}Logs (view)Read the end of a log.
POST /logs/{log}/linkLogs (view)Make a signed download link for a log. Limit: 6 a minute.
GET /logs/{log}/streamSigned linkDownload the log through a signed link. No token needed; the link is the proof. Limit: 60 a minute.

GET /logs/{log}

Query string:

FieldTypeRequiredRules
linesintegerno1 to 5000
grepstringnoat most 200 characters; can be null
afterintegernoat least 0

Disk cleaner

Free disk space by removing old logs, caches and similar files, now or on a schedule.

RoutePermissionPurpose
GET /disk-cleanerDisk Cleaner (view)What the cleaner can remove and how much space it would free.
POST /disk-cleaner/cleanDisk Cleaner (manage)Run a clean now.
GET /disk-cleaner/runsDisk Cleaner (view)Past cleans.
GET /disk-cleaner/scheduleDisk Cleaner (view)The automatic clean schedule.
PUT /disk-cleaner/scheduleDisk Cleaner (manage)Set the schedule.
DELETE /disk-cleaner/scheduleDisk Cleaner (manage)Remove the schedule. Answers 204.

POST /disk-cleaner/clean

JSON body:

FieldTypeRequiredRules
categoriesarrayyesat least 1 items; at most 20 items
categories.*stringyesno duplicates; pattern ^[a-z0-9_]{1,40}$
keep_daysintegernocan be null; one of 0, 1, 3, 7, 14, 30

GET /disk-cleaner/runs

Query string:

FieldTypeRequiredRules
per_pageintegernoone of 10, 20, 50, 100
pageintegernoat least 1

PUT /disk-cleaner/schedule

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
frequencystringyesone of hourly, daily, weekly, monthly
categoriesarrayyesat least 1 items; at most 20 items
categories.*stringyesno duplicates; pattern ^[a-z0-9_]{1,40}$
threshold_percentintegernocan be null; 1 to 99
keep_daysintegernocan be null; Rule::in(self::KEEP_DAYS)

Server sync

Find what is already on a server (for example a server moved from ServerAvatar v7) and add it. A scan only reads the server; nothing is added until a run applies it. See Server sync.

RoutePermissionPurpose
POST /syncServer Sync (manage)Scan the server for things it can add. The default is a preview that adds nothing; a run can also add what it found. Answers 202.
GET /sync/handoverServer Sync (view)The state of the handover.
POST /sync/handoverServer Sync (manage)Hand the server over after a sync.
GET /sync/ignoresServer Sync (view)Items the sync leaves out.
POST /sync/ignoresServer Sync (manage)Leave an item out. Answers 201.
DELETE /sync/ignores/{ignore}Server Sync (manage)Stop leaving it out. Answers 204.
GET /sync/latestServer Sync (view)The latest sync run.
GET /sync/{run}Server Sync (view)One sync run.

POST /sync

JSON body:

FieldTypeRequiredRules
modestringnoone of preview, apply
onlyarrayno
only.*stringnoone of application, system_user, ssh_key, cronjob, worker, pm2_process, database_user, certificate, php_settings, firewall_rule
include_firewallbooleanno
include_ignoredbooleanno

POST /sync/ignores

JSON body:

FieldTypeRequiredRules
resource_typestringyesone of application, system_user, ssh_key, cronjob, worker, pm2_process, database_user, certificate, php_settings, firewall_rule
resource_keystringyesat most 255 characters
notestringnoat most 255 characters; can be null

GET /sync/{run}

Query string:

FieldTypeRequiredRules
sinceintegernoat least 0

Alerts and notifications

The alert thresholds of the server and which notification channels it uses.

RoutePermissionPurpose
GET /alertsAlerts (view)The server's alert thresholds.
PUT /alertsAlerts (manage)Change the alert thresholds.
GET /notification-channelsNotifications (view)The notification channels the server uses.
PUT /notification-channelsNotifications (manage)Choose the channels for this server's notifications.
DELETE /notification-channels/{channel}Notifications (manage)Stop using a channel for this server. Answers 204.

PUT /alerts

JSON body:

FieldTypeRequiredRules
cpuintegeryes1 to 100
memoryintegeryes1 to 100
diskintegeryes1 to 100
load_5numericno0.1 to 1000; present; can be null
load_15numericno0.1 to 1000; present; can be null

PUT /notification-channels

JSON body:

FieldTypeRequiredRules
channelsarraynoat most 50 items; present
channels.*stringnokeys id, groups
channels.*.idintegeryesat least 1; no duplicates
channels.*.groupsarraynoat least 1 items
channels.*.groups.*stringnono duplicates; Rule::in(NotificationGroup::serverValues())

Databases

Databases, users, engines, import and export on the server. The backups of a database are on the Backups page.

One databases route is not under a server: GET /organizations/{organization}/databases lists the databases of every ready server in the organization, sorted by name, each with a server object (id, name). Permission: Databases (view) in the organization role. It takes search (at most 255 characters), filter[engine] and filter[attached] (true or false). page, per_page and sort are checked but ignored.

RoutePermissionPurpose
GET /databasesDatabases (view)List the databases.
POST /databasesDatabases (manage)Create a database, with users. Answers 201.
POST /databases/adoptDatabases (manage)Take over a database that exists on the server. Answers 201.
POST /databases/connections/{engine}/testDatabases (manage)Test the connection to an engine.
GET /databases/enginesDatabases (view)The database engines on the server.
POST /databases/engines/{engine}/installDatabases (manage)Install an engine. Answers 202.
GET /databases/exportsDatabases (view)List the export files.
DELETE /databases/exports/{export}Databases (manage)Delete an export file. Answers 204.
POST /databases/exports/{file}/linkDatabases (manage)Make a signed download link for an export file.
GET /databases/exports/{file}/streamSigned linkDownload an export file through a signed link.
GET /databases/metricsDatabases (view)Database server metrics.
GET /databases/processesDatabases (view)The running queries.
POST /databases/processes/{process}/killDatabases (manage)Kill a query. Answers 204.
GET /databases/root-passwordDatabases (view)Which engines have a stored root password.
PUT /databases/root-password/{engine}Databases (manage)Tell the panel the engine's root password.
GET /databases/status/{engine}Databases (view)The status of an engine.
GET /databases/untrackedDatabases (view)Databases on the server that the panel does not know.
GET /databases/{database}Databases (view)One database.
DELETE /databases/{database}Databases (manage)Delete a database. Answers 204.
POST /databases/{database}/adminer-ssoDatabases (manage)Get a one-time sign-in link for Adminer.
PUT /databases/{database}/applicationDatabases (manage)Link the database to an application, or unlink it.
POST /databases/{database}/exportsDatabases (manage)Export the database to a file. Answers 202.
GET /databases/{database}/importsDatabases (view)List the imports.
POST /databases/{database}/importsDatabases (manage)Start an import. Answers 201. Limit: 20 a minute.
DELETE /databases/{database}/imports/{import}Databases (manage)Cancel or delete an import. Answers 204.
PUT /databases/{database}/imports/{import}/chunkDatabases (manage)Upload one chunk of the import file. Limit: 1,200 a minute.
POST /databases/{database}/imports/{import}/startDatabases (manage)Run the import once the file is uploaded. Answers 202. Limit: 6 a minute.
POST /databases/{database}/phpmyadmin-ssoDatabases (manage)Get a one-time sign-in link for phpMyAdmin.
GET /databases/{database}/tablesDatabases (view)List the tables.
GET /databases/{database}/usersDatabases (view)List the database users.
POST /databases/{database}/usersDatabases (manage)Add a user. Answers 201.
PATCH /databases/{database}/users/{databaseUser}Databases (manage)Change a user.
DELETE /databases/{database}/users/{databaseUser}Databases (manage)Delete a user. Answers 204.
PUT /databases/{database}/users/{databaseUser}/passwordDatabases (manage)Set a user's password.

GET /databases

Query string:

FieldTypeRequiredRules
searchstringnoat most 255 characters; can be null
filterstringnokeys engine, application_id, attached
filter.enginestringnocan be null; pattern ^[a-z0-9_-]{1,32}$
filter.application_idintegernoat least 1; can be null
filter.attachedbooleannocan be null
sortstringnocan be null
per_pageintegernoone of 10, 20, 30, 50, 100
pageintegernoat least 1

POST /databases

JSON body:

FieldTypeRequiredRules
namestringyespattern ^[A-Za-z0-9_]{1,63}$
enginestringyespattern ^[a-z0-9_-]{1,32}$
charsetstringnoat most 64 characters; can be null
collationstringnoat most 64 characters; can be null
application_idintegernoat least 1; can be null
create_userstringnocan be null; keys username, password, connection_preference, host, restart_cluster
create_user.usernamestringwith create_userpattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i
create_user.passwordstringno8 to 255 characters; can be null
create_user.connection_preferencestringnocan be null; one of localhost, remote, anywhere
create_user.hoststringno
create_user.restart_clusterbooleanno

POST /databases/adopt

JSON body:

FieldTypeRequiredRules
enginestringyespattern ^[a-z0-9_-]{1,32}$
namesarrayyesat least 1 items; at most 100 items
names.*stringyesno duplicates; pattern ^[A-Za-z0-9_]{1,63}$

GET /databases/metrics

Query string:

FieldTypeRequiredRules
enginestringyespattern ^[a-z0-9_-]{1,32}$

GET /databases/processes

Takes the same fields as GET /databases/metrics.

POST /databases/processes/{process}/kill

JSON body:

FieldTypeRequiredRules
enginestringyespattern ^[a-z0-9_-]{1,32}$

PUT /databases/root-password/{engine}

JSON body:

FieldTypeRequiredRules
passwordstringyes12 to 128 characters; no control characters; must match password_confirmation
current_passwordstringnoat most 128 characters; can be null; no control characters

GET /databases/untracked

Query string:

FieldTypeRequiredRules
enginestringyespattern ^[a-z0-9_-]{1,32}$

POST /databases/{database}/adminer-sso

JSON body:

FieldTypeRequiredRules
database_user_idintegernoat least 1; can be null
application_idintegernoat least 1; can be null

PUT /databases/{database}/application

JSON body:

FieldTypeRequiredRules
application_idintegernoat least 1; present; can be null

POST /databases/{database}/imports

JSON body:

FieldTypeRequiredRules
file_namestringyesat most 255 characters
size_bytesintegeryes1 to 2147483648

PUT /databases/{database}/imports/{import}/chunk

JSON body:

FieldTypeRequiredRules
sizeintegeryes1 to '.(int) config('oss.upload_max_bytes')
content_typestringyesone of application/octet-stream

POST /databases/{database}/imports/{import}/start

JSON body:

FieldTypeRequiredRules
confirm_replacestringyesaccepted
safety_copybooleanno

POST /databases/{database}/phpmyadmin-sso

Takes the same fields as POST /databases/{database}/adminer-sso.

POST /databases/{database}/users

JSON body:

FieldTypeRequiredRules
usernamestringyespattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i
passwordstringno8 to 255 characters; can be null
connection_preferencestringyesone of localhost, remote, anywhere
hoststringno
restart_clusterbooleanno

PATCH /databases/{database}/users/{databaseUser}

JSON body:

FieldTypeRequiredRules
usernamestringyespattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i
connection_preferencestringyesone of localhost, remote, anywhere
hoststringno
passwordstringyes8 to 255 characters
restart_clusterbooleanno

PUT /databases/{database}/users/{databaseUser}/password

JSON body:

FieldTypeRequiredRules
passwordstringyes8 to 255 characters

Git accounts on a server

The Git accounts a server can use for deploying applications.

RoutePermissionPurpose
GET /git-accountsApplication or Deployment (manage)The Git accounts of the organization and whether each is linked to this server.
POST /git-accounts/{gitAccount}/connectApplication (manage) Login token only.Link a Git account to this server.
GET /git-accounts/{ossAccount}/branchesApplication or Deployment (manage)The branches of a repository.
GET /git-accounts/{ossAccount}/repositoriesApplication or Deployment (manage)The repositories of a Git account.

GET /git-accounts/{ossAccount}/branches

Query string:

FieldTypeRequiredRules
repositorystringyesat most 255 characters; pattern ^[A-Za-z0-9._\-\/~]+$

GET /git-accounts/{ossAccount}/repositories

Query string:

FieldTypeRequiredRules
searchstringnoat most 100 characters; can be null
pageintegerno1 to 1000

Activity, operations and menu

What happened on the server and what is running now.

RoutePermissionPurpose
GET /activitiesActivity Log (view)The server's activity log.
GET /activities/filtersActivity Log (view)The values you can filter the activity log by.
GET /activityActivity Log (view)The Central entries of the server activity log: what Central did on the server and its applications. It works while the server is down.
GET /menuServer (view)The sidebar items you may see for this server.
GET /operationsServer (view)The long-running jobs on the server, running and recent.

GET /activities

Query string:

FieldTypeRequiredRules
filterarrayno
filter.typestringnoat most 255 characters
filter.actionstringnoat most 255 characters
filter.kindstringnoone of created, changed, removed, failed
filter.securitystringnoone of 0, 1, true, false
searchstringnoat most 255 characters
per_pageintegernoone of 10, 20, 50, 100
pageintegernoat least 1

GET /activity

Query string:

FieldTypeRequiredRules
pageintegernoat least 1
per_pageintegerno1 to 50
typestringnoat most 50 characters
actionstringnoat most 30 characters

GET /operations

Query string:

FieldTypeRequiredRules
activebooleanno
hoursintegerno1 to 168
finished_afterstringnodate_format:d-m-Y H:i:s

Limits

  • A listing route that takes per_page allows the values given in its field table. Most allow 10, 20, 30, 50 or 100.
  • Log downloads: 6 link requests a minute (log-download). Chunked uploads (database import): 1,200 chunks a minute. These count on top of the general limit.
  • The routes marked with their own limit in the Purpose column have that limit a minute for each user.

Who can do this

  • Every route needs the role permission shown in the table, view for reads and manage for changes. The owner and Admin roles have all of them.
  • A person the server is shared with has what the share grants. Control Panel customers have only their hosting grants, on their own server.
  • GET /activity does not need the server to be ready, so the log stays readable while the server is down.

Common errors

  • This server is not ready yet. Wait until it is connected and try again. (server_not_ready, 409) The server is still installing, or its install failed.
  • The server panel could not be reached. Check that the server is online and the API address is correct. (oss_unreachable, 502) The server is offline. Try again when it is back.
  • The server is busy with another task. Nothing was changed. Try again in a moment. (server_busy, 503) Another job, such as a deploy or a certificate request, is running.
  • This item was not found on the server. It may have been removed. Refresh and try again. (oss_not_found, 404) The item was removed on the server.
  • The server panel returned an error. Please try again. (oss_error, 502) The panel on the server refused the change. When the panel gave a reason, the answer holds it in oss_message.
  • You do not have permission to do this in this organization. (403) Your role lacks the permission in the table. A person a server is shared with, or a Control Panel customer, may have fewer permissions than a member.
  • The name field is required. (422) A field failed validation. The errors object names it.

On this page

Before you startMake a first callDashboardDELETE /dashboard/processes/{pid}SettingsPUT /settings/generalPOST /settings/rebootPUT /settings/reboot-schedulePUT /settings/redisPUT /settings/securityPUT /settings/swapPUT /settings/updatesSystem usersGET /system-usersPOST /system-usersDELETE /system-users/{systemUser}PUT /system-users/{systemUser}/passwordPUT /system-users/{systemUser}/shellPUT /system-users/{systemUser}/sshPOST /system-users/{systemUser}/ssh-keysPUT /system-users/{systemUser}/sudoSSH keysGET /ssh-keysDELETE /ssh-keysPOST /ssh-keys/deployFirewallGET /firewallPUT /firewallGET /firewall/rulesPOST /firewall/rulesPUT /firewall/rules/{rule}DELETE /firewall/unmanaged-rulesPOST /firewall/unmanaged-rules/adoptFail2banPUT /fail2banPOST /fail2ban/bansPOST /fail2ban/ignore-ipsDELETE /fail2ban/ignore-ipsCron jobsGET /cronjobsPOST /cronjobsPUT /cronjobs/{cronjob}Services and service monitoringPUT /service-monitoringPHPPUT /php/defaultPOST /php/versionsPUT /php/versions/{version}/extensions/{extension}PUT /php/versions/{version}/iniNode.js and build toolsPUT /node/defaultPOST /node/versionsDockerPOST /docker/databasesDELETE /docker/databases/{database}GET /docker/images/inspectGET /docker/images/searchPOST /docker/networksPOST /docker/volumesPOST /integrations/registriesPATCH /integrations/registries/{registry}LogsGET /logs/{log}Disk cleanerPOST /disk-cleaner/cleanGET /disk-cleaner/runsPUT /disk-cleaner/scheduleServer syncPOST /syncPOST /sync/ignoresGET /sync/{run}Alerts and notificationsPUT /alertsPUT /notification-channelsDatabasesGET /databasesPOST /databasesPOST /databases/adoptGET /databases/metricsGET /databases/processesPOST /databases/processes/{process}/killPUT /databases/root-password/{engine}GET /databases/untrackedPOST /databases/{database}/adminer-ssoPUT /databases/{database}/applicationPOST /databases/{database}/importsPUT /databases/{database}/imports/{import}/chunkPOST /databases/{database}/imports/{import}/startPOST /databases/{database}/phpmyadmin-ssoPOST /databases/{database}/usersPATCH /databases/{database}/users/{databaseUser}PUT /databases/{database}/users/{databaseUser}/passwordGit accounts on a serverGET /git-accounts/{ossAccount}/branchesGET /git-accounts/{ossAccount}/repositoriesActivity, operations and menuGET /activitiesGET /activityGET /operationsLimitsWho can do thisCommon errorsRelated