Create a plan at revision 1
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/plansCreate a plan at revision 1
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
namestring optionalmax_sitesinteger required0 means no limit
max_databasesinteger requiredmax_appsinteger requiredmax_mailboxesinteger optional0 means no limit
max_database_usersinteger optionalExtra database users (ADR 0067); 0 means no limit
pitr_daysinteger optionalDays point-in-time recovery reaches back for the account's databases (ADR 0183); 0 is not offered, at most 35
max_protected_dirsinteger optionalPassword-protected folders over all sites (ADR 0109); 0 means no limit
disk_mbinteger (int64) requiredDisk limit, MB; held as disk_policy says (ADR 0070)
bandwidth_gbinteger (int64) requiredThis month's traffic limit, GB; judged as bandwidth_policy says
disk_policystring optionalPast disk_mb: block (FSRM hard quota), notify (emails at 80/95/100%), suspend after grace_days. Empty is notify
Allowed values:"block""notify""suspend"bandwidth_policystring optionalPast bandwidth_gb this month. Empty is notify
Allowed values:"notify""suspend"grace_daysinteger optionalDays past a suspend-policy limit before suspension
- minimum 0
- maximum 90
malware_scanstring optionalHow often sites are scanned for malware (ADR 0084). Empty follows the provider default
Allowed values:"off""daily""weekly"runtimesarray<string> requiredAllowed values:"php""aspnet""asp""node""dotnet""python""java""go""wordpress""container"php_memory_mbinteger optionalHighest memory_limit a site may set, MB; 0 no cap (ADR 0062)
php_upload_mbinteger optionalHighest upload_max_filesize and post_max_size, MB; 0 no cap
mail_out_per_hourinteger optionalMessages a mailbox may send per hour; 0 no cap (ADR 0073)
mail_out_per_hour_domaininteger optionalMessages a whole mail domain may send per hour; 0 no cap (ADR 0073)
site_cpu_percentinteger optionalEach site's pool CPU cap, % of the machine, 5-100; 0 no cap (ADR 0091). Not with site_cpu_cores
site_cpu_coresnumber optionalEach site's pool CPU cap in cores, 0.5-256 (ADR 0126): turned into the share of each server when applied (cores / server's logical processors, rounded up, at least one core's worth, at most 100%). Not with site_cpu_percent. A new plan that leaves out every CPU, memory and auto_heal key gets 2 cores, 2048 MB and both; a change that leaves them out keeps them
app_cpu_coresnumber optionalEach application's CPU cap in cores, 0.5-256 (ADR 0126); not with app_cpu_percent
site_memory_mbinteger optionalEach site's pool private memory, 128-65536 MB; 0 no cap
app_cpu_percentinteger optionalEach Node.js/Python/.NET application's hard CPU cap (Windows job), 5-100; 0 no cap
app_memory_mbinteger optionalEach application's job memory, 128-65536 MB, ended and restarted past it; 0 no cap
auto_healstring optionalWhat the panel does by itself with an overloaded site; empty follows the provider's policy
Allowed values:"off""throttle""recycle""both"wafstring optionalon: the account may turn on a site's web application firewall (ADR 0106)
Allowed values:"""on""off"waf_static_bypassstring optionaloff: the account's sites may not let static files skip the firewall (ADR 0106, D16); empty or on allows it, each site still starts with it off
Allowed values:"""on""off"perf_autostring optionalWhat the automatic tuner does for the account's sites (ADR 0116); empty is auto
Allowed values:"""auto""suggest""off"perf_warmstring optionalon: the tuner may keep pools always running (ADR 0116)
Allowed values:"""on""off"php_open_basedirstring optionalon: the account's new PHP sites get open_basedir; empty or off leaves it out (ADR 0120). Existing sites keep theirs
Allowed values:"""on""off"restore_testsstring optionalon: the seller's periodic restore tests include the account when its policy covers plans that opt in, and the account sees its results (ADR 0154)
Allowed values:"""on""off"wp_cachestring optionaloff keeps the account's WordPress sites from the page and object cache; empty or on allows them (ADR 0119)
Allowed values:"""on""off"wp_cache_mbinteger optionalMemory of each WordPress site's object cache, 16-1024 MB; 0 is 64 (ADR 0119)
- minimum 0
- maximum 1024
max_previewsinteger optionalGit previews the account may have at once (ADR 0160); 0 is none
- minimum 0
- maximum 1000
preview_disk_mbinteger optionalDisk each preview may use, MB; 0 no cap of its own
- minimum 0
max_containersinteger optionalSites run by a Windows container, when runtimes has container (ADR 0162); 0 means no limit
- minimum 0
container_image_mbinteger optionalLargest container image, 256-65536 MB; 0 is 12288 (ADR 0162, 0194)
- minimum 0
- maximum 65536
container_isolationstring optionalhyperv: every container of the account runs with Hyper-V isolation, and a server without Hyper-V runs none (no fallback, ADR 0004); empty or process lets the owner choose
Allowed values:"""process""hyperv"container_truststring optionalTrust profile of the account's containers (ADR 0190): trusted (the provider's own code; only a root tenant's plan), standard (process isolation and every network isolation layer, or none), hostile (Hyper-V isolation, or none; never a shared kernel). Empty: hostile when container_isolation is hyperv, else standard. PLAN_TRUST_INVALID, PLAN_TRUST_PROVIDER_ONLY
Allowed values:"""trusted""standard""hostile"
What a plan sets up when an account is made (ADR 0059). A plan without settings sends only the welcome email.
siteboolean requiredA website for the primary domain with www and a placeholder page; HTTPS once DNS points here
runtimestring requiredThe site's default runtime; must be in the plan
Allowed values:"static""php""aspnet"ftpboolean requiredOne FTP/SFTP account on the site root; needs site
dnsboolean requiredA zone from the template on the server's DNS
mailboolean requiredMail for the domain with DKIM, SPF and DMARC
mailboxstring requiredadmin@domain, or admin@ (+postmaster, webmaster, abuse) forwarded to the owner's email
Allowed values:"none""admin""forward"welcomeboolean requiredEmail the owner the set-password link and connection details
welcome_billingboolean optionalAlso send the welcome email for accounts made through the provisioning API (default false: billing systems send their own)
Example
{
"name": "string",
"limits": {
"max_sites": 0,
"max_databases": 0,
"max_apps": 0,
"max_mailboxes": 0,
"max_database_users": 0,
"pitr_days": 0,
"max_protected_dirs": 0,
"disk_mb": 0,
"bandwidth_gb": 0,
"disk_policy": "block",
"bandwidth_policy": "notify",
"grace_days": 0,
"malware_scan": "off",
"runtimes": [
"php"
],
"php_memory_mb": 0,
"php_upload_mb": 0,
"mail_out_per_hour": 0,
"mail_out_per_hour_domain": 0,
"site_cpu_percent": 0,
"site_cpu_cores": 0,
"app_cpu_cores": 0,
"site_memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"auto_heal": "off",
"waf": "",
"waf_static_bypass": "",
"perf_auto": "",
"perf_warm": "",
"php_open_basedir": "",
"restore_tests": "",
"wp_cache": "",
"wp_cache_mb": 0,
"max_previews": 0,
"preview_disk_mb": 0,
"max_containers": 0,
"container_image_mb": 0,
"container_isolation": "",
"container_trust": ""
},
"onboarding": {
"site": true,
"runtime": "static",
"ftp": true,
"dns": true,
"mail": true,
"mailbox": "none",
"welcome": true,
"welcome_billing": true
}
}Responses
201 Created
Content type: application/json
idstring requiredtenant_idstring requirednamestring requiredrevisioninteger requiredFields of Limits are shown above.
created_atstring (date-time) requiredarchived_atstring (date-time) | null requiredsubscriptionsinteger optionalWhat a plan sets up when an account is made (ADR 0059). A plan without settings sends only the welcome email.
Fields of KitSettings are shown above.
Example
{
"id": "string",
"tenant_id": "string",
"name": "string",
"revision": 0,
"limits": {
"max_sites": 0,
"max_databases": 0,
"max_apps": 0,
"max_mailboxes": 0,
"max_database_users": 0,
"pitr_days": 0,
"max_protected_dirs": 0,
"disk_mb": 0,
"bandwidth_gb": 0,
"disk_policy": "block",
"bandwidth_policy": "notify",
"grace_days": 0,
"malware_scan": "off",
"runtimes": [
"php"
],
"php_memory_mb": 0,
"php_upload_mb": 0,
"mail_out_per_hour": 0,
"mail_out_per_hour_domain": 0,
"site_cpu_percent": 0,
"site_cpu_cores": 0,
"app_cpu_cores": 0,
"site_memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"auto_heal": "off",
"waf": "",
"waf_static_bypass": "",
"perf_auto": "",
"perf_warm": "",
"php_open_basedir": "",
"restore_tests": "",
"wp_cache": "",
"wp_cache_mb": 0,
"max_previews": 0,
"preview_disk_mb": 0,
"max_containers": 0,
"container_image_mb": 0,
"container_isolation": "",
"container_trust": ""
},
"created_at": "2026-01-01T00:00:00Z",
"archived_at": "2026-01-01T00:00:00Z",
"subscriptions": 0,
"onboarding": {
"site": true,
"runtime": "static",
"ftp": true,
"dns": true,
"mail": true,
"mailbox": "none",
"welcome": true,
"welcome_billing": true
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required