SSH and SFTP
15 operations in the WP Waterfall API.
- getSettings for running the environment on a developer's computer
- postRecord a pull to a developer's computer and plan it
- postRecord a push from a developer's computer and plan it
- getList extra SFTP accounts
- postAdd an SFTP account
- putSwitch SFTP on or off
- getSSH settings
- patchChange SSH settings
- getAllowed IP addresses
- putSet allowed IP addresses
- getConnection commands
- deleteRemove an SFTP account
- getList the SSH keys of your account
- postAdd an SSH key to your account
- deleteRemove an SSH key from your account
Settings for running the environment on a developer's computer
get/environments/{id}/local-devPermalink to Settings for running the environment on a developer's computer
- Scope:
sites:read - Permission:
sites.read
Read only, and it holds no password, no private key, and no API key. It names the PHP version, the database engine, version, and table prefix, the multisite mode, the site addresses, the SSH host, port, user, and host key fingerprint (null until the node reports it), the Git remote address, the branch, and the release commit, the paths, the sizes of the database and the uploads, the exclude list a pull must use, and which of code, database, and uploads each operation allows. Code always travels by Git. Live is read only: pull from live uses a backup download for the database and uploads and never SSH, its code is the release commit on the repository, and push is allowed on staging and previews only. ssh is null when SSH is off or an external repository is connected.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
Responses
| Status | Body | Description |
|---|---|---|
200 | LocalDevConfig | Local development settings |
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 |
|---|---|---|
site required | object | |
site.id required | string (uuid) | UUIDv7 |
site.name required | string | |
site.slug required | string | |
environment required | object | |
environment.id required | string (uuid) | UUIDv7 |
environment.name required | string | |
environment.kind required | string | One of: live, staging, preview. |
environment.role required | string | One of: staging, live, preview. |
runtime required | object | |
runtime.php_version required | string | |
runtime.wordpress_version required | string or null | |
runtime.webroot required | string | The WordPress root inside the container, such as /var/www/html. |
runtime.webroot_subfolder required | string | A folder under the webroot that WordPress lives in, or an empty string. |
database required | object | |
database.engine required | string | |
database.version required | string or null | The server version without a suffix, such as 11.4.2. Null while the node cannot answer. |
database.table_prefix required | string | The prefix WP Waterfall writes into wp-config.php. A pull still reads the real one over SSH. |
multisite required | object | |
multisite.enabled required | boolean | |
multisite.mode required | string or null | One of: subdirectory, subdomain. |
network | object or null | The network, for the add-on's per-subsite rewrites. Null for a single site. Holds no secret. A pull maps each domain and path to a local address and writes the mapping to .ddev/wpwaterfall-network.json. |
network.mode required | string | One of: subdirectory, subdomain. |
network.domain required | string | The network host (DOMAIN_CURRENT_SITE) on this environment. |
Record a pull to a developer's computer and plan it
post/environments/{id}/local-dev/pull-sessionPermalink to Record a pull to a developer's computer and plan it
- Scope:
sites:read - Permission:
database.access
Writes the local_dev.pull activity entry (who, which key, which environment, which parts) and returns the plan. It moves no data and returns no secret. parts picks code, database, and uploads in any combination. Code comes from the Git remote. Method ssh moves database and uploads on staging and previews and answers 409 live_is_immutable on live. Method backup works on every environment: the answer names the newest ready backup and the existing calls that download it (POST /environments/{id}/backups when a fresh one is wanted, then POST /backups/{id}/download and POST /backups/{id}/download-link, which keep their own scope, backups:write, and the database permission). Limited to 20 sessions per hour for each person or key and environment.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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, LocalDevPullSessionRequest
Fields
| Name | Type | Description |
|---|---|---|
method | string | How database and uploads travel. Left out, the environment's recommended method. One of: ssh, backup. |
client | string | Who asks, for the activity log, such as ddev-wpwaterfall/0.1.0. Plain text, no secrets. Default: unknown. |
parts | array of string | The parts the client will pull. |
Responses
| Status | Body | Description |
|---|---|---|
200 | LocalDevPullSession | The pull plan |
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 |
|---|---|---|
session_id required | string (uuid) | The activity log entry of this pull. Client calls can quote it. |
environment required | object | |
environment.id required | string (uuid) | UUIDv7 |
environment.name required | string | |
environment.kind required | string | One of: live, staging, preview. |
method required | string or null | Null when the session moves no database or uploads (code only). One of: ssh, backup. |
parts required | array of string | |
ssh_ready required | boolean | |
ssh_keys_pending required | integer | Range: 0 to any. |
issued_at required | string (date-time) | |
expires_at required | string (date-time) | |
latest_backup required | object or null | The newest ready backup. Null when the environment has none: take one first. |
latest_backup.id required | string (uuid) | UUIDv7 |
latest_backup.created_at required | string (date-time) | |
latest_backup.label required | string or null | |
latest_backup.cause required | string | |
latest_backup.size_bytes required | integer or null | Range: 0 to any. |
latest_backup.age_seconds required | integer | Range: 0 to any. |
recommend_fresh_backup required | boolean | |
steps required | array of object | Empty for ssh and for code only. For backup, the calls that fetch the archive. |
steps[].order required | integer | Range: 1 to any. |
steps[].action required | string | One of: create_backup, prepare_download, claim_download_link. |
steps[].method required | string | One of: GET, POST. |
steps[].path required | string | The path with /v1 and real ids filled in, except {backup_id} when a backup is still to come. |
Record a push from a developer's computer and plan it
post/environments/{id}/local-dev/push-sessionPermalink to Record a push from a developer's computer and plan it
- Scope:
sites:read - Permission:
database.access
Writes the local_dev.push activity entry and returns the plan. It moves no data. Push is for staging and previews only: live answers 409 live_is_immutable, and an environment with SSH off or an external repository answers 409 push_not_allowed. A code part needs the deploy permission and means a git push of the environment's branch to the WP Waterfall remote, which builds a new release. A database or uploads part replaces data on the environment, so the plan has a required backup step first (POST /environments/{id}/backups). Limited to 20 sessions per hour for each person or key and environment.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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, LocalDevPushSessionRequest
Fields
| Name | Type | Description |
|---|---|---|
client | string | Default: unknown. |
parts | array of string | The parts the client will push. |
Responses
| Status | Body | Description |
|---|---|---|
200 | LocalDevPushSession | The push plan |
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 |
|---|---|---|
session_id required | string (uuid) | UUIDv7 |
environment required | object | |
environment.id required | string (uuid) | UUIDv7 |
environment.name required | string | |
environment.kind required | string | One of: live, staging, preview. |
parts required | array of string | |
ssh_ready required | boolean | |
ssh_keys_pending required | integer | Range: 0 to any. |
issued_at required | string (date-time) | |
expires_at required | string (date-time) | |
steps required | array of object | Database and uploads replace data on the environment, so a backup comes first. The step is required when parts holds either. Code needs none (a Git push builds a new release). |
steps[].order required | integer | Range: 1 to any. |
steps[].action required | string | One of: create_backup, prepare_download, claim_download_link. |
steps[].method required | string | One of: GET, POST. |
steps[].path required | string | The path with /v1 and real ids filled in, except {backup_id} when a backup is still to come. |
steps[].scope required | string | The API key scope this call needs. |
steps[].required required | boolean | False when the client may skip the step (a fresh backup it does not need). |
code required | object or null | Where code goes: git push of the branch to the remote. Null without code. |
code.remote_url required | string or null | |
code.branch required | string |
List extra SFTP accounts
get/environments/{id}/sftp-accountsPermalink to List extra SFTP accounts
- Scope:
sites:read - Permission:
sites.read
Every environment lists its extra SFTP users, live included. Each has a folder below the web root and an access: read_write, read_only, or read_upload. read_upload reads every file and uploads to wp-content/uploads and nowhere else. Where the environment's code is read only (live always, and staging or a preview in Git mode) a user is read_only or read_upload. In SFTP mode a user is read_write or read_only, and a read_upload user reads only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
limit | query | integer | How many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SftpAccountList | SFTP accounts |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of SftpAccount | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].environment_id required | string (uuid) | UUIDv7 |
data[].username required | string | |
data[].directory required | string | The folder the user is limited to, below the site's web root. / is the whole web root. |
data[].access required | string | What the user may do now. read_only or read_upload while the environment code is read only (live, Git mode). One of: read_write, read_only, read_upload. |
data[].enabled required | boolean | |
data[].created_at required | string (date-time) | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Add an SFTP account
post/environments/{id}/sftp-accountsPermalink to Add an SFTP account
- Permission:
ssh.manage - Needs a recent two-factor check
- Dashboard session only, no API key
The body is the Job object plus the new account. Send password (16 to 32 characters) to choose it: it is sealed at once and the answer does not repeat it. Leave it out and the server makes one, shown once in this response when the job ends within a few seconds. Later it comes from the SFTP credentials reveal, which needs a recent sign-in. directory is a folder below the web root. The server makes it when it is missing and refuses one that links out of the site. access is read_write where code is writable (SFTP mode) and read_only where it is read only (live, Git mode) when you leave it out. read_upload reads every file and uploads, changes, and removes files in wp-content/uploads, and can change nothing else; it needs read only code, and a directory of / or /wp-content so the folder holds the uploads folder (422 upload_folder_invalid otherwise, 422 access_not_available in SFTP mode). read_write where code is read only is stored as read_only. Answers 409 agent_too_old while the server needs an update first, and for read_upload until the server runs the upload update.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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, CreateSftpAccountRequest
Fields
| Name | Type | Description |
|---|---|---|
username required | string | |
directory | string | Default: /. |
password | string | 16 to 32 characters. Leave it out and the server makes one, shown once in the answer. A password you send is sealed at once. It never sits in a job, an event, or an audit entry, and the answer does not repeat it. A password you choose must also pass the pattern rules of account passwords (not a common word, not a repeated unit, not a keyboard run) and use at least 8 different characters; the answer is 422 otherwise. |
access | string | Leave it out for the default: read_write where code is writable (SFTP mode), read_only where it is read only (live, Git mode). read_upload reads every file and uploads to the uploads folder; it needs read only code and a root directory of / or /wp-content, and answers 422 otherwise. read_write where code is read only is stored as read_only. One of: read_write, read_only, read_upload. |
Responses
| Status | Body | Description |
|---|---|---|
202 | SftpAccountCreated | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Switch SFTP on or off
put/environments/{id}/sftp-accounts/statusPermalink to Switch SFTP on or off
- Scope:
sites:write - Permission:
ssh.manage
Switches every extra SFTP account of the environment on or off.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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, PutSftpStatusRequest
Fields
| Name | Type | Description |
|---|---|---|
enabled required | boolean |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
SSH settings
get/environments/{id}/sshPermalink to SSH settings
- Scope:
sites:read - Permission:
sites.read
Returns the SSH state of the environment: whether it is on, the host, port, and username, password sign-in and its expiry in days, the allowed IP addresses, and the public keys that can sign in. It holds no password.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SshSettings | SSH settings |
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 |
|---|---|---|
enabled required | boolean | |
host required | string | |
port required | integer | Range: 1 to 65535. |
username required | string | |
password_auth required | boolean | |
password_expires_days required | integer or null | |
allowed_ips required | array of string | |
keys required | array of SshKey | |
keys[].id required | string (uuid) | UUIDv7 |
keys[].environment_id required | string (uuid) | UUIDv7 |
keys[].user_id required | string or null (uuid) | UUIDv7 |
keys[].name required | string | |
keys[].fingerprint required | string | |
keys[].public_key required | string | |
keys[].created_at required | string (date-time) |
Change SSH settings
patch/environments/{id}/sshPermalink to Change SSH settings
- Scope:
sites:write - Permission:
ssh.manage - Needs a confirmation
Changes enabled, password_auth, or password_expires_days (1 to 365, or null) and returns 202 with the Job. Send at least one of them (422 otherwise). Turning SSH on, or password sign-in on, asks a signed-in person for a recent sign-in. Needs confirm: true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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. |
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, PatchSshSettingsRequest
Fields
| Name | Type | Description |
|---|---|---|
enabled | boolean | |
password_auth | boolean | |
password_expires_days | integer or null | Range: 1 to 365. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Allowed IP addresses
get/environments/{id}/ssh/allowed-ipsPermalink to Allowed IP addresses
- Scope:
sites:read - Permission:
sites.read
Returns allowed_ips, the addresses and ranges that may connect over SSH and SFTP. An empty list means any address may connect.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SshAllowedIps | Allowed IPs |
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 |
|---|---|---|
allowed_ips required | array of string |
Set allowed IP addresses
put/environments/{id}/ssh/allowed-ipsPermalink to Set allowed IP addresses
- Scope:
sites:write - Permission:
ssh.manage - Needs a confirmation
Replaces the list with up to 100 IP addresses or CIDR ranges and returns 202 with the Job. An empty list lets any address connect. A change that lets more addresses in asks a signed-in person for a recent sign-in. Needs confirm: true.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
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. |
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, PutSshAllowedIpsRequest
Fields
| Name | Type | Description |
|---|---|---|
allowed_ips required | array of string |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
Connection commands
get/environments/{id}/ssh/configPermalink to Connection commands
- Scope:
sites:read - Permission:
sites.read
Returns the host, port, and username with ready to copy ssh_command, sftp_command, and database_tunnel_command, and the server's host_key_fingerprint (null until the server reports it). None of them holds a secret. Send Accept: text/plain to get an SSH config file to download instead.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the environment. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SshConfig | SSH, SFTP, and tunnel commands |
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 |
|---|---|---|
host required | string | |
port required | integer | |
username required | string | |
ssh_command required | string | |
sftp_command required | string | |
database_tunnel_command required | string | |
host_key_fingerprint required | string or null |
Remove an SFTP account
delete/sftp-accounts/{id}Permalink to Remove an SFTP account
- Scope:
sites:write - Permission:
ssh.manage
Works on every environment, live included.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the SFTP account. |
Responses
| Status | Body | Description |
|---|---|---|
202 | Job | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
type required | string | A node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan. |
status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
environment_id required | string or null (uuid) | UUIDv7 |
site_id required | string or null (uuid) | UUIDv7 |
node_id required | string or null (uuid) | UUIDv7 |
group_id required | string or null (uuid) | UUIDv7 |
progress required | integer | Range: 0 to 100. |
attempts required | integer | Range: 0 to any. |
error required | object or null | |
error.code required | string | |
error.message required | string | |
error.retryable required | boolean | Default: false. |
result required | object or null | |
description | string or null | What the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers. |
site_name | string or null | The name of the site the job belongs to, when it has one. |
environment_name | string or null | The name of the environment the job runs on, such as live or staging. |
quiet | boolean | True for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet. |
parent_job_id | string or null (uuid) | The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
List the SSH keys of your account
get/users/me/ssh-keysPermalink to List the SSH keys of your account
- Scope:
ssh-keys:read - Permission:
code.deploy
These keys work for Git over SSH on every staging and preview environment you may push code to (the code.deploy permission), in each company you belong to. A signed-in session, or an AI assistant connection with the ssh-keys:read scope. A plain API key cannot call this route.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccountSshKeyList | Your SSH keys |
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 AccountSshKey | |
data[].id required | string (uuid) | UUIDv7 |
data[].name required | string | |
data[].fingerprint required | string | |
data[].public_key required | string | |
data[].created_at required | string (date-time) | |
data[].last_used_at required | string or null (date-time) | Reserved. WP Waterfall does not read node logs yet, so this is null. |
next_cursor | string or null |
Add an SSH key to your account
post/users/me/ssh-keysPermalink to Add an SSH key to your account
- Scope:
ssh-keys:write - Permission:
code.deploy - Needs a confirmation
- Needs a recent two-factor check
Checks the key, saves it, and queues one Change SSH settings job for each environment that should accept it (at most 100 per company; the rest follow when someone opens the Code panel). Needs a recent sign-in. A person keeps at most 20 keys. A signed-in session needs a recent sign-in. An AI assistant connection with the ssh-keys:write scope may add a key for the person who approved it when it sends confirm: true; the person gets a notice and an audit entry names the connection. A plain API key cannot call this route.
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. |
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, CreateAccountSshKeyRequest
Fields
| Name | Type | Description |
|---|---|---|
name required | string | |
public_key required | string | |
confirm | boolean | For an AI assistant connection only: the person's yes. A signed-in person leaves it out. |
Responses
| Status | Body | Description |
|---|---|---|
201 | AccountSshKey | The saved key |
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 |
|---|---|---|
id required | string (uuid) | UUIDv7 |
name required | string | |
fingerprint required | string | |
public_key required | string | |
created_at required | string (date-time) | |
last_used_at required | string or null (date-time) | Reserved. WP Waterfall does not read node logs yet, so this is null. |
Remove an SSH key from your account
delete/users/me/ssh-keys/{key_id}Permalink to Remove an SSH key from your account
- Scope:
ssh-keys:write - Permission:
code.deploy - Needs a confirmation
- Needs a recent two-factor check
Removes the key and queues a Change SSH settings job on each environment that accepted it, unless another key of the environment or of another member has the same fingerprint. A signed-in session needs a recent sign-in. An AI assistant connection with the ssh-keys:write scope may remove a key of the person who approved it when it sends confirm=true. A plain API key cannot call this route.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
key_id required | path | string (uuid) | The id of the SSH key. |
confirm | query | string | An API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Removed | |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |