DNS
18 operations in the WP Waterfall API.
- getList Cloudflare DNS zones
- postCreate a Cloudflare DNS zone
- getGet a zone
- deleteDelete a zone
- postCheck the nameservers
- postAdopt a zone that already exists in WP Waterfall's Cloudflare account
- getThe custom nameserver request for a zone
- postRequest custom nameservers
- getList records
- postAdd a record
- postRefresh records from Cloudflare
- patchChange a record
- deleteDelete a record
- postSet up a zone again after it failed
- getList zone snapshots
- postSave a snapshot of the zone now
- deleteDelete a snapshot
- postRoll the zone back to a snapshot
List Cloudflare DNS zones
get/dns/zonesPermalink to List Cloudflare DNS zones
- Scope:
domains:read - Permission:
sites.read
Lists the company's DNS zones in pages of up to 200 (default 50). limit in the answer holds used and allowed, the zones the company has and may have. Zones belong to the company, so a member limited to some sites gets 403.
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsZoneList | Zones |
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 DnsZone | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].name required | string | |
data[].status required | string | One of: pending, active, moved, failed, deleted. |
data[].cf_zone_id required | string or null | |
data[].nameservers required | array of string | The nameservers the customer sets at the registrar. |
data[].dnssec_status required | string | One of: disabled, pending, active, pending_disabled, error. |
data[].ds_record required | string or null | |
data[].record_count required | integer | Range: 0 to any. |
data[].record_limit required | integer | |
data[].job_id required | string or null (uuid) | UUIDv7 |
data[].job_status required | string or null | One of: queued, dispatched, running, succeeded, failed, cancelled. |
data[].last_activation_check_at required | string or null (date-time) | |
data[].activated_at required | string or null (date-time) | |
data[].adopted_at required | string or null (date-time) | Set when the zone already existed in WP Waterfall's Cloudflare account and WP Waterfall adopted it. |
data[].ownership_txt required | object or null | The TXT record that proves control of a zone waiting for adoption. Null once adopted, and for zones WP Waterfall created itself. |
data[].created_at required | string (date-time) | |
data[].updated_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. |
limit required | object | |
limit.used required | integer | Range: 0 to any. |
limit.allowed required | integer or null |
Create a Cloudflare DNS zone
post/dns/zonesPermalink to Create a Cloudflare DNS zone
- Scope:
dns:write - Permission:
dns.manage
Creates the zone on the Cloudflare DNS account and scans the current records.
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, CreateDnsZoneRequest
Fields
| Name | Type | Description |
|---|---|---|
name required | string | |
scan | boolean | Look up the common records at the current host and import them. Default: true. |
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. |
Get a zone
get/dns/zones/{id}Permalink to Get a zone
- Scope:
domains:read - Permission:
sites.read
Returns one zone: its name, status, nameservers, DNSSEC state, record count and record limit, and its last setup job. A member limited to some sites gets 403.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsZone | Zone |
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 | |
status required | string | One of: pending, active, moved, failed, deleted. |
cf_zone_id required | string or null | |
nameservers required | array of string | The nameservers the customer sets at the registrar. |
dnssec_status required | string | One of: disabled, pending, active, pending_disabled, error. |
ds_record required | string or null | |
record_count required | integer | Range: 0 to any. |
record_limit required | integer | |
job_id required | string or null (uuid) | UUIDv7 |
job_status required | string or null | One of: queued, dispatched, running, succeeded, failed, cancelled. |
last_activation_check_at required | string or null (date-time) | |
activated_at required | string or null (date-time) | |
adopted_at required | string or null (date-time) | Set when the zone already existed in WP Waterfall's Cloudflare account and WP Waterfall adopted it. |
ownership_txt required | object or null | The TXT record that proves control of a zone waiting for adoption. Null once adopted, and for zones WP Waterfall created itself. |
ownership_txt.name required | string | |
ownership_txt.value required | string | |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Delete a zone
delete/dns/zones/{id}Permalink to Delete a zone
- Scope:
dns:write - Permission:
dns.manage - Needs a confirmation
Refused while a domain still attaches through it. Needs confirm=true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
confirm required | query | string | One of: true. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Deleted | |
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) |
Check the nameservers
post/dns/zones/{id}/activation-checkPermalink to Check the nameservers
- Scope:
dns:write - Permission:
dns.manage
Queries the zone's nameservers and activates the zone when they match. A zone waiting for adoption is adopted first once its ownership TXT record resolves, and an active zone refreshes its records from Cloudflare. quiet: true skips the in-app notice when the zone goes live, for a client that polls.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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, ActivationCheckRequest
Fields
| Name | Type | Description |
|---|---|---|
quiet | boolean | Skip the in-app notice when this check finds the zone live. The dashboard polls with it and shows the result on the zone itself, so the bell stays quiet. Default: false. |
Responses
| Status | Body | Description |
|---|---|---|
200 | ActivationCheckResult | Check result |
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 |
|---|---|---|
zone_id required | string (uuid) | UUIDv7 |
status required | string | One of: pending, active, moved, failed, deleted. |
active required | boolean | |
expected_nameservers required | array of string | |
found_nameservers required | array of string | |
checked_at required | string (date-time) | |
message required | string | One plain sentence: what to change at the registrar, or that the zone is live. |
adopted required | boolean | True when this check adopted a zone that already existed in WP Waterfall's Cloudflare account. Default: false. |
imported_records required | integer | Records read from Cloudflare by this check (an active zone refreshes its records). Default: 0. Range: 0 to any. |
ownership_txt required | object or null | Still waiting for this TXT record before the zone can be adopted. |
ownership_txt.name required | string | |
ownership_txt.value required | string |
Adopt a zone that already exists in WP Waterfall's Cloudflare account
post/dns/zones/{id}/adoptPermalink to Adopt a zone that already exists in WP Waterfall's Cloudflare account
- Scope:
dns:write - Permission:
dns.manage
Links the zone to the existing Cloudflare zone and reads its records, once the domain is registered with this company or the ownership TXT record resolves. Cloudflare is never written.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsZoneAdoptResult | Adoption result |
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 |
|---|---|---|
zone_id required | string (uuid) | UUIDv7 |
status required | string | One of: pending, active, moved, failed, deleted. |
adopted required | boolean | |
imported_records required | integer | Range: 0 to any. |
ownership_txt required | object or null | Set while the zone still waits for the ownership TXT record. |
ownership_txt.name required | string | |
ownership_txt.value required | string | |
message required | string | One plain sentence: adopted, or what to add and where. |
The custom nameserver request for a zone
get/dns/zones/{id}/nameserver-requestPermalink to The custom nameserver request for a zone
- Scope:
domains:read - Permission:
sites.read
Returns the zone's request for custom nameservers: the 2 to 4 hostnames asked for, its status, and a note. Answers 404 when the zone has no request.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
Responses
| Status | Body | Description |
|---|---|---|
200 | NameserverRequest | Request |
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 |
zone_id required | string (uuid) | UUIDv7 |
hostnames required | array of string | |
status required | string | One of: requested, approved, rejected, active. |
note required | string or null | |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Request custom nameservers
post/dns/zones/{id}/nameserver-requestPermalink to Request custom nameservers
- Scope:
dns:write - Permission:
dns.manage
Stored for the support team. Cloudflare account custom nameservers take approval.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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, CreateNameserverRequestRequest
Fields
| Name | Type | Description |
|---|---|---|
hostnames required | array of string | |
note | string |
Responses
| Status | Body | Description |
|---|---|---|
201 | NameserverRequest | Request |
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) | UUIDv7 |
zone_id required | string (uuid) | UUIDv7 |
hostnames required | array of string | |
status required | string | One of: requested, approved, rejected, active. |
note required | string or null | |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
List records
get/dns/zones/{id}/recordsPermalink to List records
- Scope:
domains:read - Permission:
sites.read
Pages by name, type, and id. limit is 1 to 1000 (default 1000, the most a Cloudflare Free zone holds), so a call with no query returns every record. Send next_cursor back as cursor for the next page. warnings covers the records on the page.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
limit | query | integer | How many rows to return in one page: at most 1000, and 1000 when left out. Default: 1000. Range: 1 to 1000. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsRecordList | Records with live warnings |
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 DnsRecord | |
data[].id required | string (uuid) | UUIDv7 |
data[].zone_id required | string (uuid) | UUIDv7 |
data[].type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
data[].name required | string | Fully qualified, without a trailing dot. |
data[].content required | string | |
data[].ttl required | integer | |
data[].priority required | integer or null | |
data[].managed required | boolean | Written by WP Waterfall (zero-touch attach). Locked in the editor. |
data[].comment required | string or null | |
data[].cf_record_id required | string or null | |
data[].proxied required | boolean | Traffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false. |
data[].imported required | boolean | Read from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false. |
data[].points_at_site required | boolean | The name or target matches a domain attached to one of the company's sites. Default: false. |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
warnings required | array of string | Live warnings such as the SPF lookup count, for the records on this page. |
next_cursor | string or null | Pass it as cursor for the next page. Null on the last page. |
Add a record
post/dns/zones/{id}/recordsPermalink to Add a record
- Scope:
dns:write - Permission:
dns.manage
Validates the record (no CNAME at the apex, no conflicts, TTL bounds, SPF lookups), writes it to Cloudflare, and snapshots the zone.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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, DnsRecordRequest
Fields
| Name | Type | Description |
|---|---|---|
type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
name required | string | |
content required | string | |
ttl | integer | Default: 1. |
priority | integer | MX and SRV only. Range: 0 to 65535. |
comment | string |
Responses
| Status | Body | Description |
|---|---|---|
201 | DnsRecord | Record |
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) | UUIDv7 |
zone_id required | string (uuid) | UUIDv7 |
type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
name required | string | Fully qualified, without a trailing dot. |
content required | string | |
ttl required | integer | |
priority required | integer or null | |
managed required | boolean | Written by WP Waterfall (zero-touch attach). Locked in the editor. |
comment required | string or null | |
cf_record_id required | string or null | |
proxied required | boolean | Traffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false. |
imported required | boolean | Read from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false. |
points_at_site required | boolean | The name or target matches a domain attached to one of the company's sites. Default: false. |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Refresh records from Cloudflare
post/dns/zones/{id}/records/refreshPermalink to Refresh records from Cloudflare
- Scope:
dns:write - Permission:
dns.manage
Reads the zone's records from Cloudflare and updates the mirror: new records are imported, changed ones updated, and records gone from Cloudflare removed from the mirror. Cloudflare itself is never written.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsRefreshResult | Refresh result |
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 |
|---|---|---|
imported required | integer | Range: 0 to any. |
updated required | integer | Range: 0 to any. |
removed required | integer | Range: 0 to any. |
records required | array of DnsRecord | |
records[].id required | string (uuid) | UUIDv7 |
records[].zone_id required | string (uuid) | UUIDv7 |
records[].type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
records[].name required | string | Fully qualified, without a trailing dot. |
records[].content required | string | |
records[].ttl required | integer | |
records[].priority required | integer or null | |
records[].managed required | boolean | Written by WP Waterfall (zero-touch attach). Locked in the editor. |
records[].comment required | string or null | |
records[].cf_record_id required | string or null | |
records[].proxied required | boolean | Traffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false. |
records[].imported required | boolean | Read from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false. |
records[].points_at_site required | boolean | The name or target matches a domain attached to one of the company's sites. Default: false. |
records[].created_at required | string (date-time) | |
records[].updated_at required | string (date-time) | |
snapshot_version required | integer |
Change a record
patch/dns/zones/{id}/records/{record_id}Permalink to Change a record
- Scope:
dns:write - Permission:
dns.manage
Changes the fields you send (type, name, content, ttl, priority, or comment), checks the result against the rest of the zone, and writes it to Cloudflare. A record that WP Waterfall manages for an attached domain or for signed mail is locked and answers 409. The answer is the record with any warnings.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
record_id required | path | string (uuid) | The id of the DNS record. |
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, PatchDnsRecordRequest
Fields
| Name | Type | Description |
|---|---|---|
type | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
name | string | |
content | string | |
ttl | integer | Default: 1. |
priority | integer | Range: 0 to 65535. |
comment | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsRecord | Record |
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 |
zone_id required | string (uuid) | UUIDv7 |
type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
name required | string | Fully qualified, without a trailing dot. |
content required | string | |
ttl required | integer | |
priority required | integer or null | |
managed required | boolean | Written by WP Waterfall (zero-touch attach). Locked in the editor. |
comment required | string or null | |
cf_record_id required | string or null | |
proxied required | boolean | Traffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false. |
imported required | boolean | Read from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false. |
points_at_site required | boolean | The name or target matches a domain attached to one of the company's sites. Default: false. |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Delete a record
delete/dns/zones/{id}/records/{record_id}Permalink to Delete a record
- Scope:
dns:write - Permission:
dns.manage - Needs a confirmation
Managed records are locked. Needs confirm=true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
record_id required | path | string (uuid) | The id of the DNS record. |
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. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Deleted | |
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 up a zone again after it failed
post/dns/zones/{id}/retryPermalink to Set up a zone again after it failed
- Scope:
dns:write - Permission:
dns.manage
Queues the zone setup job again for a zone whose setup failed. The job reads the Cloudflare zone the earlier run created, skips records Cloudflare already holds, and reads the zone's records into the WP Waterfall list. Answers 409 for a zone that did not fail. Creating the zone again with the same name does the same.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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. |
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. |
List zone snapshots
get/dns/zones/{id}/snapshotsPermalink to List zone snapshots
- Scope:
domains:read - Permission:
sites.read
Lists the saved versions of the zone's records: each has a version, a record_count, who made it, the reason, and the time. Restore one with POST /dns/zones/{id}/snapshots/{version}/restore.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsSnapshotList | Snapshots |
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 DnsSnapshot | The rows of this page. |
data[].zone_id required | string (uuid) | UUIDv7 |
data[].version required | integer | |
data[].record_count required | integer | Range: 0 to any. |
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[].reason required | string | |
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. |
Save a snapshot of the zone now
post/dns/zones/{id}/snapshotsPermalink to Save a snapshot of the zone now
- Scope:
dns:write - Permission:
dns.manage
Saves the current records as a new version, with the reason given.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
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, CreateDnsSnapshotRequest
Fields
| Name | Type | Description |
|---|---|---|
reason | string | Default: Saved on request. |
Responses
| Status | Body | Description |
|---|---|---|
201 | DnsSnapshot | Snapshot |
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 |
|---|---|---|
zone_id required | string (uuid) | UUIDv7 |
version required | integer | |
record_count required | integer | Range: 0 to any. |
actor_type required | string | One of: user, api_key, mcp_agent, system. |
actor_id required | string or null | |
actor_label required | string | |
reason required | string | |
created_at required | string (date-time) |
Delete a snapshot
delete/dns/zones/{id}/snapshots/{version}Permalink to Delete a snapshot
- Scope:
dns:write - Permission:
dns.manage - Needs a confirmation
Removes one saved version. The records themselves do not change. Needs confirm=true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
version required | path | integer | The version number of the snapshot: a whole number from 1. Range: 1 to any. |
confirm required | query | string | One of: true. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Deleted | |
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) |
Roll the zone back to a snapshot
post/dns/zones/{id}/snapshots/{version}/restorePermalink to Roll the zone back to a snapshot
- Scope:
dns:write - Permission:
dns.manage - Needs a confirmation
Replaces every unmanaged record with the snapshot's set. Needs confirm=true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the DNS zone. |
version required | path | integer | The version number of the snapshot: a whole number from 1. Range: 1 to any. |
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, RestoreSnapshotRequest
Fields
| Name | Type | Description |
|---|---|---|
confirm | boolean | Default: false. |
Responses
| Status | Body | Description |
|---|---|---|
200 | DnsRecordList | Records after the rollback |
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 |
|---|---|---|
data required | array of DnsRecord | |
data[].id required | string (uuid) | UUIDv7 |
data[].zone_id required | string (uuid) | UUIDv7 |
data[].type required | string | One of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS. |
data[].name required | string | Fully qualified, without a trailing dot. |
data[].content required | string | |
data[].ttl required | integer | |
data[].priority required | integer or null | |
data[].managed required | boolean | Written by WP Waterfall (zero-touch attach). Locked in the editor. |
data[].comment required | string or null | |
data[].cf_record_id required | string or null | |
data[].proxied required | boolean | Traffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false. |
data[].imported required | boolean | Read from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false. |
data[].points_at_site required | boolean | The name or target matches a domain attached to one of the company's sites. Default: false. |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
warnings required | array of string | Live warnings such as the SPF lookup count, for the records on this page. |
next_cursor | string or null | Pass it as cursor for the next page. Null on the last page. |