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, soGET /firewallmeansGET /organizations/{organization}/servers/{server}/firewall.{organization}is the organization id fromGET /organizations;{server}is a server id fromGET .../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
409with the codeserver_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 example25-11-2026 01:24:25) and the page information (ametaobject, nolinks) 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
202starts the work and answers at once. Read the item again to follow it, or callGET /operationson the server page. - Signed links. A download is two steps: a
POST .../linkroute makes a one-time link, then you open the link with a plainGET. 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.
| Route | Permission | Purpose |
|---|---|---|
GET /dashboard/facts | Server (view) | Static facts about the server: operating system, CPU, memory and disk size, uptime and software versions. |
GET /dashboard/history | Server (view) | Metric history for charts. |
GET /dashboard/metrics | Server (view) | Current CPU, memory, disk, load and network figures. |
GET /dashboard/processes | Server (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:
| Field | Type | Required | Rules |
|---|---|---|---|
signal | string | no | one of TERM, KILL |
Settings
The Settings screen of the server. GET /settings returns every group; each group has its own route to change it.
| Route | Permission | Purpose |
|---|---|---|
GET /settings | Settings (view) | All server settings in one answer: general, reboot, Redis, security, swap and updates. |
PUT /settings/general | Settings (manage) | Change the time zone, host name and time sync (NTP). |
POST /settings/reboot | Settings (manage) | Reboot the server now, or after delay_minutes. Answers 202. |
GET /settings/reboot | Settings (view) | Whether a reboot is waiting. |
DELETE /settings/reboot | Settings (manage) | Cancel a reboot that is waiting. |
PUT /settings/reboot-schedule | Settings (manage) | Turn the scheduled reboot on or off, and set when it runs. |
GET /settings/reboot-schedule/presets | Settings (view) | The ready-made schedules the panel offers. |
PUT /settings/redis | Settings (manage) | Change the Redis memory limit, eviction policy and password. Answers 202. |
PUT /settings/security | Settings (manage) | Change the SSH port, root login and password sign-in. |
PUT /settings/swap | Settings (manage) | Set the swap size in MB. 0 turns swap off. |
GET /settings/timezones | Settings (view) | The time zone names the server accepts. |
PUT /settings/updates | Settings (manage) | Change the automatic security updates and the reboot that follows them. |
POST /settings/updates/run | Settings (manage) | Run the updates now. Answers 202. |
GET /settings/updates/run | Settings (view) | Progress and result of the update run. |
PUT /settings/general
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
timezone | string | yes | a time zone name |
hostname | string | yes | at 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])?)*$ |
ntp | boolean | yes |
POST /settings/reboot
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
delay_minutes | integer | no | 0 to 60 |
PUT /settings/reboot-schedule
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
enabled | boolean | yes | |
frequency | string | when enabled=true | one of daily, weekly, monthly |
hour | integer | when enabled=true | 0 to 23 |
day_of_week | integer | no | can be null; 0 to 6 |
day_of_month | integer | no | can be null; 1 to 28 |
PUT /settings/redis
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
maxmemory | string | yes | pattern ^(0|\d+(kb|mb|gb|b)?)$, not case-sensitive |
maxmemory_policy | string | yes | one of noeviction, allkeys-lru, allkeys-lfu, allkeys-random, volatile-lru, volatile-lfu, volatile-random, volatile-ttl |
password | string | no | 8 to 255 characters; can be null |
remove_password | boolean | no |
PUT /settings/security
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
port | integer | yes | 1 to 65535 |
permit_root_login | string | yes | one of yes, no, prohibit-password |
password_authentication | boolean | yes |
PUT /settings/swap
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
size_mb | integer | yes | 0 to 65536 |
PUT /settings/updates
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
security_updates_enabled | boolean | yes | |
auto_reboot | boolean | yes | |
reboot_time | string | yes | pattern ^(now|([01]\d|2[0-3]):[0-5]\d)$ |
reboot_with_users | boolean | no |
System users
The Linux users on the server. Applications run as a system user.
| Route | Permission | Purpose |
|---|---|---|
GET /system-users | System Users (view) | List the system users. |
POST /system-users | System Users (manage) | Create a system user. Answers 201. |
GET /system-users/shells | System 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}/password | System Users (manage) | Set a new password. |
PUT /system-users/{systemUser}/shell | System Users (manage) | Change the shell. |
PUT /system-users/{systemUser}/ssh | System Users (manage) | Turn SSH access on or off. |
GET /system-users/{systemUser}/ssh-keys | System Users (view) | List the user's SSH keys. |
POST /system-users/{systemUser}/ssh-keys | System 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}/sudo | System Users (manage) | Give or take away sudo. |
GET /system-users
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
search | string | no | at most 255 characters |
sort | string | no | one of created_at, -created_at, username, -username |
per_page | integer | no | one of 10, 20, 30, 50, 100 |
page | integer | no | at least 1 |
POST /system-users
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
username | string | yes | pattern ^[a-z_][a-z0-9_-]{0,31}$ |
password | string | no | 8 to 255 characters; no control characters |
shell | string | no | at most 255 characters |
sudo | boolean | no | |
ssh_access | boolean | no | |
public_key | string | no | at most 16384 characters; can be null; one line; a complete OpenSSH public key |
DELETE /system-users/{systemUser}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
end_sessions | boolean | no |
PUT /system-users/{systemUser}/password
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
password | string | yes | 8 to 255 characters; no control characters |
PUT /system-users/{systemUser}/shell
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
shell | string | yes | at most 255 characters |
PUT /system-users/{systemUser}/ssh
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
ssh_access | boolean | yes |
POST /system-users/{systemUser}/ssh-keys
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 255 characters |
public_key | string | yes | at most 16384 characters; one line; a complete OpenSSH public key |
PUT /system-users/{systemUser}/sudo
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
sudo | boolean | yes |
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.
| Route | Permission | Purpose |
|---|---|---|
GET /ssh-keys | System 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-keys | System 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/deploy | System Users (manage) | Add one key to several system users at once. Limit: 30 a minute. |
GET /ssh-keys
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
fingerprint | string | no | pattern '.DeleteServerSshKeyRequest::FINGERPRINT |
system_user_id | integer | no | at least 1 |
DELETE /ssh-keys
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
fingerprint | string | yes | pattern '.self::FINGERPRINT |
system_user_ids | array | no | at least 1 items; at most 100 items |
system_user_ids.* | integer | yes | at least 1; no duplicates |
POST /ssh-keys/deploy
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 255 characters |
public_key | string | yes | at most 16384 characters; one line; a complete OpenSSH public key |
system_user_ids | array | yes | at least 1 items; at most 100 items |
system_user_ids.* | integer | yes | at 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.
| Route | Permission | Purpose |
|---|---|---|
GET /firewall | Firewall (view) | Whether the firewall is on. rules=true adds the rules to the answer. |
PUT /firewall | Firewall (manage) | Turn the firewall on or off. |
GET /firewall/presets | Firewall (view) | Ready-made rules the panel offers. |
GET /firewall/rules | Firewall (view) | List the rules. |
POST /firewall/rules | Firewall (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-rules | Firewall (manage) | Delete a rule that exists on the server but was not made in the panel. Answers 204. |
POST /firewall/unmanaged-rules/adopt | Firewall (manage) | Take over such a rule, so the panel manages it. Answers 201. |
GET /firewall
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
rules | boolean | no |
PUT /firewall
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
enabled | boolean | yes |
GET /firewall/rules
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
search | string | no | at most 255 characters |
filter | string | no | keys enabled, action, origin |
filter.enabled | boolean | no | |
filter.action | string | no | one of allow, deny |
filter.origin | string | no | one of user, default, db_user |
sort | string | no | one of created_at, -created_at, port_from, -port_from, action, -action, protocol, -protocol |
per_page | integer | no | one of 10, 20, 30, 50, 100 |
page | integer | no | at least 1 |
POST /firewall/rules
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
port_from | integer | yes | 1 to 65535 |
port_to | integer | no | can be null; 1 to 65535; not less than port_from |
protocol | string | yes | one of all, tcp, udp; a port range needs tcp or udp, not all |
action | string | yes | one of allow, deny |
source_ip | string | no | at most 64 characters; can be null; IP address or CIDR range |
description | string | no | at most 255 characters; can be null; one line |
PUT /firewall/rules/{rule}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
port_from | integer | no | 1 to 65535 |
port_to | integer | no | can be null; 1 to 65535; not less than port_from |
protocol | string | no | one of all, tcp, udp; a port range needs tcp or udp, not all |
action | string | no | one of allow, deny |
source_ip | string | no | at most 64 characters; can be null; IP address or CIDR range |
description | string | no | at most 255 characters; can be null; one line |
enabled | boolean | no |
DELETE /firewall/unmanaged-rules
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | yes | at 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.
| Route | Permission | Purpose |
|---|---|---|
GET /fail2ban | Fail2ban (view) | The Fail2ban settings, jails and current bans. |
PUT /fail2ban | Fail2ban (manage) | Change the ban time, find time, retries, ignored IPs and which jails are on. |
POST /fail2ban/bans | Fail2ban (manage) | Ban an IP address in a jail. |
DELETE /fail2ban/bans | Fail2ban (manage) | Lift every ban. |
DELETE /fail2ban/bans/{ip} | Fail2ban (manage) | Lift the ban on one IP address. |
POST /fail2ban/ignore-ips | Fail2ban (manage) | Add an IP address or range that is never banned. |
DELETE /fail2ban/ignore-ips | Fail2ban (manage) | Remove one from the ignore list. |
POST /fail2ban/install | Fail2ban (manage) | Install Fail2ban. Answers 202. |
PUT /fail2ban
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
bantime | integer | yes | |
findtime | integer | yes | 30 to 86400 |
maxretry | integer | yes | 2 to 100 |
ignore_ips | array | no | at most 100 items |
ignore_ips.* | string | yes | IP address or CIDR range |
jails | array | no | |
jails.* | boolean | no | |
acknowledged | boolean | no |
POST /fail2ban/bans
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
ip | string | yes | an IP address |
jail | string | yes | at most 64 characters; pattern ^[A-Za-z0-9_-]+$ |
POST /fail2ban/ignore-ips
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
ip | string | yes | IP address or CIDR range |
acknowledged | boolean | no |
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.
| Route | Permission | Purpose |
|---|---|---|
GET /cronjobs | Cron Jobs (view) | List the cron jobs. |
POST /cronjobs | Cron Jobs (manage) | Create a cron job. Answers 201. |
GET /cronjobs/command-presets | Cron Jobs (view) | Ready-made commands. |
GET /cronjobs/schedule-presets | Cron 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}/run | Cron Jobs (manage) | Run the job now. The result shows in its runs. Answers 202. |
GET /cronjobs/{cronjob}/runs | Cron Jobs (view) | The latest runs and what they printed, newest first. |
GET /cronjobs
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | string | no | keys system_user_id, application_id, username, active |
filter.system_user_id | integer | no | |
filter.application_id | integer | no | |
filter.username | string | no | at most 32 characters |
filter.active | boolean | no | |
per_page | integer | no | one of 10, 20, 50, 100 |
page | integer | no | at least 1 |
POST /cronjobs
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 255 characters; one line |
system_user_id | integer | no | can be null |
username | string | without system_user_id | can be null; pattern ^[a-z_][a-z0-9_-]{0,31}$; not root or www-data on a managed server |
application_id | integer | no | can be null |
command | string | yes | at most 1000 characters; one line; not_regex:/\{path\}/ |
expression | string | yes | at most 100 characters; one line |
active | boolean | no |
PUT /cronjobs/{cronjob}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 255 characters; one line |
system_user_id | integer | no | can be null |
username | string | no | can be null; pattern ^[a-z_][a-z0-9_-]{0,31}$; not root or www-data on a managed server |
application_id | string | no | prohibited |
command | string | yes | at most 1000 characters; one line; not_regex:/\{path\}/ |
expression | string | yes | at most 100 characters; one line |
active | boolean | no |
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.
| Route | Permission | Purpose |
|---|---|---|
GET /service-monitoring | Services (view) | The service monitoring settings. |
PUT /service-monitoring | Services (manage) | Turn service monitoring on or off and choose the services. It needs Premium Hosting Care. |
GET /services | Services (view) | List the services, with their state. |
POST /services/{service}/config-test | Services (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:
| Field | Type | Required | Rules |
|---|---|---|---|
enabled | boolean | yes | |
interval | string | yes | Rule::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).
| Route | Permission | Purpose |
|---|---|---|
GET /php | PHP (view) | The installed PHP versions, the default and the versions you can install. |
PUT /php/default | PHP (manage) | Set the default PHP version. |
POST /php/versions | PHP (manage) | Install a PHP version. Answers 202. |
DELETE /php/versions/{version} | PHP (manage) | Remove a PHP version. Answers 202. |
GET /php/versions/{version}/extensions | PHP (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}/ini | PHP (view) | The php.ini of a version. |
PUT /php/versions/{version}/ini | PHP (manage) | Replace the php.ini of a version. |
GET /php/versions/{version}/ioncube | PHP (view) | Whether ionCube is installed. |
POST /php/versions/{version}/ioncube | PHP (manage) | Install ionCube. Answers 202. |
DELETE /php/versions/{version}/ioncube | PHP (manage) | Remove ionCube. |
GET /php/versions/{version}/settings | PHP (view) | The common PHP settings of a version, such as memory and upload limits. |
PUT /php/versions/{version}/settings | PHP (manage) | Change those settings. |
PUT /php/default
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
default | string | yes | pattern ^\d+\.\d+$ |
POST /php/versions
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
version | string | yes | pattern ^\d+\.\d+$ |
PUT /php/versions/{version}/extensions/{extension}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
enabled | boolean | yes |
PUT /php/versions/{version}/ini
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
contents | string | yes | at most 262144 characters |
acknowledged | string | yes | accepted |
Node.js and build tools
Node.js versions and the build tools. {version} is a full version such as 22.11.0.
| Route | Permission | Purpose |
|---|---|---|
GET /build-tools | Node.js (view) | Whether the build tools are installed. |
POST /build-tools/install | Node.js (manage) | Install the build tools. Answers 202. |
GET /node | Node.js (view) | The installed Node.js versions and the default. |
PUT /node/default | Node.js (manage) | Set the default Node.js version. |
POST /node/versions | Node.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}/npm | Node.js (manage) | Update npm for a version. |
PUT /node/default
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
default | string | yes | pattern ^\d+\.\d+\.\d+$ |
POST /node/versions
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
version | string | yes | pattern ^\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.
| Route | Permission | Purpose |
|---|---|---|
GET /docker/databases | Docker (view) | List the database containers. |
POST /docker/databases | Docker (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}/credentials | Docker (manage) | Show the database container's connection details. |
GET /docker/images/inspect | Application (manage) | Check an image before you use it. Needs Application (manage). |
GET /docker/images/search | Application (manage) | Search Docker Hub (for a container application). Needs Application (manage). |
GET /docker/images/tags | Application (manage) | The versions (tags) of an image. Needs Application (manage). |
GET /docker/limits | Docker (view) | The Docker limits of this server. |
GET /docker/networks | Docker (view) | List the Docker networks. |
POST /docker/networks | Docker (manage) | Create a network. Answers 201. |
DELETE /docker/networks/{name} | Docker (manage) | Delete a network. |
GET /docker/volumes | Docker (view) | List the Docker volumes. |
POST /docker/volumes | Docker (manage) | Create a volume. Answers 201. |
DELETE /docker/volumes/{name} | Docker (manage) | Delete a volume. |
GET /integrations/registries | Docker Registries (view) | List the Docker registries. |
POST /integrations/registries | Docker 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}/test | Docker Registries (manage) | Test the registry login. |
POST /docker/databases
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 63 characters; pattern '.StoreDockerResourceRequest::NAME |
engine | string | yes | at most 32 characters; pattern ^[a-z0-9_-]+$ |
version | string | yes | at most 32 characters; one line |
docker_network | string | no | at most 255 characters; can be null; pattern '.StoreDockerResourceRequest::NAME |
cpu_limit | string | no | at most 16 characters; can be null; one line |
memory_limit | string | no | at most 20 characters; can be null; one line |
DELETE /docker/databases/{database}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
remove_data | boolean | no |
GET /docker/images/inspect
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
image | string | yes | at most 255 characters; pattern '.self::IMAGE_PATTERN |
registry_id | integer | no | at least 1 |
GET /docker/images/search
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
q | string | yes | 2 to 100 characters |
limit | integer | no | 1 to 25 |
POST /docker/networks
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | pattern '.self::NAME |
POST /docker/volumes
Takes the same fields as POST /docker/networks.
POST /integrations/registries
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 100 characters; no control characters |
registry | string | yes | at most 255 characters; no control characters |
username | string | yes | at most 255 characters; no control characters |
token | string | yes | at most 4096 characters; no control characters |
PATCH /integrations/registries/{registry}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | at most 100 characters; no control characters |
registry | string | yes | at most 255 characters; no control characters |
username | string | yes | at most 255 characters; no control characters |
token | string | no | at 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.
| Route | Permission | Purpose |
|---|---|---|
GET /logs | Logs (view) | List the server's log files. |
GET /logs/{log} | Logs (view) | Read the end of a log. |
POST /logs/{log}/link | Logs (view) | Make a signed download link for a log. Limit: 6 a minute. |
GET /logs/{log}/stream | Signed link | Download the log through a signed link. No token needed; the link is the proof. Limit: 60 a minute. |
GET /logs/{log}
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
lines | integer | no | 1 to 5000 |
grep | string | no | at most 200 characters; can be null |
after | integer | no | at least 0 |
Disk cleaner
Free disk space by removing old logs, caches and similar files, now or on a schedule.
| Route | Permission | Purpose |
|---|---|---|
GET /disk-cleaner | Disk Cleaner (view) | What the cleaner can remove and how much space it would free. |
POST /disk-cleaner/clean | Disk Cleaner (manage) | Run a clean now. |
GET /disk-cleaner/runs | Disk Cleaner (view) | Past cleans. |
GET /disk-cleaner/schedule | Disk Cleaner (view) | The automatic clean schedule. |
PUT /disk-cleaner/schedule | Disk Cleaner (manage) | Set the schedule. |
DELETE /disk-cleaner/schedule | Disk Cleaner (manage) | Remove the schedule. Answers 204. |
POST /disk-cleaner/clean
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
categories | array | yes | at least 1 items; at most 20 items |
categories.* | string | yes | no duplicates; pattern ^[a-z0-9_]{1,40}$ |
keep_days | integer | no | can be null; one of 0, 1, 3, 7, 14, 30 |
GET /disk-cleaner/runs
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
per_page | integer | no | one of 10, 20, 50, 100 |
page | integer | no | at least 1 |
PUT /disk-cleaner/schedule
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
enabled | boolean | yes | |
frequency | string | yes | one of hourly, daily, weekly, monthly |
categories | array | yes | at least 1 items; at most 20 items |
categories.* | string | yes | no duplicates; pattern ^[a-z0-9_]{1,40}$ |
threshold_percent | integer | no | can be null; 1 to 99 |
keep_days | integer | no | can 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.
| Route | Permission | Purpose |
|---|---|---|
POST /sync | Server 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/handover | Server Sync (view) | The state of the handover. |
POST /sync/handover | Server Sync (manage) | Hand the server over after a sync. |
GET /sync/ignores | Server Sync (view) | Items the sync leaves out. |
POST /sync/ignores | Server Sync (manage) | Leave an item out. Answers 201. |
DELETE /sync/ignores/{ignore} | Server Sync (manage) | Stop leaving it out. Answers 204. |
GET /sync/latest | Server Sync (view) | The latest sync run. |
GET /sync/{run} | Server Sync (view) | One sync run. |
POST /sync
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
mode | string | no | one of preview, apply |
only | array | no | |
only.* | string | no | one of application, system_user, ssh_key, cronjob, worker, pm2_process, database_user, certificate, php_settings, firewall_rule |
include_firewall | boolean | no | |
include_ignored | boolean | no |
POST /sync/ignores
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
resource_type | string | yes | one of application, system_user, ssh_key, cronjob, worker, pm2_process, database_user, certificate, php_settings, firewall_rule |
resource_key | string | yes | at most 255 characters |
note | string | no | at most 255 characters; can be null |
GET /sync/{run}
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
since | integer | no | at least 0 |
Alerts and notifications
The alert thresholds of the server and which notification channels it uses.
| Route | Permission | Purpose |
|---|---|---|
GET /alerts | Alerts (view) | The server's alert thresholds. |
PUT /alerts | Alerts (manage) | Change the alert thresholds. |
GET /notification-channels | Notifications (view) | The notification channels the server uses. |
PUT /notification-channels | Notifications (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:
| Field | Type | Required | Rules |
|---|---|---|---|
cpu | integer | yes | 1 to 100 |
memory | integer | yes | 1 to 100 |
disk | integer | yes | 1 to 100 |
load_5 | numeric | no | 0.1 to 1000; present; can be null |
load_15 | numeric | no | 0.1 to 1000; present; can be null |
PUT /notification-channels
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
channels | array | no | at most 50 items; present |
channels.* | string | no | keys id, groups |
channels.*.id | integer | yes | at least 1; no duplicates |
channels.*.groups | array | no | at least 1 items |
channels.*.groups.* | string | no | no 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.
| Route | Permission | Purpose |
|---|---|---|
GET /databases | Databases (view) | List the databases. |
POST /databases | Databases (manage) | Create a database, with users. Answers 201. |
POST /databases/adopt | Databases (manage) | Take over a database that exists on the server. Answers 201. |
POST /databases/connections/{engine}/test | Databases (manage) | Test the connection to an engine. |
GET /databases/engines | Databases (view) | The database engines on the server. |
POST /databases/engines/{engine}/install | Databases (manage) | Install an engine. Answers 202. |
GET /databases/exports | Databases (view) | List the export files. |
DELETE /databases/exports/{export} | Databases (manage) | Delete an export file. Answers 204. |
POST /databases/exports/{file}/link | Databases (manage) | Make a signed download link for an export file. |
GET /databases/exports/{file}/stream | Signed link | Download an export file through a signed link. |
GET /databases/metrics | Databases (view) | Database server metrics. |
GET /databases/processes | Databases (view) | The running queries. |
POST /databases/processes/{process}/kill | Databases (manage) | Kill a query. Answers 204. |
GET /databases/root-password | Databases (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/untracked | Databases (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-sso | Databases (manage) | Get a one-time sign-in link for Adminer. |
PUT /databases/{database}/application | Databases (manage) | Link the database to an application, or unlink it. |
POST /databases/{database}/exports | Databases (manage) | Export the database to a file. Answers 202. |
GET /databases/{database}/imports | Databases (view) | List the imports. |
POST /databases/{database}/imports | Databases (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}/chunk | Databases (manage) | Upload one chunk of the import file. Limit: 1,200 a minute. |
POST /databases/{database}/imports/{import}/start | Databases (manage) | Run the import once the file is uploaded. Answers 202. Limit: 6 a minute. |
POST /databases/{database}/phpmyadmin-sso | Databases (manage) | Get a one-time sign-in link for phpMyAdmin. |
GET /databases/{database}/tables | Databases (view) | List the tables. |
GET /databases/{database}/users | Databases (view) | List the database users. |
POST /databases/{database}/users | Databases (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}/password | Databases (manage) | Set a user's password. |
GET /databases
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
search | string | no | at most 255 characters; can be null |
filter | string | no | keys engine, application_id, attached |
filter.engine | string | no | can be null; pattern ^[a-z0-9_-]{1,32}$ |
filter.application_id | integer | no | at least 1; can be null |
filter.attached | boolean | no | can be null |
sort | string | no | can be null |
per_page | integer | no | one of 10, 20, 30, 50, 100 |
page | integer | no | at least 1 |
POST /databases
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
name | string | yes | pattern ^[A-Za-z0-9_]{1,63}$ |
engine | string | yes | pattern ^[a-z0-9_-]{1,32}$ |
charset | string | no | at most 64 characters; can be null |
collation | string | no | at most 64 characters; can be null |
application_id | integer | no | at least 1; can be null |
create_user | string | no | can be null; keys username, password, connection_preference, host, restart_cluster |
create_user.username | string | with create_user | pattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i |
create_user.password | string | no | 8 to 255 characters; can be null |
create_user.connection_preference | string | no | can be null; one of localhost, remote, anywhere |
create_user.host | string | no | |
create_user.restart_cluster | boolean | no |
POST /databases/adopt
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
engine | string | yes | pattern ^[a-z0-9_-]{1,32}$ |
names | array | yes | at least 1 items; at most 100 items |
names.* | string | yes | no duplicates; pattern ^[A-Za-z0-9_]{1,63}$ |
GET /databases/metrics
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
engine | string | yes | pattern ^[a-z0-9_-]{1,32}$ |
GET /databases/processes
Takes the same fields as GET /databases/metrics.
POST /databases/processes/{process}/kill
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
engine | string | yes | pattern ^[a-z0-9_-]{1,32}$ |
PUT /databases/root-password/{engine}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
password | string | yes | 12 to 128 characters; no control characters; must match password_confirmation |
current_password | string | no | at most 128 characters; can be null; no control characters |
GET /databases/untracked
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
engine | string | yes | pattern ^[a-z0-9_-]{1,32}$ |
POST /databases/{database}/adminer-sso
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
database_user_id | integer | no | at least 1; can be null |
application_id | integer | no | at least 1; can be null |
PUT /databases/{database}/application
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
application_id | integer | no | at least 1; present; can be null |
POST /databases/{database}/imports
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
file_name | string | yes | at most 255 characters |
size_bytes | integer | yes | 1 to 2147483648 |
PUT /databases/{database}/imports/{import}/chunk
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
size | integer | yes | 1 to '.(int) config('oss.upload_max_bytes') |
content_type | string | yes | one of application/octet-stream |
POST /databases/{database}/imports/{import}/start
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
confirm_replace | string | yes | accepted |
safety_copy | boolean | no |
POST /databases/{database}/phpmyadmin-sso
Takes the same fields as POST /databases/{database}/adminer-sso.
POST /databases/{database}/users
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
username | string | yes | pattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i |
password | string | no | 8 to 255 characters; can be null |
connection_preference | string | yes | one of localhost, remote, anywhere |
host | string | no | |
restart_cluster | boolean | no |
PATCH /databases/{database}/users/{databaseUser}
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
username | string | yes | pattern ^[A-Za-z0-9_]{1,32}$; not_regex:/^pg_/i |
connection_preference | string | yes | one of localhost, remote, anywhere |
host | string | no | |
password | string | yes | 8 to 255 characters |
restart_cluster | boolean | no |
PUT /databases/{database}/users/{databaseUser}/password
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
password | string | yes | 8 to 255 characters |
Git accounts on a server
The Git accounts a server can use for deploying applications.
| Route | Permission | Purpose |
|---|---|---|
GET /git-accounts | Application or Deployment (manage) | The Git accounts of the organization and whether each is linked to this server. |
POST /git-accounts/{gitAccount}/connect | Application (manage) Login token only. | Link a Git account to this server. |
GET /git-accounts/{ossAccount}/branches | Application or Deployment (manage) | The branches of a repository. |
GET /git-accounts/{ossAccount}/repositories | Application or Deployment (manage) | The repositories of a Git account. |
GET /git-accounts/{ossAccount}/branches
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
repository | string | yes | at most 255 characters; pattern ^[A-Za-z0-9._\-\/~]+$ |
GET /git-accounts/{ossAccount}/repositories
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
search | string | no | at most 100 characters; can be null |
page | integer | no | 1 to 1000 |
Activity, operations and menu
What happened on the server and what is running now.
| Route | Permission | Purpose |
|---|---|---|
GET /activities | Activity Log (view) | The server's activity log. |
GET /activities/filters | Activity Log (view) | The values you can filter the activity log by. |
GET /activity | Activity 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 /menu | Server (view) | The sidebar items you may see for this server. |
GET /operations | Server (view) | The long-running jobs on the server, running and recent. |
GET /activities
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | array | no | |
filter.type | string | no | at most 255 characters |
filter.action | string | no | at most 255 characters |
filter.kind | string | no | one of created, changed, removed, failed |
filter.security | string | no | one of 0, 1, true, false |
search | string | no | at most 255 characters |
per_page | integer | no | one of 10, 20, 50, 100 |
page | integer | no | at least 1 |
GET /activity
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
page | integer | no | at least 1 |
per_page | integer | no | 1 to 50 |
type | string | no | at most 50 characters |
action | string | no | at most 30 characters |
GET /operations
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
active | boolean | no | |
hours | integer | no | 1 to 168 |
finished_after | string | no | date_format:d-m-Y H:i:s |
Limits
- A listing route that takes
per_pageallows 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 /activitydoes 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 inoss_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
errorsobject names it.
Related
Servers
API routes to list, create, connect and delete servers, follow an install, run managed servers, restore deleted servers and share a server.
Applications
API routes to create and manage applications, with domains and SSL, files, logs, PHP, environment, deployment, staging, workers, security, containers and settings.