Applications API
List, create, change, run and delete applications, and manage their domains, certificates, deployments and containers through the OSS Panel API.
An application is one site or app on the server: a WordPress install, a Git
project, a Node.js app, a static site, a Docker container. This page covers
the endpoints in the panel's applications route file: the catalogue of what
you can create, the application record itself, the actions that start, stop,
pause and delete it, and the sub-resources that belong to it (domains,
certificate, deployments, container, deploy-on-push).
The other per-application screens (files, logs, PHP, environment, staging, clone, firewall and so on) are on Application feature endpoints.
All paths are relative to https://<your-panel-host>/api. Read
Authentication first, and the
conventions on the API index for the response envelope,
timestamps and pagination.
The examples use two shell variables:
PANEL=https://panel.example.com
TOKEN='1|xcMq8K3vZ2pL…'Permissions
| Key | Title in Roles | Used for |
|---|---|---|
application | Applications | The list, create, update, delete, actions and catalogue endpoints. |
app_domain | Domains & SSL | Domains and certificate. |
app_deployment | Deployments | Deployments, deploy settings, deploy-on-push, Git account. |
app_container | Container | Container settings, image pull, generated credentials. |
app_compose | Compose File | Reading and replacing the compose file, command-line access details. |
app_magic_login | Magic Login | WordPress one-click administrator sign-in. |
Reading needs the view grant; every endpoint marked manage below needs
manage, which implies view. The app_* permissions are per site: a site
type that does not have that screen (a WordPress site has no Deployments, for
example) answers 404 instead of 403, whatever the caller's role.
Some endpoints check a second permission for the extra thing they do. Those are noted in the endpoint's section.
Endpoint index
| Method | Path | Permission | Purpose |
|---|---|---|---|
GET | /server/capabilities | application | What the server can run (stack, web server, capabilities). |
GET | /site-types | application | The catalogue of site types with their create fields. |
GET | /recipes | application | The Docker app recipes only. |
GET | /recipes/{recipe} | application | One recipe. |
GET | /applications | application | List, search, filter, sort. |
POST | /applications | application manage | Create an application. |
GET | /applications/port-check | application | Is a port free? |
GET | /applications/{application} | application | One application. |
GET | /applications/{application}/sidebar | application | The screens this caller may open for the application. |
PUT | /applications/{application} | application manage | Change settings. |
DELETE | /applications/{application} | application manage | Delete. |
POST | /applications/{application}/provision | application manage | Retry a failed install. |
POST | /applications/{application}/process/{action} | application manage | Start, stop or restart the app's process. |
POST | /applications/{application}/supervisor/convert | application manage | Move an adopted Node.js app onto a systemd unit. |
POST | /applications/{application}/disable | application manage | Take the site offline. |
POST | /applications/{application}/enable | application manage | Bring it back. |
POST | /applications/{application}/directory-size | application manage | Measure the site's folder now. |
POST | /applications/{application}/detect-type | application manage | Read the disk to guess the site type. |
PUT | /applications/{application}/site-type | application manage | Relabel the site type. |
PUT | /applications/{application}/web-root | application manage | Change the web root. |
PUT | /applications/{application}/node-version | application manage | Switch the Node.js version. |
GET, POST | /applications/{application}/root-lock | application / manage | Read or set the folder lock. |
GET, POST | /applications/{application}/domains | app_domain / manage | List or add domains. |
PUT, DELETE | /applications/{application}/domains/{domain} | app_domain manage | Change or remove a domain. |
POST | /applications/{application}/domains/{domain}/verify | app_domain | Check DNS. |
POST | /applications/{application}/domains/{domain}/primary | app_domain manage | Make a domain the primary. |
GET, POST, DELETE | /applications/{application}/certificate | app_domain / manage | Read, issue or upload, remove. |
GET, POST | /applications/{application}/certificate/dry-run | app_domain / manage | Run or read an issuance rehearsal. |
PUT | /applications/{application}/certificate/force-https | app_domain manage | Redirect HTTP to HTTPS. |
GET, POST | /applications/{application}/magic-login | app_magic_login manage | List WordPress administrators, create a sign-in link. |
GET, POST | /applications/{application}/deployments | app_deployment / manage | History, start a deploy. |
GET | /applications/{application}/deployments/latest | app_deployment | The newest deployment. |
GET | /applications/{application}/deployments/{deployment} | app_deployment | One deployment with its log. |
POST | /applications/{application}/deployments/{deployment}/redeploy | app_deployment manage | Deploy again. |
POST | /applications/{application}/deploy | app_deployment manage | Older deploy endpoint (Git sites). |
PUT | /applications/{application}/deployment-settings | app_deployment manage | Branch, script, auto deploy. |
PUT | /applications/{application}/git-account | app_deployment manage | Point the site at another account or repository. |
GET | /webhook-providers | application | Providers for deploy-on-push. |
PUT | /applications/{application}/webhook | app_deployment manage | Configure deploy-on-push. |
PUT | /applications/{application}/container | app_container manage | Container settings. |
POST | /applications/{application}/container/pull | app_container manage | Pull the newest image and recreate. |
GET | /applications/{application}/container/secrets | app_container manage | Generated credentials. |
POST | /applications/{application}/container/secrets/acknowledge | app_container manage | Mark the credentials as saved. |
GET, PUT | /applications/{application}/container/compose | app_compose / manage | Read or replace the compose file. |
GET | /applications/{application}/container/access | app_compose | Details for command-line access. |
POST, DELETE | /applications/{application}/container/access | system_user manage | Turn container sign-in on or off. |
{application} is the application's numeric id. An id that does not exist
answers 404.
Several mutating endpoints carry their own limit on top of the shared budget
(see Rate limits): 10 per
minute for enable/disable, directory size, web root, Node.js version,
site-type, root-lock, supervisor convert and the container settings and
compose writes; 6 per minute for the image pull and for reading the secrets;
20 per minute for acknowledging them; 30 per minute for the Git account
change; 60 per minute for reading the compose file and the access details.
What the server can run
GET /server/capabilities
curl "$PANEL/api/server/capabilities" \
-H "Authorization: Bearer $TOKEN" -H 'Accept: application/json'Returns {"capabilities": {"stack", "web_server", "capabilities", "source", "verified_at"}}: the
stack and web server the panel found, the capability list it detected, where
that list came from, and when it was last checked.
GET /site-types
The card grid the Create application screen draws. One entry per site
type, each with its create fields:
{
"site_types": [
{
"name": "wordpress",
"title": "WordPress",
"category": "cms",
"method": "one_click",
"serving_profile": "php",
"needs_database": true,
"accepted_engines": ["mariadb", "mysql"],
"available": true,
"unavailable_reason": null,
"unavailable_code": null,
"fields": [ … ],
"recipe": null
}
]
}| Key | Meaning |
|---|---|
name | The value to send as site_type when creating. |
title, tagline, icon, category, popular | What the card shows. |
method | one_click, git or custom. |
serving_profile | How it is served: php, static, node, docker and so on. |
needs_database, accepted_engines | Whether it needs a database and which engines it accepts. |
available, unavailable_reason, unavailable_code, installable_runtime | Whether this server can run it now. A greyed type is refused on create with the same reason. unavailable_code is runtime, database, web_server or php_version. |
has_installer | Whether the panel installs it for you. |
node_version_range, php_version_range | The runtime versions it supports, when it limits them. |
fields | The type's own create fields. The create request is validated against these. |
recipe | A summary for a Docker app recipe, otherwise null. |
Types that this server cannot offer at all (a stack or a deprecated type) are left out of the list.
The built-in types are docker, wordpress, nextcloud, joomla, moodle,
mautic, craftcms, akaunting, statamic, prestashop, phpmyadmin,
adminer, uptimekuma, n8n, nodered, nodebb, git, php and static.
The ready-made Docker app recipes are added to the same list, each under
its own name.
GET /recipes and GET /recipes/{recipe}
GET /recipes is the same catalogue filtered to the entries that have a
recipe: {"recipes": [ … ]}. GET /recipes/{recipe} returns
{"recipe": { … }} for one; an unknown name is 404. The {recipe} segment
is lower case letters, digits and underscores, starting with a letter.
List applications
GET /applications
| Query | Type | Rules |
|---|---|---|
search | string | Up to 255 characters; matches the name or the domain, case-insensitive. |
filter[status] | string | pending, provisioning, active, failed or paused. active leaves out paused sites; paused returns the ones taken offline. |
filter[site_type] | string | One of the names from /site-types. |
sort | string | created_at, name, domain, status, site_type or directory_size_bytes. A leading - sorts descending (-name). Default is -created_at. |
page | integer | Page number. |
per_page | integer | 1 to 100. Default 10. |
curl "$PANEL/api/applications?filter[status]=active&sort=name&per_page=20" \
-H "Authorization: Bearer $TOKEN" -H 'Accept: application/json'{
"applications": [
{
"id": 12,
"name": "shop",
"domain": "shop.example.com",
"site_type": "wordpress",
"site_type_title": "WordPress",
"status": "active",
"is_disabled": false,
"created_at": "02-11-2026 09:14:03"
}
],
"meta": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 }
}Each item is the full application object described below, shortened here. Requesting the list also queues a size measurement for sites that were never measured.
Read one application
GET /applications/{application}
Returns {"application": { … }}. The fields you will use most:
| Field | Meaning |
|---|---|
id, name, slug, domain, url | Identity and address. name cannot be changed after create. |
site_type, site_type_title, serving_profile, rendering_type | What it is and how it is served. |
status, status_title | pending, provisioning, active or failed. |
is_disabled, disabled_at | true while the site is paused. A paused site still has status active. |
steps, failed_step, failed_reason, failed_reason_title, reference | Install progress and, after a failure, why and the error log reference. |
system_user | {id, username}: the Linux account that owns the site. |
document_root, path, web_root | Where the code lives. |
php_version, node_version, app_port, internal_port | Runtime settings. |
build_command, start_command, process_instances, has_process, process | Node.js settings and live process state. |
git_account_id, repository, repository_url, branch, last_commit, last_deployed_at, webhook | Git settings and deploy-on-push state. The webhook secret is shown only to callers with manage on Deployments. |
image, container_port, memory_limit, cpu_limit, docker_network, volume_mounts, registry_id, container_status | Docker settings. |
basic_auth_enabled, waf_enabled, waf_mode, ai_bot_policy, fail2ban_enabled | Protection state. |
is_staging, production_application_id, has_staging, cloned_from_application_id | Staging and clone links. |
directory_size_bytes, directory_size_measured_at | Last measured folder size. |
created_at, created_at_human | Timestamps. |
Dates are DD-MM-YYYY HH:mm:ss with a _human sibling, as everywhere else.
While an application installs, poll this endpoint (and …/sidebar). Both
count against the separate progress budget, not the shared one.
GET /applications/{application}/sidebar
Returns {"items": [ … ]}: the screens of this application that the caller's
role allows and the site type has.
Create an application
POST /applications
Needs manage on Applications. Answers 201 with the record, immediately,
with status pending; the install then runs in the background. Poll
GET /applications/{application} until status is active or failed.
curl -X POST "$PANEL/api/applications" \
-H "Authorization: Bearer $TOKEN" -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"site_type": "php",
"name": "shop",
"domain": "shop.example.com",
"generate_system_user": true,
"php_version": "8.3"
}'{
"application": { "id": 12, "name": "shop", "status": "pending", … },
"warnings": []
}warnings is always a list: things worth knowing about a site that was
created anyway, for example a container port the Docker image does not
declare.
Fields every type takes
| Field | Type | Required | Rules |
|---|---|---|---|
site_type | string | yes | A name from /site-types. The server must be able to run it. |
name | string | yes | Up to 240 characters, one line, not used by another application, and not a name the server already uses on disk (for example www or panel). |
domain | string | yes | A valid hostname, up to 255 characters, not used by any other application, not the panel's own host. Lower-cased for you. |
domain_type | string | no | temp for the temporary nip.io name, or custom for your own domain. A wildcard-DNS name is treated as temporary whatever you send. |
generate_system_user | boolean | no | true creates a Linux account for the site. Needs manage on System Users. |
system_user | object | no | With generate_system_user: true: username (^[a-z_][a-z0-9_-]{0,31}$, not reserved, not taken, required in the object) and optional password (the panel's password rules). |
system_user_id | integer | when not generating | An existing system user's id. Required unless generate_system_user is true, and refused when both are given. |
php_version | string | no | major.minor such as 8.3, installed on the server, and inside the type's supported range. Empty means the server default. |
node_version | string | no | Digits and dots, up to 10 characters, installed on the server, inside the type's range. |
database_engine | string | no | An engine the type accepts that is installed and recent enough. Only for types that use a database. |
app_port | integer | no | 1024 to 65535 and free. |
start_command | string | no | Up to 500 characters; not a shell command line. |
web_root | string | no | A relative path (letters, digits, ., _, -, /), up to 255, no ... Types with a fixed layout (Craft CMS, Statamic) accept only that value. |
On top of these, each type has its own fields (they are in fields on
/site-types). The three you are most likely to use:
git
| Field | Rules |
|---|---|
git_source | Required: account or public_url. |
git_account_id, repository | Required with account. repository is owner/name style, up to 255 characters. |
repository_url | Required with public_url; up to 255 characters, on a host the panel accepts. |
branch | Required, up to 255 characters. The panel asks the Git host and refuses a branch that does not exist. |
rendering_type | Required: php, static, csr or ssr. |
package_manager | Required for csr and ssr: npm, yarn, pnpm or bun. |
start_command, app_port | start_command is required for ssr; app_port only applies to ssr. |
build_command, deploy_script | Optional. Up to 500 and 65535 characters. |
wordpress
| Field | Rules |
|---|---|
site_title | Required, up to 255. |
admin_user | Required, up to 60 characters: letters, digits, ., _, @, -. |
admin_email | Required, a valid email, up to 255. |
admin_password | Required, at least 10 characters. |
site_language, timezone, table_prefix | Optional. The prefix is letters, digits and _, up to 20. |
docker
| Field | Rules |
|---|---|
image | Required unless compose is sent. Up to 255 characters. |
compose | A pasted compose file, up to 131072 characters. When sent, env and volume_mounts are refused. |
container_port | 1 to 65535. Filled from the image when you leave it out. |
env | Up to 100 rows of {key, value}. Keys match ^[A-Za-z_][A-Za-z0-9_]*$ and may not repeat. |
volume_mounts | Up to 20 rows of {volume, path}. Paths may not repeat. |
memory_limit, cpu_limit | Optional limits. |
registry_id | A stored registry credential. Needs view on Docker Registries. |
docker_network, docker_network_new, volume_new, volume_path | Use an existing network or create one, and add a new volume. |
Other one-click types (Nextcloud, Joomla, Moodle, Mautic, Craft CMS,
Akaunting, Statamic, PrestaShop and the Node.js apps) take an admin account in
the same way; read their fields from /site-types rather than guessing.
Change an application
PUT /applications/{application}
Only the fields you send change. Send what you want to change:
| Field | Rules |
|---|---|
web_root | Nullable, same rules as on create. Use the web root endpoint for the folder change itself. |
build_command, start_command | Nullable, up to 500 characters. |
rendering_type | php, static, csr or ssr, and one this server can serve. |
process_instances | 1 to 16. Above 1 needs a start command of the form node <entrypoint>. |
app_port | 1024 to 65535 and not used by another site. |
branch | Nullable, up to 255. |
settings | An object of type-specific settings. |
name, domain and node_version are refused here (422): the name never
changes, domains go through the domains endpoints, and the Node.js version has
its own endpoint.
Returns {"application": { … }}.
Actions
POST /applications/{application}/provision
Retries a failed install. Answers 202 with the application, now
provisioning. If it is already provisioning, nothing restarts and you get
202 with the current state.
POST /applications/{application}/process/{action}
{action} is start, stop or restart; anything else is 404. Works on
applications that have a process of their own (Node.js apps). A site without
one answers 422. A Docker application accepts only restart, which
restarts its containers. A failed run answers 500 with a reference.
POST /applications/{application}/supervisor/convert
Moves an adopted Node.js app from the old panel's PM2 onto a systemd unit.
This restarts the application. 422 when the app is not adopted or has no
entry point to run; 500 with a reference when the move failed (the app is
put back under PM2).
POST /applications/{application}/disable and /enable
Takes the site offline behind a small "unavailable" page and brings it back.
Files, database and the app's process are left alone. Both return
{"application": { … }} and use the is_disabled flag.
POST /applications/{application}/directory-size
Measures the site's folder now and returns {"directory_size": { … }}. The
list never measures on its own, so this is the way to refresh the size.
GET /applications/port-check
| Query | Rules |
|---|---|
port | Required, 1024 to 65535. |
application_id | Optional, an existing application to leave out of the check (so an app is not told its own port is taken). |
Returns {"port_check": {"port", "reason", "service", "message"}}. reason
is null when the port is free, otherwise why it is not (taken, or free but
named after a service).
Delete an application
DELETE /applications/{application}
The record and the site's web-server configuration go; files, databases and the system user stay unless you ask for them to go. Send the flags in the JSON body or the query string:
| Flag | Default | Effect | Extra permission |
|---|---|---|---|
remove_files | false | Delete the site's files. | none |
remove_databases | false | Drop the databases and users attached to the site. | manage Databases |
remove_system_user | false | Remove the site's Linux account. | manage System Users |
remove_docker_resources | false | Remove the site's Docker volumes and networks. | manage Docker |
remove_docker_images | manage Docker | Remove the images the site used. If you leave it out, it is on only for callers who have manage Docker. | manage Docker |
curl -X DELETE "$PANEL/api/applications/12" \
-H "Authorization: Bearer $TOKEN" -H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"remove_files": true, "remove_databases": true}'{ "deleted": true }A flag you may not use answers 403 with a message that names it. The answer
is 200 even when a database could not be dropped: the response then lists
what remained. Deleting is refused (503, "busy") while the site installs or
a container redeploy is running, and with 422 while a backup or restore of
the site is in progress. With remove_files, a site that server sync adopted is refused (422) when
the panel cannot prove it owns all of the site's worker programs.
Site type, web root, Node.js version
POST /applications/{application}/detect-type
Reads the site's folder and suggests what it is. Returns
{"site_type_detection": { … }}.
PUT /applications/{application}/site-type
Body {"site_type": "<name>"}, any name from /site-types. Which changes are
allowed depends on the current type and on what the site's folder contains;
a change that is not allowed is 422.
Returns {"application": { … }}.
PUT /applications/{application}/web-root
Body {"web_root": "public"}. The key must be present; the value may be
null. Rules as on create. Creates the folder, rewrites the web
server configuration and reloads it. Returns {"application": { … }}.
PUT /applications/{application}/node-version
Body {"node_version": "22.11.0"}: the full x.y.z, already installed on the
server and inside the type's supported range. The site restarts on the new
version and switches back if it does not answer. Answers 202 while the
switch runs (200 straight away if the site already runs that version); the
application's node_version_change shows switching or failed.
GET /applications/{application}/root-lock and POST
GET returns {"root_lock": {"status", "path"}}: status is locked,
unlocked or unknown, path is the site folder. POST locks the folder
against its own user (for sites that server sync adopted, whose folder the
panel did not create) and returns the same object; a refusal answers 422
with the reason in the message.
Domains
GET /applications/{application}/domains
Returns {"domains": [ … ]}, primary first, then by name. Each domain has
id, domain, type (primary, alias or redirect), redirect_to,
redirect_status, is_test, dns_verified, dns_resolved_ip,
behind_proxy, certifiable and timestamps.
POST /applications/{application}/domains
Answers 201 with {"domain": { … }}.
| Field | Rules |
|---|---|
domain | Required, valid hostname, up to 253 characters, unique on the server, not the panel's own host. |
type | alias (default) or redirect. |
redirect_to | Required for redirect: an http:// or https:// URL, up to 2048 characters, with no spaces or ; # $ & ? " ' \ < >`. |
redirect_status | 301, 302, 307 or 308. |
PUT /applications/{application}/domains/{domain}
Changes what a name does, never what it is called: type, redirect_to,
redirect_status with the same rules. To rename, delete and add.
POST /applications/{application}/domains/{domain}/verify
Checks the domain's DNS and returns {"domain": { … }} with the result.
POST /applications/{application}/domains/{domain}/primary
Makes the domain the primary. Returns the whole {"domains": [ … ]} list.
DELETE /applications/{application}/domains/{domain}
Answers 204. A domain from another application is 404.
Certificate
GET /applications/{application}/certificate
Returns {"certificate": { … } | null, "available_types": [ … ]}: the current
certificate (or null) and the types this site may use now.
POST /applications/{application}/certificate
| Field | Rules |
|---|---|
type | Required: letsencrypt, custom or self_signed. |
certificate, private_key | Required for custom; each starts with -----BEGIN. |
chain | Optional, starts with -----BEGIN. |
force | Optional boolean. |
custom answers 201 once stored. letsencrypt and self_signed answer
202: issuing runs in the background, so read the certificate again to see
the result.
POST /applications/{application}/certificate/dry-run and GET
POST (manage) starts a rehearsal of the Let's Encrypt issuance and answers
202 with {"dry_run": { … }}. GET returns the latest verdict, or
{"dry_run": null} if none.
PUT /applications/{application}/certificate/force-https
Body {"force_https": true}. 422 when the site has no certificate.
DELETE /applications/{application}/certificate
Answers 204, also when there was none.
Magic Login (WordPress)
GET /applications/{application}/magic-login returns
{"administrators": [{"id", "login", "name"}, …]}. POST with
{"wp_user_id": 1} creates a one-time sign-in link for that administrator
and answers 201 with {"magic_login": { … }}. Both need manage, since
the list tells you which accounts can administer a customer's site. On a
multisite install the panel answers 422.
Deployments (Git sites)
These return 404 for site types that have no repository.
GET /applications/{application}/deployments
Returns {"deployments": [ … ], "settings": { … }} newest first. settings
carries the branch, repository, the current deploy_script, the
default_deploy_script, auto_deploy, last_commit, last_deployed_at and
the placeholders the script understands ({path}, {branch}, {domain},
{php} and the PHP aliases).
POST /applications/{application}/deployments
Queues a deploy. Answers 202 with {"deployment": { … }}. 422 when the
Git account the site used is gone (see the Git account endpoint below).
GET /applications/{application}/deployments/latest and /{deployment}
latest returns {"latest": { … } | null}; the second returns
{"deployment": { … }} with the log. Poll these while a deploy runs: they
use the progress budget.
POST /applications/{application}/deployments/{deployment}/redeploy
Deploys again. Answers 202 with the new deployment.
PUT /applications/{application}/deployment-settings
| Field | Rules |
|---|---|
branch | Up to 255 characters: letters, digits, ., _, /, -. |
deploy_script | Nullable, up to 65535 characters. A script that calls PHP the server does not have is refused. |
webhook_enabled | Boolean. |
Returns {"settings": { … }}.
PUT /applications/{application}/git-account
Points the site at a different account, repository or public URL. The panel asks the Git host whether it can reach the repository before anything is stored.
| Field | Rules |
|---|---|
git_source | account or public_url. Filled in from what you send if left out. |
git_account_id | Required with account; an existing Git account. |
repository | Required with account; owner/name, up to 255. The site's current repository is used if left out. |
repository_url | Required with public_url, up to 255. The site's current URL is used if left out. |
branch | Optional, up to 255. Leave it out to keep the current branch. |
So {"git_account_id": 5} alone is enough to give a site a new credential for
the repository it already uses. For a public URL the panel checks that the URL
answers and has the branch before it saves.
Returns {"application": { … }}.
POST /applications/{application}/deploy
The older single-call deploy, kept for compatibility: queues a manual
deployment and answers 202 with the application. 422 for a site that is
not a Git site or whose account is missing. Prefer POST …/deployments.
Deploy on push
GET /webhook-providers returns {"webhook_providers": [ … ]}: GitHub,
GitLab and Bitbucket.
PUT /applications/{application}/webhook
| Field | Rules |
|---|---|
enabled | Required boolean. |
provider | Required when enabled is true: github, gitlab or bitbucket. |
secret | Optional, 16 to 255 characters. |
rotate | Optional boolean: make a new secret. |
Returns {"application": { … }, "webhook_registration": { … } | null}. The
delivery endpoint itself, POST /webhooks/deploy/{identifier}, is open and
checks a signature instead of a token (see
Git deployment).
Container settings (Docker sites)
Every endpoint here answers 422 for a site that is not a Docker site.
PUT /applications/{application}/container
Applies the settings and recreates the container, so the site restarts. All fields optional; a field you do not send is left alone. A site that runs its own compose file refuses the fields the file owns.
| Field | Rules |
|---|---|
container_port | 1 to 65535. |
memory_limit | Nullable, up to 20 characters, a Docker memory value. |
cpu_limit | Nullable, up to 16 characters, not above the host's CPUs. |
docker_network | Nullable, an existing network. |
remove_previous_network | Boolean. |
registry_id | Nullable, an existing registry credential. Changing it needs view on Docker Registries. |
volume_mounts | Up to 20 rows of {volume, path}. |
Returns {"application": { … }}. A failure to apply answers 422 with
message, step, reason and reference. A redeploy already running is
409.
POST /applications/{application}/container/pull
Pulls a newer image and recreates the container on it. Answers 202 with
{"application": { … }, "redeploy": { … }}.
GET /applications/{application}/container/secrets
Returns {"secrets": { … }, "credentials": { … }}: the passwords the panel
generated for the app. Needs manage on Container, not view, and is limited
to 6 calls per minute. POST …/secrets/acknowledge records that you have saved
them (the screen then hides its first-run card) and returns the application.
The panel cannot rotate a generated credential, so store them when you first
read them.
GET /applications/{application}/container/compose and PUT
GET returns {"compose": "…", "generated": true|false}. The file shows
generated passwords in full, so reading it is part of the Compose File
grant. PUT with {"compose": "<yaml>"} (up to 131072 characters) replaces
it and recreates the container. A file the panel refuses answers 422 with
message and reason.
GET /applications/{application}/container/access
Returns what a command-line ssh … docker exec line needs: host,
ssh_port, project, containers, ssh_users and whether password login
is on.
POST /applications/{application}/container/access and DELETE
Turns container sign-in on or off for the site's own system user. Needs
manage on System Users. POST takes optional ssh_key (a public key, up
to 16384 characters), password (the panel's password rules) and
confirm_container_only. 422 when the site has no system user or is not a
container.
Common errors
| Status | Message or cause |
|---|---|
403 | Your role does not include management for Applications. (or the feature named in the permission table). |
404 | Unknown application, domain or deployment id; or a screen the site type does not have. |
409 | A container redeploy is already running. |
422 | Validation: {"message": "…", "errors": {"field": ["…"]}}. Also "not a Docker application" and "not a Git application". |
429 | Over the shared or per-endpoint limit; wait for Retry-After. |
500 | {"message": "…", "reference": "…"}. Look the reference up in the error log. |
503 | The site is installing or busy; try again shortly. |
Related
Authentication
Get a bearer token, send it, know when it expires — and the cookie-session alternative for browser clients.
Application feature endpoints
Files, logs, PHP settings, environment, password protection, web firewall, AI bot blocker, Fail2ban, staging, clone, one-click updates, WP-CLI and workers through the OSS Panel API.