Migrations
13 operations in the WP Waterfall API.
- getList the company's migrations
- postMigrate an existing site to a new WP Waterfall site
- getWhat a migration costs and allows
- getRead one migration
- patchChange whether the import starts by itself
- postAccept the migrated site
- postCancel a migration
- postPay WP Waterfall to clean a backup with malware
- postSay the migrated site is not right
- postSay the malware check is wrong
- postSend a note to WP Waterfall support
- postJump the queue
- putReplace the backup link
List the company's migrations
get/migrationsPermalink to List the company's migrations
- Scope:
sites:read - Permission:
sites.read
Newest first. Filter by status, by open (unfinished) requests, or by site.
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. |
status | query | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
open | query | string | true returns unfinished requests only. One of: true, false. |
site_id | query | string (uuid) | UUIDv7 |
Responses
| Status | Body | Description |
|---|---|---|
200 | MigrationList | Migrations |
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 Migration | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].site_id required | string (uuid) | UUIDv7 |
data[].environment_id required | string or null (uuid) | The staging environment the site starts with. |
data[].site_name required | string | |
data[].status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
data[].status_label required | string | |
data[].source required | object | |
data[].auto_import required | boolean | |
data[].priority required | object | |
data[].malware | object or null | Set while the status is malware_found. |
data[].database_open required | integer | How many database items the team is still cleaning by hand. While it is above zero the customer cannot accept the site, and the page says so in one sentence. Items marked cleaned or safe do not count, and neither do items that are only worth a look. Range: 0 to any. |
data[].queue_position required | integer or null | Place in line among waiting requests. 1 is next. Null once the request left the line. |
data[].assessment required | object or null | |
data[].message required | string or null | The latest message from WP Waterfall support for the customer. |
data[].error required | object or null | Why the request failed, in plain words. |
data[].notes required | array of object | |
data[].decline required | object or null | Set while the status is declined: what the customer said is not right. |
data[].import | object or null | What the import did: the table prefix, and for a network each site and how it answered. |
data[].provisioning_job_id required | string or null (uuid) | The job that provisions the new site. |
data[].active_job_id required | string or null (uuid) | The job that runs the checks or the import now. |
data[].test required | boolean | |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) |
Migrate an existing site to a new WP Waterfall site
post/migrationsPermalink to Migrate an existing site to a new WP Waterfall site
- Scope:
sites:write - Permission:
sites.create
Creates the new site (it uses a site license the way POST /sites does, or runs free on the demo node when test is true) and a migration request for it. Migrations are free and wait in one queue. Send a link to a backup (a Google Drive share link set to Anyone with the link, or a direct https link to a .zip, .tar.gz, or .tgz archive), or send source type manual and a person at WP Waterfall moves the site. Never send a password in a link or a note: support asks for access in Nami chat. With priority true the saved card is charged the one-time fee first (402 payment_required or card_declined, and nothing is created). While Expedited Migration is off (expedited false in GET /migrations/options), priority true answers 409 expedited_migration_off and nothing is created. The request is checked in the background: poll GET /migrations/{id}. Refusals: 402 for plan problems (the same codes as POST /sites), 409 too_many_migrations at the company limit, 422 for a link WP Waterfall cannot use. php_version may be 8.1 or 8.2 here and nowhere else, for a site that runs that version on its old host: both are closed to every other new site. A version past its removal day answers 422 php_version_removed, and 8.2 answers 422 when no server in the region has it.
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, CreateMigrationRequest
Fields
| Name | Type | Description |
|---|---|---|
name required | string | The name of the new site. |
region | string | A region code from GET /regions. Defaults to the platform default region. |
php_version | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. Default: 8.5. |
test | boolean | A simulated test migration on the demo node. Needs test_sites on GET /platform. Default: false. |
labels | array of string (uuid) | |
subscription_id | string (uuid) | The plan whose free slot the new site takes, as for a new site. |
source required | one of object, object | |
auto_import | boolean | Start the import by itself when the checks find nothing risky. When false, a person at WP Waterfall approves every import. Default: true. |
priority | boolean | Jump the queue now: charges the saved card the one-time fee (MIGRATION_PRIORITY_FEE_CENTS). Needs a payment method, and confirm: true from tools that spend money for a person. Default: false. |
confirm | boolean | Required (true) from an API key or a tool when priority is true, because that charges the saved card. A signed-in person confirms in the dashboard. |
note | string | Anything WP Waterfall should know: plugins that must keep working, a deadline, a known problem. |
details | object | What the customer says about the old site: its domains, WordPress admin address, whether it uses HTTPS, is ecommerce, is a multisite network, or uses a Bedrock or Trellis layout, the backup type, and when to start. WP Waterfall staff read it. Never include a password. |
details.timing | string | When to start. expedited goes with priority: true; scheduled needs scheduled_for. One of: asap, scheduled, expedited. Default: asap. |
details.scheduled_for | string (date-time) | The requested start for scheduled, as an instant. Staff confirm it. |
details.time_zone | string | The IANA time zone the person picked for scheduled_for, such as America/New_York. |
details.backup_type | string | One of: duplicator, managewp, zip, cpanel. |
details.domains | array of string | The domain names of the site to move, one per entry. |
details.wildcard | boolean | Also move every subdomain of those domains. Default: false. |
details.admin_url | string | The WordPress admin address, such as https://example.com/wp-admin. No login goes with it. |
details.ecommerce | boolean | Orders, memberships, or content that visitors add. Staff plan a quiet time. Default: false. |
details.multisite | boolean | Default: false. |
details.bedrock | boolean | A Bedrock or Trellis layout (WordPress in a web/ folder). Default: false. |
details.https | boolean | The old site answers on https. Default: true. |
Responses
| Status | Body | Description |
|---|---|---|
201 | MigrationCreated | The migration |
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) |
201 response fields
| Name | Type | Description |
|---|---|---|
migration required | Migration | |
migration.id required | string (uuid) | UUIDv7 |
migration.site_id required | string (uuid) | UUIDv7 |
migration.environment_id required | string or null (uuid) | The staging environment the site starts with. |
migration.site_name required | string | |
migration.status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
migration.status_label required | string | |
migration.source required | object | |
migration.auto_import required | boolean | |
migration.priority required | object | |
migration.malware | object or null | Set while the status is malware_found. |
migration.database_open required | integer | How many database items the team is still cleaning by hand. While it is above zero the customer cannot accept the site, and the page says so in one sentence. Items marked cleaned or safe do not count, and neither do items that are only worth a look. Range: 0 to any. |
migration.queue_position required | integer or null | Place in line among waiting requests. 1 is next. Null once the request left the line. |
migration.assessment required | object or null | |
migration.message required | string or null | The latest message from WP Waterfall support for the customer. |
migration.error required | object or null | Why the request failed, in plain words. |
migration.notes required | array of object | |
migration.decline required | object or null | Set while the status is declined: what the customer said is not right. |
migration.import | object or null | What the import did: the table prefix, and for a network each site and how it answered. |
migration.provisioning_job_id required | string or null (uuid) | The job that provisions the new site. |
migration.active_job_id required | string or null (uuid) | The job that runs the checks or the import now. |
migration.test required | boolean | |
migration.created_at required | string (date-time) | |
migration.updated_at required | string (date-time) |
What a migration costs and allows
get/migrations/optionsPermalink to What a migration costs and allows
- Scope:
sites:read - Permission:
sites.read
The one-time priority fee in cents, the largest archive, the kinds of link WP Waterfall reads, and how many unfinished migrations the company has against its limit.
Responses
| Status | Body | Description |
|---|---|---|
200 | MigrationOptions | Options |
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. |
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 |
|---|---|---|
priority_fee_cents required | integer | |
currency required | string | |
max_archive_bytes required | integer | |
link_kinds required | array of string | The kinds of link WP Waterfall reads. |
assessment_available required | boolean | True when the AI assessment is switched on, so the form can say how fast a verdict arrives. |
expedited required | boolean | True when Expedited Migration is offered. False: the form hides the choice, and priority: true is refused with expedited_migration_off. |
priority_due_hours required | integer | The hours an Expedited Migration promises from payment until the site is ready to review. |
Read one migration
get/migrations/{id}Permalink to Read one migration
- Scope:
sites:read - Permission:
sites.read
The status, the place in the queue, what the checks found, any message from WP Waterfall support, and the notes. The link you gave is never returned, only its host.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Change whether the import starts by itself
patch/migrations/{id}Permalink to Change whether the import starts by itself
- Scope:
sites:write - Permission:
sites.create
Only before the import starts. With auto_import false a person at WP Waterfall approves the import.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, PatchMigrationRequest
Fields
| Name | Type | Description |
|---|---|---|
auto_import | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Accept the migrated site
post/migrations/{id}/acceptPermalink to Accept the migrated site
- Scope:
sites:write - Permission:
sites.create
Marks a migration that is ready for review as complete. The site stays on staging until you launch live.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Cancel a migration
post/migrations/{id}/cancelPermalink to Cancel a migration
- Scope:
sites:write - Permission:
sites.create - Needs a confirmation
Needs confirm=true. Possible until the work starts. A priority fee is refunded to the card. Cancelling also deletes the site that was set up for the migration (the same delete job, audit event, and slot release as DELETE /sites/{id}), unless the site is live or a completed migration filled it. Answers 409 job_already_running while a job runs on the site, and changes nothing.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
confirm required | query | string | One of: true. |
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 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Pay WP Waterfall to clean a backup with malware
post/migrations/{id}/cleanPermalink to Pay WP Waterfall to clean a backup with malware
- Scope:
billing:write - Permission:
billing.write - Needs a confirmation
For a migration in the status malware_found. Needs confirm true, because it charges the saved card the one-time clean fee (malware.clean.fee_cents on the migration). WP Waterfall then leaves out every flagged plugin, theme, and file, builds WordPress core fresh from wordpress.org (the import never copies core), and continues the import. The other two choices are PUT /migrations/{id}/source with a new backup link, which runs the check again, and POST /migrations/{id}/decline. Answers 409 migration_not_flagged in any other status, and 402 when the payment fails (nothing is charged).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, CleanMigrationRequest
Fields
| Name | Type | Description |
|---|---|---|
confirm required | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Say the migrated site is not right
post/migrations/{id}/declinePermalink to Say the migrated site is not right
- Scope:
sites:write - Permission:
sites.create
For a migration in the status malware_found, declining the clean ends the migration (it becomes cancelled), removes the stored backup, refunds a paid priority fee, and deletes the site that was set up for it (the same delete job, audit event, and slot release as DELETE /sites/{id}). The note is optional and is kept in the thread when sent. Answers 409 migration_site_in_use when the site already holds a launched site, and changes nothing. For a migration that is ready for review it moves the migration to declined instead: send a note, 1 to 2000 characters, that says what is not right (422 without one). That costs nothing and needs no new upload. WP Waterfall support is told with your note, fixes the site, and tells you when it is ready to look at again. The site stays locked meanwhile. Sending it again for a declined migration changes nothing and answers 200. Answers 409 migration_not_ready in any other status.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, DeclineMigrationRequest
Fields
| Name | Type | Description |
|---|---|---|
note | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Say the malware check is wrong
post/migrations/{id}/disputePermalink to Say the malware check is wrong
- Scope:
sites:write - Permission:
sites.create
For a migration in the status malware_found. The check is rule based and can be wrong, for example for a PHP file a plugin keeps in uploads. Emails the staff the migration id and the flagged paths (the optional note is added), and records the dispute on the migration (malware.dispute). Nothing is charged and nothing is copied. The migration waits for support, who either mark the files safe (the check runs again and the import goes on) or confirm the finding (the clean and decline choices come back). Sending it again answers 200 with the same dispute and sends no second email. Answers 409 migration_not_flagged in any other status.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, DisputeMigrationMalwareRequest
Fields
| Name | Type | Description |
|---|---|---|
note | string |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Send a note to WP Waterfall support
post/migrations/{id}/notesPermalink to Send a note to WP Waterfall support
- Scope:
sites:write - Permission:
sites.create
Answers a question from support or adds a detail. A request that needed your input goes back to the queue. Never put a password in a note.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, MigrationNoteRequest
Fields
| Name | Type | Description |
|---|---|---|
body required | string |
Responses
| Status | Body | Description |
|---|---|---|
201 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Jump the queue
post/migrations/{id}/priorityPermalink to Jump the queue
- Scope:
billing:write - Permission:
billing.write - Needs a confirmation
Closed for customers. The queue is jumped when the migration is requested (POST /migrations with priority true). A migration always creates its site at that moment, so this route answers 409 migration_site_created with a plain sentence and charges nothing. While Expedited Migration is off it answers 409 expedited_migration_off first. Migrations run in the order they arrive.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, BuyMigrationPriorityRequest
Fields
| Name | Type | Description |
|---|---|---|
confirm required | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |
Replace the backup link
put/migrations/{id}/sourcePermalink to Replace the backup link
- Scope:
sites:write - Permission:
sites.create
Use it when WP Waterfall could not download the file (status needs_input), or you made a new backup. The checks run again from the start. Only before the import starts.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the migration. |
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, PutMigrationSourceRequest
Fields
| Name | Type | Description |
|---|---|---|
source required | object | |
source.type required | string | |
source.url required | string | A Google Drive share link (set to Anyone with the link) or a direct https link to a.zip,.tar.gz, or.tgz archive. The link is stored for the migration only and never appears in a job, an event, or the audit log. |
source.site_url | string | The address of the old site, such as https://example.com. Optional: when it is left out, WP Waterfall reads it from the backup (the siteurl and home options of the database, then wp-config.php, the links in the posts, the file name, and .htaccess). It is never the download link: the link is url. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Migration | The migration |
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 |
site_id required | string (uuid) | UUIDv7 |
environment_id required | string or null (uuid) | The staging environment the site starts with. |
site_name required | string | |
status required | string | One of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed. |
status_label required | string | |
source required | object | |
source.type required | string | One of: link, manual. |
source.link_host required | string or null | Where the link points, such as drive.google.com. The full link is never returned. |
source.site_url required | string or null | The address of the old site: what the customer typed, else what WP Waterfall found in the backup. Null until the checks have read the backup and when the backup does not name it. |
source.site_url_detected required | boolean | True when site_url was found in the backup, not typed. |
source.current_host required | string or null | |
auto_import required | boolean | |
priority required | object | |
priority.enabled required | boolean | True while the request is in the priority group. |
priority.paid_at required | string or null (date-time) | |
priority.fee_cents required | integer | Range: 0 to any. |
priority.refunded_at required | string or null (date-time) | The fee comes back if the request is cancelled or fails before the work starts. |
priority.available required | boolean | True when the customer can still pay for priority. |
priority.due_at required | string or null (date-time) | When the work is due: the time the fee was paid plus MIGRATION_PRIORITY_DUE_HOURS. The work is done when the site is ready to review. Null without paid priority, or once the fee went back. |
priority.clock required | string or null | Where the clock stands: running, due_soon (an hour or less left), late, met, missed, or stopped (ended without the work). Null without paid priority, or once the fee went back. One of: running, due_soon, late, met, missed, stopped. |
malware | object or null | Set while the status is malware_found. |
malware.found_at required | string (date-time) | |
malware.total required | integer | How many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any. |