Sites
15 operations in the WP Waterfall API.
- getList sites
- postCreate a site
- getCheck whether a site name is free
- getGet a site
- patchRename a site or change its labels
- deleteDelete a site
- getActivity for one site
- getList a site's environments
- getList the people who belong to a site
- postGive a company member access to a site
- patchChange a site member's role
- deleteRemove a person from one site
- putSet PHP performance for the live environment
- getCheck what a rename does to the custom domains
- postReset a site
List sites
get/sitesPermalink to List sites
- Scope:
sites:read - Permission:
sites.read
Filter by label, region, node, PHP version, or a search term.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
label | query | string | |
region | query | string | |
node_id | query | string (uuid) | UUIDv7 |
php | query | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
search | query | string | |
status | query | string | One of: live, staging, provisioning, attention. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SiteList | Sites |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].name required | string | |
data[].slug required | string | |
data[].status required | string | One of: provisioning, active, failed, deleting. |
data[].test required | boolean | True for a simulated test site that runs on the demo node at no cost. |
data[].template required | string | One of: fresh_wordpress, woocommerce, multisite, empty. |
data[].multisite_mode | string or null | The network mode of a multisite site, null for every other template. A network counts as one site against the plan. One of: subdirectory, subdomain. |
data[].labels required | array of object | |
data[].live_environment required | object or null | The live environment. Null until the owner launches live. |
data[].staging_environment | object or null | The staging environment every site starts with. Every response sets it. |
data[].primary_environment | object or null | Live once launched, otherwise staging: the environment to show first. |
data[].launch_state | string | Where the site is on the staging first path. Every response sets it. One of: staging_only, launching, launched, launch_failed. |
data[].provisioning_job_id required | string or null (uuid) | The job that is provisioning the site, while it runs. |
data[].move | one of SiteMoveNotice, null | While WP Waterfall moves the site to a server with more room, one plain line and a progress number. Set on a single site read, and absent or null otherwise. |
data[].address_job_id | string or null (uuid) | The rename_site job that is moving the temporary addresses of the site's environments to the new name, while it runs. Set on a single site read and on the answer to a rename, and absent or null otherwise. |
data[].subscription_id | string or null (uuid) | The license the site uses a credit of. Null for test sites. |
data[].tier | string | The site's performance tier. base is what its license includes. One of: base, tier_40, tier_65, tier_125, tier_250. |
data[].sandbox | object | Set while the site is a sandbox: a free site with staging only, no live environment, and no site license. Its disk, awake hours, and backup days are in the object. Absent on every other site. |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
data[].environments | array of object | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Create a site
post/sitesPermalink to Create a site
- Scope:
sites:write - Permission:
sites.create
Starts provisioning. Returns 402 with problem type payment-required when the company has no plan, unless test is true. Each site picks its own region, and a plan costs the same in every region, so one plan's sites may sit in different regions (ADR 215). A region that is not open answers 422 with the code region_closed. A region that cannot start a data center right now answers 409 with the code region_unavailable, before a site, a slot, or a charge exists. Site names are unique across all customers, compared by the same lowercase, DNS-safe label the temporary address uses, so Elric, elric, and Elric! are one name: a name whose label is taken answers 409 with the code site_name_taken (That name is already taken. Choose another.), and a reserved name (www, api, live, and the rest) answers 422 with the code site_name_reserved. Check a name first with GET /sites/name-available. PHP 8.1 and 8.2 are closed to new use, so a php_version of 8.1 or 8.2 answers 422 with the code php_version_end_of_life. Existing sites on them keep working, and only a migration (POST /migrations) may start a site on one. An Enterprise company's new site is always a sandbox (ADR 276): staging only, no site tier, no site license, no charge, and no saved card needed. A subscription_id, tier, or sandbox in the body of an Enterprise company's create answers 422 with the code sandbox_no_plan_at_create: leave them out, and choose the tier when you launch the site live. A sandbox field on an account that is not Enterprise answers 403 with the code sandbox_enterprise_only, because only Enterprise accounts have sandboxes; a tier there answers 422, because its site starts at the included tier.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, CreateSiteRequest
Fields
| Name | Type | Description |
|---|---|---|
name required | string | |
template | string | One of: fresh_wordpress, woocommerce, multisite, empty. Default: fresh_wordpress. |
multisite_mode | string | Only with the multisite template: subdirectory (the default, host/blog/, works on the temporary hostname) or subdomain (blog.host; each subsite host needs its own attached domain, because the temporary hostname has no wildcard). Any other template refuses it (422). One of: subdirectory, subdomain. |
region | string | A region code from GET /regions. Defaults to the platform default region. |
php_version | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. Default: 8.5. |
table_prefix | string | The database table prefix ($table_prefix in wp-config.php), an advanced option. 1 to 40 letters, digits, or underscores, such as site_. Left out, the prefix is wp_. A multisite network keeps it for every subsite table (site_2_posts). |
test | boolean | Creates a simulated test site. Needs test_sites on GET /platform. Default: false. |
labels | array of string (uuid) | |
site_title | string | The WordPress site title. Defaults to the site name. |
admin_email | string (email) | The first WordPress administrator. Defaults to the requester's email. |
admin_username | string | The first administrator's username. Defaults to wpwaterfall-admin. admin, administrator, and root are refused because bots try them first. |
admin_password | string | The first administrator's password: 12 to 128 characters with a letter and a number. Secret: never stored in the job, its events, or logs, and deleted once provisioning ends. Left out, the node sets a random password nobody sees, and people sign in with one-click login. |
locale | string | The WordPress language. Defaults to en_US. Others are downloaded from WordPress.org. One of: en_US, en_GB, en_CA, en_AU, es_ES, es_MX, fr_FR, fr_CA, de_DE, it_IT, pt_BR, pt_PT, nl_NL, sv_SE, da_DK, nb_NO, fi, pl_PL, tr_TR, ja, zh_CN, ko_KR. |
subscription_id | string (uuid) | The plan whose free slot the site takes, from GET /billing/subscriptions. Optional: when it is left out and exactly one plan has a free slot, that plan is used. Test sites ignore it. An Enterprise company sends none: its new site is a sandbox until it goes live, and the request answers 422 sandbox_no_plan_at_create when it names one. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Check whether a site name is free
get/sites/name-availablePermalink to Check whether a site name is free
- Scope:
sites:read - Permission:
sites.read
Answers available and the label the name gives, for the Add site and rename forms. A taken name answers available: false with the reason taken and never says who holds it. A reserved name answers the reason reserved. Send site_id when a site renames, so its own current name stays available to it. Needs a signed-in person or an API key, and answers 429 past 60 checks a minute for one caller.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
name required | query | string | |
site_id | query | string (uuid) | The site that renames. Its own current label stays available to it. UUIDv7 |
Responses
| Status | Body | Description |
|---|---|---|
200 | SiteNameAvailability | Availability of the name |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
available required | boolean | |
label required | string or null | |
reason required | string or null | One of: taken, reserved, invalid. |
message required | string or null |
Get a site
get/sites/{id}Permalink to Get a site
- Scope:
sites:read - Permission:
sites.read
Returns one site. While WP Waterfall moves the site to another server the answer carries move, and while a rename changes the addresses of its environments it carries address_job_id, the job to watch.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Site | Site |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
name required | string | |
slug required | string | |
status required | string | One of: provisioning, active, failed, deleting. |
test required | boolean | True for a simulated test site that runs on the demo node at no cost. |
template required | string | One of: fresh_wordpress, woocommerce, multisite, empty. |
multisite_mode | string or null | The network mode of a multisite site, null for every other template. A network counts as one site against the plan. One of: subdirectory, subdomain. |
labels required | array of object | |
labels[].id required | string (uuid) | UUIDv7 |
labels[].name required | string | |
labels[].color required | string | |
live_environment required | object or null | The live environment. Null until the owner launches live. |
live_environment.id required | string (uuid) | UUIDv7 |
live_environment.node_id required | string (uuid) | UUIDv7 |
live_environment.node_name required | string | |
live_environment.region required | string | |
live_environment.php_version required | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
live_environment.wordpress_version required | string or null | |
live_environment.wordpress | string | ADR 172: installed, not_installed, or unknown. Every response sets it. One of: installed, not_installed, unknown. |
live_environment.temp_hostname required | string | |
live_environment.status required | string | |
live_environment.disk_bytes required | integer or null | Range: 0 to any. |
live_environment.health required | string | One of: healthy, degraded, down, unknown. |
live_environment.health_note | string or null | Why health is not healthy, in one plain sentence, when a single-site read found out (the WP Waterfall plugin is not loaded on the server). Null or absent otherwise. |
Rename a site or change its labels
patch/sites/{id}Permalink to Rename a site or change its labels
- Scope:
sites:write - Permission:
sites.update
A new name shows at once. The site's label follows the name, and a job (rename_site) moves the temporary address of every environment to the new label (live-<label>, staging-<label>, <preview name>-<label>, and the subsite addresses of a subdomain network) and runs a search and replace of the old address in each environment's database. The job's id is address_job_id on the site while it runs. The old temporary addresses stop resolving. A custom domain that is primary is not touched. A custom domain connected with A and AAAA records is not affected. A domain that still has an older CNAME to the old temporary address is: WP Waterfall replaces the CNAME with the A and AAAA records itself when it hosts the domain's DNS. For a domain with DNS at another provider the customer replaces the record, and GET /sites/{id}/rename-impact lists those before the rename. If the job fails, the site keeps its old name and addresses. A taken name answers 409 with the code site_name_taken, a reserved name 422 with site_name_reserved, and a site that is still being created answers 409.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PatchSiteRequest
Fields
| Name | Type | Description |
|---|---|---|
name | string | |
labels | array of string (uuid) | Replaces the full set of labels on the site. |
subscription_id | string (uuid) | Moves the site to another plan with a free slot. Needs billing.write as well. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Site | Site |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
name required | string | |
slug required | string | |
status required | string | One of: provisioning, active, failed, deleting. |
test required | boolean | True for a simulated test site that runs on the demo node at no cost. |
template required | string | One of: fresh_wordpress, woocommerce, multisite, empty. |
multisite_mode | string or null | The network mode of a multisite site, null for every other template. A network counts as one site against the plan. One of: subdirectory, subdomain. |
labels required | array of object | |
labels[].id required | string (uuid) | UUIDv7 |
labels[].name required | string | |
labels[].color required | string | |
live_environment required | object or null | The live environment. Null until the owner launches live. |
live_environment.id required | string (uuid) | UUIDv7 |
live_environment.node_id required | string (uuid) | UUIDv7 |
live_environment.node_name required | string | |
live_environment.region required | string | |
live_environment.php_version required | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
live_environment.wordpress_version required | string or null | |
live_environment.wordpress | string | ADR 172: installed, not_installed, or unknown. Every response sets it. One of: installed, not_installed, unknown. |
live_environment.temp_hostname required | string | |
live_environment.status required | string | |
live_environment.disk_bytes required | integer or null | Range: 0 to any. |
live_environment.health required | string | One of: healthy, degraded, down, unknown. |
live_environment.health_note | string or null | Why health is not healthy, in one plain sentence, when a single-site read found out (the WP Waterfall plugin is not loaded on the server). Null or absent otherwise. |
Delete a site
delete/sites/{id}Permalink to Delete a site
- Scope:
danger:destroy - Permission:
sites.delete - Needs a confirmation
Deletes the site and its environments. Needs confirm=true; a signed-in person also sends confirm_name, the exact site name, and an API key that sends it must send it exactly. Returns 202 with a job when the site has a container on a node. Returns 204 with no body when nothing is left on a node (the site never reached one, or its node failed or was deleted): the site is gone at once.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
confirm required | query | string | One of: true. |
confirm_name | query | string | The site name, typed to confirm. A signed-in session must send it. API keys may. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Activity for one site
get/sites/{id}/activityPermalink to Activity for one site
- Scope:
activity:read - Permission:
sites.read
Returns the audit entries of one site, in pages of up to 200 (default 50). Filter with actor, actor_type, action, category, from, to, and q, a search of up to 200 characters over the sentence, the action name, and the person. A member limited to some sites, and an API key, see IP addresses and browsers only on their own entries.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
actor | query | string | |
action | query | string | |
from | query | string (date-time) | |
to | query | string (date-time) | |
actor_type | query | string | One of: user, api_key, mcp_agent, system. |
category | query | string | Keeps one kind of action, such as plugins. One of: logins, users, plugins, content, code, domains, settings. |
q | query | string | Matches the sentence, the action name, or the person, ignoring case. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AuditEventList | This site's slice of the audit log |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | The rows of this page. |
data[].id required | string (uuid) | |
data[].actor_type required | string | One of: user, api_key, mcp_agent, system. |
data[].actor_id required | string or null | |
data[].actor_label required | string | |
data[].action required | string | |
data[].target_type required | string or null | |
data[].target_id required | string or null | |
data[].metadata required | object | |
data[].ip required | string or null | |
data[].user_agent required | string or null | |
data[].created_at required | string (date-time) | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
List a site's environments
get/sites/{id}/environmentsPermalink to List a site's environments
- Scope:
sites:read - Permission:
sites.read
Lists the environments of one site (live, staging, and previews) with their state, in pages of up to 200.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
limit | query | integer | How many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | EnvironmentList | Environments |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of Environment | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].site_id required | string (uuid) | UUIDv7 |
data[].kind required | string | One of: live, staging, preview. |
data[].role | string | staging, live, or preview. Every response sets it. One of: staging, live, preview. |
data[].is_live | boolean | True for the live environment. Every response sets it. |
data[].release_sha | string or null | The commit the environment's active release runs. Null before the first release. |
data[].last_deployed_at | string or null (date-time) | When the active release went live on this environment. |
data[].last_deployed_by | string or null | Who made the active release go live, such as a person's name or system. |
data[].allowance | string | included for the staging environment and the previews a plan includes, additional for a preview environment the customer pays for. Live is included. Every response sets it. One of: included, additional. |
data[].price_waived | boolean | True when staff turned the charge of an additional preview off (complimentary). |
data[].sandbox | object | Set when the environment belongs to a sandbox site: the site has no live environment and no site license, and is free. It carries the awake seconds left this month and when they come back. Absent otherwise. |
data[].sleep_when_idle | boolean | The Sleep when idle setting: true for a non live environment that stops after 30 minutes without use and starts again on the first visit. Always false for live. Every response sets it. |
data[].sleeping_since | string or null (date-time) | When the environment went to sleep or began to wake. Null while it is awake. |
data[].name required | string | live, staging, or the name an agency gave a preview environment. |
data[].branch required | string | The Git branch this environment runs. Live runs the default branch. |
data[].source_env_id required | string or null (uuid) | The environment this one was cloned from. Null for live. |
data[].code_immutable required | boolean | True when code on this environment is a read-only release. Live is always immutable; staging and previews are immutable only in the legacy Git mode. |
data[].code_writable | boolean | True when code may change in place: plugin and theme installs and updates, SFTP, SSH, wp-admin, and WP-CLI. Staging and previews with a working tree; never live. Every response sets it. |
data[].connection_mode | string | ADR 032: sftp (a writable working tree) or git (code changes only by Git). Live is always git. Derived from code_mode. Every response sets it. One of: sftp, git. |
data[].content_store required | object or null | |
data[].status required | string | One of: provisioning, live, failed, resetting, deleting, sleeping, waking, suspended_abuse. |
data[].abuse_case_reference | string or null | The case reference while the environment is suspended_abuse, such as AB-2026-0017. The dashboard shows it with one sentence and a button that opens Nami chat. Null otherwise. The reason and the staff note are never sent. |
data[].node_id required | string (uuid) | UUIDv7 |
List the people who belong to a site
get/sites/{id}/membersPermalink to List the people who belong to a site
- Scope:
sites:read - Permission:
sites.read
Lists the people who hold a Site Admin or Site Developer role on this site, with their name, email, and role, in pages of up to 200 (default 50). Members with a company wide role reach every site and are not listed here.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
limit | query | integer | How many rows to return in one page: at most 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SiteMemberList | Site members |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of SiteMember | The rows of this page. |
data[].id required | string (uuid) | The id of the site membership, used in PATCH and DELETE paths. |
data[].site_id required | string (uuid) | UUIDv7 |
data[].user_id required | string | |
data[].email required | string (email) | |
data[].name required | string | |
data[].role required | string | One of: site_admin, site_developer. |
data[].created_at required | string (date-time) | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Give a company member access to a site
post/sites/{id}/membersPermalink to Give a company member access to a site
- Scope:
sites:write - Permission:
site_members.manage
Gives a company member the site_admin or site_developer role on this site. Name the person with user_id or email. Someone who is not in the company answers 404 (invite them first), and a member with a company wide role answers 422 because they already reach every site. Answers 201 with the site member.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, AddSiteMemberRequest
Fields
| Name | Type | Description |
|---|---|---|
user_id | string | |
email | string (email) | |
role required | string | One of: site_admin, site_developer. |
Responses
| Status | Body | Description |
|---|---|---|
201 | SiteMember | Site member |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
201 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | The id of the site membership, used in PATCH and DELETE paths. |
site_id required | string (uuid) | UUIDv7 |
user_id required | string | |
email required | string (email) | |
name required | string | |
role required | string | One of: site_admin, site_developer. |
created_at required | string (date-time) |
Change a site member's role
patch/sites/{id}/members/{member_id}Permalink to Change a site member's role
- Scope:
sites:write - Permission:
site_members.manage
Changes the role a person holds on this site. member_id is the id of the site membership, not the user id. A lower role also takes away what only the higher role allowed on this site, such as the SSH keys and SFTP users the person made.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
member_id required | path | string (uuid) | The id of the site member. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PatchSiteMemberRequest
Fields
| Name | Type | Description |
|---|---|---|
role required | string | One of: site_admin, site_developer. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SiteMember | Site member |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | The id of the site membership, used in PATCH and DELETE paths. |
site_id required | string (uuid) | UUIDv7 |
user_id required | string | |
email required | string (email) | |
name required | string | |
role required | string | One of: site_admin, site_developer. |
created_at required | string (date-time) |
Remove a person from one site
delete/sites/{id}/members/{member_id}Permalink to Remove a person from one site
- Scope:
sites:write - Permission:
site_members.manage
Removes only this site. The person stays in the company.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
member_id required | path | string (uuid) | The id of the site member. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Removed | |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
Set PHP performance for the live environment
put/sites/{id}/php-performancePermalink to Set PHP performance for the live environment
- Scope:
sites:write - Permission:
environments.update
Sets php_threads (1 to 256) on the site's live environment and returns 202 with the Job. Send php_pool_mb as it is now: a different value answers 403. A thread count that does not fit the pool answers 422, and a site with no environment yet answers 409.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PhpPerformance
Fields
| Name | Type | Description |
|---|---|---|
php_threads required | integer | Range: 1 to 256. |
php_pool_mb required | integer | Range: 64 to any. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Check what a rename does to the custom domains
get/sites/{id}/rename-impactPermalink to Check what a rename does to the custom domains
- Scope:
sites:read - Permission:
sites.update
Ask before a rename with name. A domain connected with A and AAAA records does not depend on the site name and is not listed. Only a domain that still has an older CNAME to the site's temporary address is: a rename removes that address at once, with no grace period. Each listed domain has update: automatic when WP Waterfall hosts its DNS and replaces the CNAME with the A and AAAA records during the rename, or update: manual when its DNS is at another provider and the customer must replace the CNAME with the records in new_addresses. new_target is always null. A name that is taken or reserved answers the same errors as the rename.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
name required | query | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | SiteRenameImpact | What the rename changes |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
label required | string | The label the new name gives. |
custom_domains required | array of object | |
custom_domains[].domain_id required | string (uuid) | |
custom_domains[].hostname required | string | |
custom_domains[].environment_id required | string (uuid) | |
custom_domains[].environment_name required | string | |
custom_domains[].update required | string | One of: automatic, manual. |
custom_domains[].record_type required | string | The record that stops working: the customer's older CNAME. |
custom_domains[].new_target required | string | The name the CNAME points at after the change: the fallback origin. |
Reset a site
post/sites/{id}/resetPermalink to Reset a site
- Scope:
danger:destroy - Permission:
sites.delete - Needs a confirmation
Resets staging. The body repeats the site name. Before launch, staging is wiped and WordPress is installed again from the template. Once live runs, staging gets live's code, database, and uploads again, after a restore point of staging (reset staging). Live itself is never reset: environment: live answers 409 (live_is_immutable), because live changes only through a promote from staging or a restore.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
confirm | query | string | An API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true. |
Request body application/json, required, ResetSiteRequest
Fields
| Name | Type | Description |
|---|---|---|
confirm required | boolean | |
confirm_name required | string | |
template | string | One of: fresh_wordpress, woocommerce, multisite, empty. Default: fresh_wordpress. |
multisite_mode | string | The network mode for the multisite template. Left out, the environment keeps its own. One of: subdirectory, subdomain. |
php_version | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
environment | string | The environment to reset. Staging is the only one that can be reset. One of: staging, live. Default: staging. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |