Porkbun Hosting API
Three products share these endpoints; the `sku` you pass to `/hosting/create` picks one: • **Secure Static Hosting**: you upload the files; Porkbun serves them over HTTPS. SKUs `PIXIESECURESTATIC…` • **Cloud for WordPress**: a managed WordPress site, managed through WordPress itself. SKUs `CLOUDWORDPRESS…` • **Link in Bio** (paid): a page of links, edited with the `/linkinbio` endpoints. SKUs `PIXIELINKSM1` and `PIXIELINKSY1`. The free plan is turned on with `/linkinbio/create`, not here. All three: `/hosting/plans`, `/hosting/create`, `/hosting/get`, `/hosting/updateAutoRenew`, `/hosting/delete`. Static hosting only: `/hosting/deploy`, `/hosting/files`, `/hosting/getFile`, `/hosting/makeDir`, `/hosting/deleteFile` (anything else returns `NOT_SUPPORTED_FOR_PRODUCT`). WordPress only: `/hosting/wpRequest` and `/hosting/wpUploadMedia` (edit content and add images, no credentials needed), `/hosting/createWpCredentials`, `/hosting/getWpCredentials`, `/hosting/deleteWpCredentials`, and the site management below. A domain's first purchase of a product is a 15-day free trial that auto-renews at the plan price; buying the same product again after cancelling is charged (one free trial per domain per product). **Cloud for WordPress site management:** `GET /hosting/get` shows the site's PHP and WordPress versions, SSL, storage, search visibility, staging and background jobs; `setPhpVersion`, `setWordPressVersion`, `reissueSsl` and `setSearchVisibility` change them; `backups`, `createBackup`, `deleteBackup` and `restoreBackup` manage backups (add `"staging": true` for the staging copy). **Staging:** `getStaging`, `createStaging`, `resetStaging`, `publishStaging`, `deleteStaging`, and its settings `setStagingGate` (password), `setStagingGuard` (outbound email/API) and `setStagingEnvironment`. **Site-share keys** (`/apikey/share`, permission `site`, one domain) can use every call here except `/hosting/create`, `/hosting/delete` and `/hosting/updateAutoRenew`.