Create WP Credentials
create_wp_credentialsMint a WordPress Application Password for a domain's Cloud for WordPress site, enabling WP REST API access over HTTP Basic auth.
Instructions
CLOUD FOR WORDPRESS ONLY. Mint a WordPress Application Password for a domain's managed WordPress site so you can drive it over the WP REST API at https:///wp-json/ using HTTP Basic auth. The password is returned ONCE (WordPress stores only a hash) — save it immediately. Defaults to a dedicated least-privilege porkbun-agent user with the editor role (created on first use), which can manage content but cannot install code. role: "administrator" grants FULL site control including plugin installation (i.e. arbitrary code execution on the site) and therefore requires acknowledge_full_access: true — only request it if the user explicitly asked for admin-level access. The site must be provisioned and ACTIVE (poll get_hosting) — this works on any Cloud for WordPress site in the account however it was provisioned, but free $0 preview sites are excluded. Revoke any time with delete_wp_credentials. Rate limit: 20 mints per account per hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label shown in wp-admin (letters, digits, dashes), e.g. `Acme-Agent`. | |
| role | No | `editor` (default) = content only, recommended for agents. `administrator` = full control incl. plugin install; requires acknowledge_full_access. | |
| domain | Yes | Domain whose WordPress site to mint credentials for. | |
| dry_run | No | Validate without creating anything. | |
| acknowledge_full_access | No | Required when role=administrator: confirms the user understands the credential can run arbitrary code on the site. |