Skip to content

DNS

18 operations in the WP Waterfall API.

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

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200DnsZoneListZones
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of DnsZoneThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].name requiredstring
data[].status requiredstringOne of: pending, active, moved, failed, deleted.
data[].cf_zone_id requiredstring or null
data[].nameservers requiredarray of stringThe nameservers the customer sets at the registrar.
data[].dnssec_status requiredstringOne of: disabled, pending, active, pending_disabled, error.
data[].ds_record requiredstring or null
data[].record_count requiredintegerRange: 0 to any.
data[].record_limit requiredinteger
data[].job_id requiredstring or null (uuid)UUIDv7
data[].job_status requiredstring or nullOne of: queued, dispatched, running, succeeded, failed, cancelled.
data[].last_activation_check_at requiredstring or null (date-time)
data[].activated_at requiredstring or null (date-time)
data[].adopted_at requiredstring or null (date-time)Set when the zone already existed in WP Waterfall's Cloudflare account and WP Waterfall adopted it.
data[].ownership_txt requiredobject or nullThe TXT record that proves control of a zone waiting for adoption. Null once adopted, and for zones WP Waterfall created itself.
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.
limit requiredobject
limit.used requiredintegerRange: 0 to any.
limit.allowed requiredinteger 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
name requiredstring
scanbooleanLook up the common records at the current host and import them. Default: true.

Responses

StatusBodyDescription
202JobAccepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}.
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

202 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
type requiredstringA 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 requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat 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_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue 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_idstring 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 requiredobject
requested_by.type requiredstringOne of: user, api_key, mcp_agent, system.
requested_by.id requiredstring or null
requested_by.label requiredstring or null
requested_by.client_namestring or nullMCP 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.

Responses

StatusBodyDescription
200DnsZoneZone
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
name requiredstring
status requiredstringOne of: pending, active, moved, failed, deleted.
cf_zone_id requiredstring or null
nameservers requiredarray of stringThe nameservers the customer sets at the registrar.
dnssec_status requiredstringOne of: disabled, pending, active, pending_disabled, error.
ds_record requiredstring or null
record_count requiredintegerRange: 0 to any.
record_limit requiredinteger
job_id requiredstring or null (uuid)UUIDv7
job_status requiredstring or nullOne of: queued, dispatched, running, succeeded, failed, cancelled.
last_activation_check_at requiredstring or null (date-time)
activated_at requiredstring or null (date-time)
adopted_at requiredstring or null (date-time)Set when the zone already existed in WP Waterfall's Cloudflare account and WP Waterfall adopted it.
ownership_txt requiredobject or nullThe TXT record that proves control of a zone waiting for adoption. Null once adopted, and for zones WP Waterfall created itself.
ownership_txt.name requiredstring
ownership_txt.value requiredstring
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
confirm requiredquerystringOne of: true.

Responses

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
quietbooleanSkip 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

StatusBodyDescription
200ActivationCheckResultCheck result
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
zone_id requiredstring (uuid)UUIDv7
status requiredstringOne of: pending, active, moved, failed, deleted.
active requiredboolean
expected_nameservers requiredarray of string
found_nameservers requiredarray of string
checked_at requiredstring (date-time)
message requiredstringOne plain sentence: what to change at the registrar, or that the zone is live.
adopted requiredbooleanTrue when this check adopted a zone that already existed in WP Waterfall's Cloudflare account. Default: false.
imported_records requiredintegerRecords read from Cloudflare by this check (an active zone refreshes its records). Default: 0. Range: 0 to any.
ownership_txt requiredobject or nullStill waiting for this TXT record before the zone can be adopted.
ownership_txt.name requiredstring
ownership_txt.value requiredstring

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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200DnsZoneAdoptResultAdoption result
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
zone_id requiredstring (uuid)UUIDv7
status requiredstringOne of: pending, active, moved, failed, deleted.
adopted requiredboolean
imported_records requiredintegerRange: 0 to any.
ownership_txt requiredobject or nullSet while the zone still waits for the ownership TXT record.
ownership_txt.name requiredstring
ownership_txt.value requiredstring
message requiredstringOne 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.

Responses

StatusBodyDescription
200NameserverRequestRequest
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
zone_id requiredstring (uuid)UUIDv7
hostnames requiredarray of string
status requiredstringOne of: requested, approved, rejected, active.
note requiredstring or null
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
hostnames requiredarray of string
notestring

Responses

StatusBodyDescription
201NameserverRequestRequest
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
zone_id requiredstring (uuid)UUIDv7
hostnames requiredarray of string
status requiredstringOne of: requested, approved, rejected, active.
note requiredstring or null
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
limitqueryintegerHow many rows to return in one page: at most 1000, and 1000 when left out. Default: 1000. Range: 1 to 1000.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200DnsRecordListRecords with live warnings
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of DnsRecord
data[].id requiredstring (uuid)UUIDv7
data[].zone_id requiredstring (uuid)UUIDv7
data[].type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
data[].name requiredstringFully qualified, without a trailing dot.
data[].content requiredstring
data[].ttl requiredinteger
data[].priority requiredinteger or null
data[].managed requiredbooleanWritten by WP Waterfall (zero-touch attach). Locked in the editor.
data[].comment requiredstring or null
data[].cf_record_id requiredstring or null
data[].proxied requiredbooleanTraffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false.
data[].imported requiredbooleanRead from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false.
data[].points_at_site requiredbooleanThe name or target matches a domain attached to one of the company's sites. Default: false.
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
warnings requiredarray of stringLive warnings such as the SPF lookup count, for the records on this page.
next_cursorstring or nullPass 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
name requiredstring
content requiredstring
ttlintegerDefault: 1.
priorityintegerMX and SRV only. Range: 0 to 65535.
commentstring

Responses

StatusBodyDescription
201DnsRecordRecord
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
zone_id requiredstring (uuid)UUIDv7
type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
name requiredstringFully qualified, without a trailing dot.
content requiredstring
ttl requiredinteger
priority requiredinteger or null
managed requiredbooleanWritten by WP Waterfall (zero-touch attach). Locked in the editor.
comment requiredstring or null
cf_record_id requiredstring or null
proxied requiredbooleanTraffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false.
imported requiredbooleanRead from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false.
points_at_site requiredbooleanThe name or target matches a domain attached to one of the company's sites. Default: false.
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
200DnsRefreshResultRefresh result
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
imported requiredintegerRange: 0 to any.
updated requiredintegerRange: 0 to any.
removed requiredintegerRange: 0 to any.
records requiredarray of DnsRecord
records[].id requiredstring (uuid)UUIDv7
records[].zone_id requiredstring (uuid)UUIDv7
records[].type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
records[].name requiredstringFully qualified, without a trailing dot.
records[].content requiredstring
records[].ttl requiredinteger
records[].priority requiredinteger or null
records[].managed requiredbooleanWritten by WP Waterfall (zero-touch attach). Locked in the editor.
records[].comment requiredstring or null
records[].cf_record_id requiredstring or null
records[].proxied requiredbooleanTraffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false.
records[].imported requiredbooleanRead from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false.
records[].points_at_site requiredbooleanThe name or target matches a domain attached to one of the company's sites. Default: false.
records[].created_at requiredstring (date-time)
records[].updated_at requiredstring (date-time)
snapshot_version requiredinteger

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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
record_id requiredpathstring (uuid)The id of the DNS record.
Idempotency-KeyheaderstringOptional 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

NameTypeDescription
typestringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
namestring
contentstring
ttlintegerDefault: 1.
priorityintegerRange: 0 to 65535.
commentstring

Responses

StatusBodyDescription
200DnsRecordRecord
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
zone_id requiredstring (uuid)UUIDv7
type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
name requiredstringFully qualified, without a trailing dot.
content requiredstring
ttl requiredinteger
priority requiredinteger or null
managed requiredbooleanWritten by WP Waterfall (zero-touch attach). Locked in the editor.
comment requiredstring or null
cf_record_id requiredstring or null
proxied requiredbooleanTraffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false.
imported requiredbooleanRead from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false.
points_at_site requiredbooleanThe name or target matches a domain attached to one of the company's sites. Default: false.
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
record_id requiredpathstring (uuid)The id of the DNS record.
confirmquerystringAn 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

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

StatusBodyDescription
202JobAccepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}.
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

202 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
type requiredstringA 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 requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat 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_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue 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_idstring 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 requiredobject
requested_by.type requiredstringOne of: user, api_key, mcp_agent, system.
requested_by.id requiredstring or null
requested_by.label requiredstring or null
requested_by.client_namestring or nullMCP 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
limitqueryintegerHow many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200DnsSnapshotListSnapshots
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of DnsSnapshotThe rows of this page.
data[].zone_id requiredstring (uuid)UUIDv7
data[].version requiredinteger
data[].record_count requiredintegerRange: 0 to any.
data[].actor_type requiredstringOne of: user, api_key, mcp_agent, system.
data[].actor_id requiredstring or null
data[].actor_label requiredstring
data[].reason requiredstring
data[].created_at requiredstring (date-time)
next_cursor requiredstring or nullSend 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
reasonstringDefault: Saved on request.

Responses

StatusBodyDescription
201DnsSnapshotSnapshot
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
zone_id requiredstring (uuid)UUIDv7
version requiredinteger
record_count requiredintegerRange: 0 to any.
actor_type requiredstringOne of: user, api_key, mcp_agent, system.
actor_id requiredstring or null
actor_label requiredstring
reason requiredstring
created_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
version requiredpathintegerThe version number of the snapshot: a whole number from 1. Range: 1 to any.
confirm requiredquerystringOne of: true.

Responses

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the DNS zone.
version requiredpathintegerThe version number of the snapshot: a whole number from 1. Range: 1 to any.
Idempotency-Key requiredheaderstringSend 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.
confirmquerystringAn 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

NameTypeDescription
confirmbooleanDefault: false.

Responses

StatusBodyDescription
200DnsRecordListRecords after the rollback
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of DnsRecord
data[].id requiredstring (uuid)UUIDv7
data[].zone_id requiredstring (uuid)UUIDv7
data[].type requiredstringOne of: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS.
data[].name requiredstringFully qualified, without a trailing dot.
data[].content requiredstring
data[].ttl requiredinteger
data[].priority requiredinteger or null
data[].managed requiredbooleanWritten by WP Waterfall (zero-touch attach). Locked in the editor.
data[].comment requiredstring or null
data[].cf_record_id requiredstring or null
data[].proxied requiredbooleanTraffic goes through Cloudflare's proxy. Read from Cloudflare; WP Waterfall writes DNS-only records. Default: false.
data[].imported requiredbooleanRead from Cloudflare (an adopted zone, or a refresh), not written by WP Waterfall. Default: false.
data[].points_at_site requiredbooleanThe name or target matches a domain attached to one of the company's sites. Default: false.
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
warnings requiredarray of stringLive warnings such as the SPF lookup count, for the records on this page.
next_cursorstring or nullPass it as cursor for the next page. Null on the last page.