Skip to content

Migrations

13 operations in the WP Waterfall API.

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

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.
statusquerystringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
openquerystringtrue returns unfinished requests only. One of: true, false.
site_idquerystring (uuid)UUIDv7

Responses

StatusBodyDescription
200MigrationListMigrations
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 MigrationThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].site_id requiredstring (uuid)UUIDv7
data[].environment_id requiredstring or null (uuid)The staging environment the site starts with.
data[].site_name requiredstring
data[].status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
data[].status_label requiredstring
data[].source requiredobject
data[].auto_import requiredboolean
data[].priority requiredobject
data[].malwareobject or nullSet while the status is malware_found.
data[].database_open requiredintegerHow 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 requiredinteger or nullPlace in line among waiting requests. 1 is next. Null once the request left the line.
data[].assessment requiredobject or null
data[].message requiredstring or nullThe latest message from WP Waterfall support for the customer.
data[].error requiredobject or nullWhy the request failed, in plain words.
data[].notes requiredarray of object
data[].decline requiredobject or nullSet while the status is declined: what the customer said is not right.
data[].importobject or nullWhat the import did: the table prefix, and for a network each site and how it answered.
data[].provisioning_job_id requiredstring or null (uuid)The job that provisions the new site.
data[].active_job_id requiredstring or null (uuid)The job that runs the checks or the import now.
data[].test requiredboolean
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (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

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, CreateMigrationRequest

Fields

NameTypeDescription
name requiredstringThe name of the new site.
regionstringA region code from GET /regions. Defaults to the platform default region.
php_versionstringOne of: 8.1, 8.2, 8.3, 8.4, 8.5. Default: 8.5.
testbooleanA simulated test migration on the demo node. Needs test_sites on GET /platform. Default: false.
labelsarray of string (uuid)
subscription_idstring (uuid)The plan whose free slot the new site takes, as for a new site.
source requiredone of object, object
auto_importbooleanStart the import by itself when the checks find nothing risky. When false, a person at WP Waterfall approves every import. Default: true.
prioritybooleanJump 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.
confirmbooleanRequired (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.
notestringAnything WP Waterfall should know: plugins that must keep working, a deadline, a known problem.
detailsobjectWhat 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.timingstringWhen to start. expedited goes with priority: true; scheduled needs scheduled_for. One of: asap, scheduled, expedited. Default: asap.
details.scheduled_forstring (date-time)The requested start for scheduled, as an instant. Staff confirm it.
details.time_zonestringThe IANA time zone the person picked for scheduled_for, such as America/New_York.
details.backup_typestringOne of: duplicator, managewp, zip, cpanel.
details.domainsarray of stringThe domain names of the site to move, one per entry.
details.wildcardbooleanAlso move every subdomain of those domains. Default: false.
details.admin_urlstringThe WordPress admin address, such as https://example.com/wp-admin. No login goes with it.
details.ecommercebooleanOrders, memberships, or content that visitors add. Staff plan a quiet time. Default: false.
details.multisitebooleanDefault: false.
details.bedrockbooleanA Bedrock or Trellis layout (WordPress in a web/ folder). Default: false.
details.httpsbooleanThe old site answers on https. Default: true.

Responses

StatusBodyDescription
201MigrationCreatedThe migration
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)

201 response fields

NameTypeDescription
migration requiredMigration
migration.id requiredstring (uuid)UUIDv7
migration.site_id requiredstring (uuid)UUIDv7
migration.environment_id requiredstring or null (uuid)The staging environment the site starts with.
migration.site_name requiredstring
migration.status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
migration.status_label requiredstring
migration.source requiredobject
migration.auto_import requiredboolean
migration.priority requiredobject
migration.malwareobject or nullSet while the status is malware_found.
migration.database_open requiredintegerHow 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 requiredinteger or nullPlace in line among waiting requests. 1 is next. Null once the request left the line.
migration.assessment requiredobject or null
migration.message requiredstring or nullThe latest message from WP Waterfall support for the customer.
migration.error requiredobject or nullWhy the request failed, in plain words.
migration.notes requiredarray of object
migration.decline requiredobject or nullSet while the status is declined: what the customer said is not right.
migration.importobject or nullWhat the import did: the table prefix, and for a network each site and how it answered.
migration.provisioning_job_id requiredstring or null (uuid)The job that provisions the new site.
migration.active_job_id requiredstring or null (uuid)The job that runs the checks or the import now.
migration.test requiredboolean
migration.created_at requiredstring (date-time)
migration.updated_at requiredstring (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

StatusBodyDescription
200MigrationOptionsOptions
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.
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
priority_fee_cents requiredinteger
currency requiredstring
max_archive_bytes requiredinteger
link_kinds requiredarray of stringThe kinds of link WP Waterfall reads.
assessment_available requiredbooleanTrue when the AI assessment is switched on, so the form can say how fast a verdict arrives.
expedited requiredbooleanTrue when Expedited Migration is offered. False: the form hides the choice, and priority: true is refused with expedited_migration_off.
priority_due_hours requiredintegerThe 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, PatchMigrationRequest

Fields

NameTypeDescription
auto_importboolean

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
confirm requiredquerystringOne of: true.
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
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, CleanMigrationRequest

Fields

NameTypeDescription
confirm requiredboolean

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, DeclineMigrationRequest

Fields

NameTypeDescription
notestring

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, DisputeMigrationMalwareRequest

Fields

NameTypeDescription
notestring

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, MigrationNoteRequest

Fields

NameTypeDescription
body requiredstring

Responses

StatusBodyDescription
201MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, BuyMigrationPriorityRequest

Fields

NameTypeDescription
confirm requiredboolean

Responses

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow 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

NameInTypeDescription
id requiredpathstring (uuid)The id of the migration.
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, PutMigrationSourceRequest

Fields

NameTypeDescription
source requiredobject
source.type requiredstring
source.url requiredstringA 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_urlstringThe 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

StatusBodyDescription
200MigrationThe migration
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
site_id requiredstring (uuid)UUIDv7
environment_id requiredstring or null (uuid)The staging environment the site starts with.
site_name requiredstring
status requiredstringOne of: requested, checking, queued, in_progress, ready_for_review, declined, complete, needs_input, malware_found, cancelled, failed.
status_label requiredstring
source requiredobject
source.type requiredstringOne of: link, manual.
source.link_host requiredstring or nullWhere the link points, such as drive.google.com. The full link is never returned.
source.site_url requiredstring or nullThe 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 requiredbooleanTrue when site_url was found in the backup, not typed.
source.current_host requiredstring or null
auto_import requiredboolean
priority requiredobject
priority.enabled requiredbooleanTrue while the request is in the priority group.
priority.paid_at requiredstring or null (date-time)
priority.fee_cents requiredintegerRange: 0 to any.
priority.refunded_at requiredstring or null (date-time)The fee comes back if the request is cancelled or fails before the work starts.
priority.available requiredbooleanTrue when the customer can still pay for priority.
priority.due_at requiredstring 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 requiredstring or nullWhere 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.
malwareobject or nullSet while the status is malware_found.
malware.found_at requiredstring (date-time)
malware.total requiredintegerHow many items the check flagged. The list below holds up to MIGRATION_MALWARE_FINDINGS_LISTED of them, known bad first. Range: 0 to any.