ServerAvatarDocs
API Reference

Applications

API routes to create and manage applications, with domains and SSL, files, logs, PHP, environment, deployment, staging, workers, security, containers and settings.

These routes are the API side of the application screens: create and list applications, domains and SSL, files, logs, PHP, environment, deployment, staging and clone, workers, security, containers and settings.

Backups of an application are on Backups. WordPress tools (WP Toolkit and blueprints), Log Monitoring and proactive monitoring are on Billing and add-ons. The databases of an application are the server's databases: see Server panel. The application activity is part of the server activity log: GET /activities on the Server panel page.

Before you start

  • Base path. Every route here starts with /organizations/{organization}/servers/{server}/applications. Most routes work on one application and start with /{application}. In the tables the path of such a route is shown without that start, so GET /domains means GET /organizations/{organization}/servers/{server}/applications/{application}/domains. The first group also has routes that show their full path from /applications or /organizations. {application} is an application id from the list.
  • 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 applications on a server:

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

The answer has a data list. Each item has id, name, domain, url, site_type, status and status_title (for example Running), document_root and the state of the web firewall, bot blocker and Fail2ban. A shortened item:

{
  "data": [
    {
      "id": 4,
      "name": "acme-site",
      "domain": "acme-site.23-172-120-68.nip.io",
      "url": "https://acme-site.23-172-120-68.nip.io",
      "document_root": "/home/acme/acme-site/public_html",
      "site_type": "git",
      "site_type_title": "From Git repo",
      "status": "active",
      "status_title": "Running",
      "deployed": true,
      "is_disabled": false,
      "waf_enabled": false,
      "fail2ban_enabled": false
    }
  ]
}

Applications: list, create, overview and actions

RoutePermissionPurpose
GET /organizations/{organization}/applicationsApplication (view)Every application on every ready server of the organization, each with its server. It takes search and filter[server_id]. page, per_page and sort are accepted but ignored: the list is sorted by name.
GET /applicationsApplication (view)List the applications on the server.
POST /applicationsApplication (manage)Create an application. Answers 201.
GET /organizations/{organization}/servers/{server}/site-typesApplication (view)The application types this server can create. It fills the type list of Create application.
GET /applications/port-checkApplication (view)Check that a port is free for a new container application.
GET /Application (view)One application (same as GET .../applications/{application}).
DELETE /Application (manage)Delete the application.
POST /directory-sizeApplication (view)Measure and store the size of the application's directory.
POST /disableApplication (manage)Turn the application off. Its site stops answering.
POST /enableApplication (manage)Turn the application on again.
GET /issuesApplication (view)The health issues of the application, and whether it is healthy.
GET /menuApplication (view)The sidebar items you may see for this application.
POST /process/{action}Application (manage)Start, stop or restart a Node.js application's process. {action} is start, stop or restart.
POST /provisionApplication (manage)Run a failed setup again. Answers 202.
GET /sftpApplication (view)The application's SFTP login details (no password).
POST /sftp/emailApplication (manage)Email the SFTP details to yourself. Answers 202. Limit: 3 a minute.
POST /sftp/passwordApplication (manage)Set a new SFTP password. Limit: 10 a minute.
GET /updateApplication (view)Whether an update of the application's own software is available, and the progress of a run.
POST /updateApplication (manage)Update the application's software in one click (a background job). Answers 202.

GET /organizations/{organization}/applications

Query string:

FieldTypeRequiredRules
filterstringnokeys status, site_type, server_id
filter.server_idintegerno
filterstringnokeys status, site_type, server_id
filter.server_idintegerno

GET /applications

Query string:

FieldTypeRequiredRules
pageintegernoat least 1
per_pageintegerno1 to 100
searchstringnoat most 255 characters
filterstringnokeys status, site_type
filter.statusstringnoone of pending, provisioning, active, failed, paused
filter.site_typestringnoat most 64 characters; pattern ^[a-z][a-z0-9_]*$
sortstringnoRule::in($sorts)

POST /applications

JSON body:

FieldTypeRequiredRules
namestringyesat most 255 characters
domainstringyesat most 253 characters; pattern ^[A-Za-z0-9.-]+$
domain_typestringyesone of custom, temp
site_typestringyespattern ^[a-z][a-z0-9_]{0,63}$
system_user_idintegernoat least 1
generate_system_userbooleanno
system_userarrayno
system_user.usernamestringnoat most 32 characters
system_user.passwordstringnoat most 255 characters
envarraynoat most 100 items
env.*arrayno
env.*.keystringyesat most 255 characters
env.*.valuestringnoat most 65535 characters; can be null
volume_mountsarraynoat most 20 items
volume_mounts.*arrayno
volume_mounts.*.volumestringyesat most 128 characters
volume_mounts.*.pathstringyesat most 4096 characters
wordpress_blueprint_idintegernoat least 1; can be null
install_log_monitoringbooleanno
proactive_monitoringbooleanno
git_sourcestringnoone of account, public_url
git_account_idintegernoat least 1; can be null
oss_git_account_idintegernoat least 1; can be null
repository_urlstringnoat most 255 characters; can be null

GET /applications/port-check

Query string:

FieldTypeRequiredRules
portintegeryes1 to 65535
application_idintegernoat least 1

DELETE /

JSON body:

FieldTypeRequiredRules
remove_filesbooleanno
remove_databasesbooleanno
remove_system_userbooleanno

Domains and SSL

RoutePermissionPurpose
GET /certificateDomains & SSL (view)The SSL certificate.
POST /certificateDomains & SSL (manage)Issue a certificate (Let's Encrypt, or your own).
DELETE /certificateDomains & SSL (manage)Remove the certificate. Answers 204.
POST /certificate/dry-runDomains & SSL (manage)Start a test that checks a certificate could be issued. Answers 202.
GET /certificate/dry-runDomains & SSL (view)The result of that test.
PUT /certificate/force-httpsDomains & SSL (manage)Turn "Force HTTPS" on or off.
GET /domainsDomains & SSL (view)List the domains.
POST /domainsDomains & SSL (manage)Add a domain. Answers 201.
PUT /domains/{domain}Domains & SSL (manage)Change a domain.
DELETE /domains/{domain}Domains & SSL (manage)Remove a domain. Answers 204.
POST /domains/{domain}/primaryDomains & SSL (manage)Make the domain the primary one.
POST /domains/{domain}/verifyDomains & SSL (view)Check that the domain's DNS points to the server.

POST /certificate

JSON body:

FieldTypeRequiredRules
typestringyesone of letsencrypt, self_signed, custom
forcebooleanno
certificatestringyesat most 65535 characters; exclude_unless:type,custom
private_keystringyesat most 65535 characters; exclude_unless:type,custom
chainstringnoat most 65535 characters; exclude_unless:type,custom; can be null

PUT /certificate/force-https

JSON body:

FieldTypeRequiredRules
force_httpsbooleanyes

POST /domains

JSON body:

FieldTypeRequiredRules
domainstringyesat most 253 characters; pattern ^[A-Za-z0-9.*-]+$
typestringnoone of alias, redirect
redirect_tostringnoat most 2048 characters
redirect_statusintegernoone of 301, 302

PUT /domains/{domain}

JSON body:

FieldTypeRequiredRules
typestringnorequired_without_all:redirect_to,redirect_status; one of alias, redirect
redirect_tostringnoat most 2048 characters
redirect_statusintegernoone of 301, 302

Files

RoutePermissionPurpose
GET /filesFile Manager (view)List a folder.
DELETE /filesFile Manager (manage)Delete files or folders (they go to the trash).
GET /files/archive-jobsFile Manager (view)Running and finished compress or extract jobs.
GET /files/breakdownFile Manager (view)Disk use by folder, for a chart.
POST /files/compressFile Manager (manage)Compress files into an archive. Answers 202.
GET /files/contentFile Manager (manage)Read a file.
PUT /files/contentFile Manager (manage)Save a file.
POST /files/content/restoreFile Manager (manage)Restore an earlier version of a file.
POST /files/copyFile Manager (manage)Copy files or folders.
POST /files/directoriesFile Manager (manage)Create a folder.
POST /files/extractFile Manager (manage)Extract an archive. Answers 202.
POST /files/linkFile Manager (manage)Make a signed download link for a file.
PUT /files/permissionsFile Manager (manage)Change file permissions.
PUT /files/renameFile Manager (manage)Rename or move a file or folder.
GET /files/searchFile Manager (view)Search files by name.
GET /files/sizeFile Manager (view)The size of one folder.
GET /files/sizesFile Manager (view)The sizes of several folders.
GET /files/streamSigned linkDownload a file through a signed link. No token needed; the link is the proof. Limit: 60 a minute.
GET /files/trashFile Manager (view)List the trash.
DELETE /files/trashFile Manager (manage)Empty the trash.
POST /files/trash/restoreFile Manager (manage)Restore items from the trash.
POST /files/uploadFile Manager (manage)Upload a small file in one request. Limit: 10 a minute.
POST /files/uploadsFile Manager (manage)Start a chunked upload.
GET /files/uploads/spaceFile Manager (view)The free space and the largest file you can upload.
PUT /files/uploads/{upload}File Manager (manage)Send one chunk. Limit: 1,200 a minute.
GET /files/uploads/{upload}File Manager (view)The state of a chunked upload.
DELETE /files/uploads/{upload}File Manager (manage)Cancel an upload.
POST /files/uploads/{upload}/finalizeFile Manager (manage)Finish the upload and put the file in place.

GET /files

Query string:

FieldTypeRequiredRules
pathstringnocan be null; a path inside the application's folder: no leading /, no ..
refreshbooleanno

DELETE /files

JSON body:

FieldTypeRequiredRules
pathstringwithout pathsprohibits:paths,count; a path inside the application's folder: no leading /, no ..
pathsarraywithout pathat least 1 items; at most '.self::MAX_PATHS items
paths.*stringyesa path inside the application's folder: no leading /, no ..
countintegerwith paths
confirmstringyesaccepted
permanentbooleanno

GET /files/breakdown

Takes the same fields as GET /files.

POST /files/compress

JSON body:

FieldTypeRequiredRules
pathstringwithout pathsprohibits:paths; a path inside the application's folder: no leading /, no ..
pathsarraywithout pathat least 1 items; at most '.RenameFilesRequest::MAX_PATHS items
paths.*stringyesa path inside the application's folder: no leading /, no ..
targetstringyesa path inside the application's folder: no leading /, no ..

GET /files/content

Query string:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..

PUT /files/content

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
contentstringnopresent; can be null
versionstringnoat most 64 characters; can be null

POST /files/content/restore

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
backupstringyesat most 255 characters

POST /files/copy

JSON body:

FieldTypeRequiredRules
pathstringwithout pathsprohibits:paths,target_directory; a path inside the application's folder: no leading /, no ..
targetstringwith pathprohibits:paths,target_directory; a path inside the application's folder: no leading /, no ..
pathsarraywithout pathat least 1 items; at most '.RenameFilesRequest::MAX_PATHS items
paths.*stringyesa path inside the application's folder: no leading /, no ..
target_directorystringnopresent_with:paths; can be null; a path inside the application's folder: no leading /, no ..

POST /files/directories

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..

POST /files/extract

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
targetstringnopresent; can be null; a path inside the application's folder: no leading /, no ..

POST /files/link

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
modestringyesone of download, preview

PUT /files/permissions

JSON body:

FieldTypeRequiredRules
pathstringwithout pathsprohibits:paths; a path inside the application's folder: no leading /, no ..
pathsarraywithout pathat least 1 items; at most '.RenameFilesRequest::MAX_PATHS items
paths.*stringyesa path inside the application's folder: no leading /, no ..
modestringyespattern ^[0-3]?[0-7]{3}$

PUT /files/rename

JSON body:

FieldTypeRequiredRules
pathstringwithout pathsprohibits:paths,target_directory; a path inside the application's folder: no leading /, no ..
targetstringwith pathprohibits:paths,target_directory; a path inside the application's folder: no leading /, no ..
pathsarraywithout pathat least 1 items; at most '.self::MAX_PATHS items
paths.*stringyesa path inside the application's folder: no leading /, no ..
target_directorystringnopresent_with:paths; can be null; a path inside the application's folder: no leading /, no ..

GET /files/search

Query string:

FieldTypeRequiredRules
qstringyes1 to 255 characters
pathstringnocan be null; a path inside the application's folder: no leading /, no ..

GET /files/size

Takes the same fields as GET /files.

GET /files/sizes

Takes the same fields as GET /files.

DELETE /files/trash

JSON body:

FieldTypeRequiredRules
confirmstringyesaccepted
batchstringnocan be null; pattern ^\d{8}-\d{6}$

POST /files/trash/restore

JSON body:

FieldTypeRequiredRules
batchstringyespattern ^\d{8}-\d{6}$
pathstringnocan be null; a path inside the application's folder: no leading /, no ..

POST /files/upload

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
filefileyes

POST /files/uploads

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..
sizeintegernoat least 0; can be null

PUT /files/uploads/{upload}

JSON body:

FieldTypeRequiredRules
sizeintegeryes1 to '.(int) config('oss.upload_max_bytes')

POST /files/uploads/{upload}/finalize

JSON body:

FieldTypeRequiredRules
pathstringyesa path inside the application's folder: no leading /, no ..

Logs

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

GET /logs/{key}

Query string:

FieldTypeRequiredRules
linesintegerno1 to 5000
grepstringnoat most 255 characters
fromintegernoat least 1
ipstringnoan IP address
statusstringnopattern ^([1-5][0-9]{2}|[1-5]xx)$
methodstringnopattern ^[A-Za-z]{3,10}$
urlstringnoat most 255 characters

PHP

RoutePermissionPurpose
POST /cronjobs/switch-phpPHP Settings (view) and Cron Jobs (manage) on the serverMove the application's cron jobs to its PHP version. Limit: 10 a minute.
GET /phpPHP Settings (view)The application's PHP version and settings.
PUT /phpPHP Settings (manage)Change the PHP version and settings.
POST /php/isolatePHP Settings (manage)Give the application its own PHP-FPM pool.
POST /php/v7-extra-confPHP Settings (manage)Translate extra web server configuration from ServerAvatar v7. Limit: 30 a minute.

POST /cronjobs/switch-php

JSON body:

FieldTypeRequiredRules
versionstringyespattern ^\d+\.\d+$
cronjob_idsarrayyesat least 1 items; at most 100 items
cronjob_ids.*integeryesat least 1; no duplicates

POST /php/v7-extra-conf

JSON body:

FieldTypeRequiredRules
extra_confstringnoat most 20000 characters; present; can be null

Environment

RoutePermissionPurpose
GET /environmentEnvironment (manage)Read the .env file.
PUT /environmentEnvironment (manage)Save the .env file.
POST /environment/checkEnvironment (manage)Check the file before you save it.
GET /environment/historyEnvironment (manage)Earlier versions of the file.
GET /environment/history/{log}/diffEnvironment (manage)What changed in one earlier version.
POST /environment/restoreEnvironment (manage)Restore an earlier version.

PUT /environment

JSON body:

FieldTypeRequiredRules
rawstringnoat most 262144 characters; present; can be null
restartbooleanno

POST /environment/check

Takes the same fields as PUT /environment.

GET /environment/history

Query string:

FieldTypeRequiredRules
pageintegernoat least 1
per_pageintegerno1 to 100

POST /environment/restore

JSON body:

FieldTypeRequiredRules
backupstringyespattern ^\.env\.bak-\d{8}-\d{6}$
restartbooleanno

Deployment

RoutePermissionPurpose
GET /deploymentDeployment (view)The Git deployment settings and state.
PUT /deployment-settingsDeployment (manage)Change deploy settings: auto deploy, scripts and so on.
POST /deploymentsDeployment (manage)Deploy now. Answers 202.
GET /deployments/latestDeployment (view)The latest deployment.
GET /deployments/{deployment}Deployment (view)One deployment and its log.
POST /deployments/{deployment}/redeployDeployment (manage)Deploy that version again. Answers 202.
PUT /git-sourceDeployment (manage)Connect or change the Git repository and branch.
PUT /webhookDeployment (manage)Turn the deploy webhook on or off.
GET /webhook-providersDeployment (view)The Git hosts the webhook supports.

PUT /deployment-settings

JSON body:

FieldTypeRequiredRules
branchstringnoat most 255 characters; pattern ^[A-Za-z0-9._\/-]+$
deploy_scriptstringnoat most 65535 characters; can be null

PUT /git-source

JSON body:

FieldTypeRequiredRules
git_sourcestringyesone of account, public_url
git_account_idintegernoat least 1; can be null
oss_git_account_idintegernoat least 1; can be null
repositorystringyesat most 255 characters; pattern ^[A-Za-z0-9._-]+(\/[A-Za-z0-9._-]+)+$; not_regex:/(^|\/)\.{1,2}(\/|$)/
repository_urlstringyesat most 255 characters
branchstringnoat most 255 characters; pattern ^[A-Za-z0-9._\/-]+$

PUT /webhook

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
providerstringwhen enabled=trueat most 30 characters; can be null; pattern ^[a-z0-9_-]+$
secretstringno16 to 255 characters; can be null
rotatebooleanno

Staging and clone

RoutePermissionPurpose
POST /cloneClone (manage)Clone the application to a new application. Answers 202.
GET /clones/{clone}Clone (view)The state of a clone job.
GET /stagingStaging Area (view)The staging copy of the application, if there is one.
POST /stagingStaging Area (manage)Create a staging copy. Answers 201.
POST /staging/pullStaging Area (manage)Pull the live site into staging. Answers 202.
POST /staging/pushStaging Area (manage)Push staging to the live site. Answers 202.
GET /staging/runs/{run}Staging Area (view)The state of a staging job.
GET /staging/safety-copiesStaging Area (view)The database copies made before a push.
POST /staging/safety-copies/{name}/restoreStaging Area (manage)Restore one safety copy.

POST /clone

JSON body:

FieldTypeRequiredRules
domainstringyesat most 253 characters; pattern '.CreateStagingRequest::DOMAIN
namestringnoat most 255 characters

POST /staging

JSON body:

FieldTypeRequiredRules
domainstringyesat most 253 characters; pattern '.self::DOMAIN

POST /staging/pull

JSON body:

FieldTypeRequiredRules
modestringyesone of files, database, full
safety_copybooleanno
backupstringno

POST /staging/push

Takes the same fields as POST /staging/pull.

Workers

RoutePermissionPurpose
POST /supervisor/convertApplication (manage)Convert the workers to Supervisor.
GET /workersWorkers (view)List the workers.
POST /workersWorkers (manage)Create a worker. Answers 201.
POST /workers/install-supervisorWorkers (manage)Install Supervisor.
PUT /workers/{worker}Workers (manage)Change a worker.
DELETE /workers/{worker}Workers (manage)Delete a worker. Answers 204.
POST /workers/{worker}/{action}Workers (manage)Start, stop or restart a worker. {action} is start, stop or restart.

POST /workers

JSON body:

FieldTypeRequiredRules
namestringyesat most 60 characters
commandstringyesat most 500 characters
kindstringnoone of queue, horizon, custom
directorystringnoat most 255 characters; can be null
processesintegerno1 to 16
stop_wait_secondsintegerno1 to 600
auto_restartbooleanno
restart_on_deploybooleanno
enabledbooleanno
auto_startbooleanno
userstringnoat most 32 characters; can be null; pattern ^[a-z_][a-z0-9_-]*$; not root or www-data on a managed server
log_filestringnoat most 255 characters; can be null
log_levelstringnocan be null; one of critical, error, warn, info, debug, trace, blather
extra_configstringnoat most 2000 characters; can be null

PUT /workers/{worker}

Takes the same fields as POST /workers.

Password protection, web firewall, bot blocker and Fail2ban

RoutePermissionPurpose
GET /ai-bot-policiesAI Bot Blocker (view)The AI bots you can allow or block.
PUT /bot-blockerAI Bot Blocker (manage)Change the AI bot blocker.
GET /bot-trafficLogs (view)Recent bot traffic.
GET /fail2banFail2ban (view)The application's Fail2ban jail.
POST /fail2banFail2ban (manage)Create or change the jail.
DELETE /fail2banFail2ban (manage)Remove the jail.
GET /fail2ban/bansFail2ban (view)Current bans.
POST /fail2ban/bansFail2ban (manage)Ban an IP address.
DELETE /fail2ban/bans/{ip}Fail2ban (manage)Lift a ban.
PUT /securityPassword Protection (manage)Turn password protection on or off and set its users.
GET /wafWeb Firewall (view)The web firewall settings and rules.
PUT /wafWeb Firewall (manage)Change the web firewall.
GET /waf-optionsWeb Firewall (view)The rule sets and modes you can choose.

PUT /bot-blocker

JSON body:

FieldTypeRequiredRules
policystringyesone of allow_all, block_training, block_agents, block_all, legacy_v7
blockedarraynoat most 50 items
blocked.*stringno1 to 255 characters
allowedarraynoat most 50 items
allowed.*stringno1 to 255 characters

GET /bot-traffic

Query string:

FieldTypeRequiredRules
daysintegerno1 to 30

POST /fail2ban

JSON body:

FieldTypeRequiredRules
jail_config_contentstringyesat most 65535 characters
filter_config_contentstringyesat most 65535 characters

POST /fail2ban/bans

JSON body:

FieldTypeRequiredRules
ipstringyesan IP address

PUT /security

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
usernamestringyesat most 255 characters; pattern ^[\x21-\x39\x3B-\x7E]+$
passwordstringyesat least 8 characters; at most 72 bytes

PUT /waf

JSON body:

FieldTypeRequiredRules
enabledbooleanyes
modestringyesone of detect, enforce
categoriesarrayno
categories.*stringnono duplicates; one of query_string, request_uri, user_agent, referrer, cookie, method
exceptionsarraynoat most 50 items
exceptions.*stringno1 to 255 characters
custom_rulesarraynoat most 50 items
custom_rules.*stringno1 to 255 characters

Containers and Compose

RoutePermissionPurpose
PUT /containerContainer (manage)Change the container: image, ports, environment, volumes and so on.
GET /container/accessCompose File (view)The shell access to the container.
POST /container/accessSystem Users (manage)Turn on shell access.
DELETE /container/accessSystem Users (manage)Turn it off.
GET /container/composeCompose File (view)The Compose file.
PUT /container/composeCompose File (manage)Save the Compose file.
POST /container/pullContainer (manage)Pull the image again and recreate the container. Answers 202.
GET /container/secretsContainer (manage)The container's generated secrets.
POST /container/secrets/acknowledgeContainer (manage)Confirm you saved the secrets.

PUT /container

JSON body:

FieldTypeRequiredRules
container_portintegeryes1 to 65535
memory_limitstringnoat most 20 characters; can be null; no control characters
cpu_limitstringnoat most 16 characters; can be null; no control characters
docker_networkstringnoat most 255 characters; can be null; no control characters
remove_previous_networkbooleanno
registry_idintegernoat least 1; can be null
volume_mountsarraynoat most 20 items; can be null
volume_mounts.*stringnokeys volume, path
volume_mounts.*.volumestringyesat most 255 characters; no control characters
volume_mounts.*.pathstringyesat most 255 characters; pattern ^\; no control characters; not_regex:/(^|\/)\.\.(\/|$)/

POST /container/access

JSON body:

FieldTypeRequiredRules
ssh_keystringnoat most 16384 characters; can be null; one line; a complete OpenSSH public key
passwordstringno8 to 255 characters; can be null; no control characters
confirm_container_onlybooleanno

PUT /container/compose

JSON body:

FieldTypeRequiredRules
composestringyesat most '.self::MAX_BYTES characters

Settings

RoutePermissionPurpose
POST /detect-typeGeneral (manage)Detect the application type from its files.
POST /fix-permissionsGeneral (manage)Fix file ownership and permissions.
GET /magic-loginMagic Login (manage)Recent magic login links.
POST /magic-loginMagic Login (manage)Make a one-time WordPress sign-in link. Answers 201.
GET /node-versionGeneral (view)The application's Node.js version.
PUT /node-versionGeneral (manage)Change it. Answers 202.
GET /root-lockGeneral (view)Whether the application's root is locked.
POST /root-lockGeneral (manage)Lock the application's root.
PUT /site-typeGeneral (manage)Change the application type.
PUT /web-rootGeneral (manage)Change the web root folder.
POST /wp-cli/installGeneral (manage)Install WP-CLI for the application. Answers 202.

POST /magic-login

JSON body:

FieldTypeRequiredRules
wp_user_idintegeryesat least 1

PUT /node-version

JSON body:

FieldTypeRequiredRules
node_versionstringyesat most 20 characters; pattern ^\d+\.\d+\.\d+$

PUT /site-type

JSON body:

FieldTypeRequiredRules
site_typestringyesat most 64 characters; pattern ^[a-z][a-z0-9_]*$

PUT /web-root

JSON body:

FieldTypeRequiredRules
web_rootstringnoat most 255 characters; present; can be null; pattern ^[A-Za-z0-9._\-\/]+$; not_regex:/(^|\/)\.\.(\/|$)/

Limits

  • File upload in one request: 10 a minute. Chunks of a chunked upload: 1,200 a minute. Log link requests: 6 a minute. SFTP password: 10 a minute. SFTP email: 3 a minute. Moving cron jobs to another PHP version: 10 a minute. The v7 extra configuration translator: 30 a minute.
  • A file link is valid for 60 seconds and works once.
  • A file you edit through PUT /files/content can be at most 2 MB (2,097,152 bytes).
  • A path in a file route has no leading / and no .., and is at most 4,096 bytes.

Who can do this

  • Each route needs the application permission in the table. Application (view) opens the list and the overview; Application (manage) creates and deletes. The other permissions follow the screens: Domains & SSL, File Manager, Logs, PHP Settings, Environment, Deployment, Staging Area, Clone, Workers, Password Protection, Web Firewall, AI Bot Blocker, Fail2ban, Container, Compose File, General and Magic Login.
  • Reading the .env file and reading a file's content need manage, because they can show secrets.
  • Container shell access is turned on and off with System Users (manage).

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