# Porkbun Hosting API

**Canonical:** https://apis.io/apis/porkbun-com/porkbun-com-hosting-api/  
**Provider:** Porkbun — https://apis.io/providers/porkbun-com/  
**Base URL:** https://api.porkbun.com/api/json/v3  
**Documentation:** https://porkbun.com/api/json/v3/documentation

Porkbun Hosting API is one of 19 APIs that [Porkbun](https://apis.io/providers/porkbun-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Hosting. The published artifact set on APIs.io includes an OpenAPI specification.

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`.

## Operations (35)

| Method | Path | Summary |
|---|---|---|
| GET | `/hosting/plans` | List the hosting plans you can buy |
| POST | `/hosting/create/{domain}` | Buy a hosting plan (static, WordPress or paid Link in Bio) |
| GET | `/hosting/get/{domain}` | Get the hosting on a domain |
| POST | `/hosting/deploy/{domain}` | Upload site files (static hosting only) |
| GET | `/hosting/files/{domain}` | List site files (static hosting only) |
| POST | `/hosting/getFile/{domain}` | Read files from a static site |
| POST | `/hosting/deleteFile/{domain}` | Delete a site file (static hosting only) |
| POST | `/hosting/delete/{domain}` | Cancel a hosting plan |
| POST | `/hosting/makeDir/{domain}` | Create a directory (static hosting only) |
| POST | `/hosting/wpRequest/{domain}` | Edit a WordPress site: one REST API call, run inside the site |
| POST | `/hosting/wpUploadMedia/{domain}` | Add an image or file to a WordPress site's media library |
| POST | `/hosting/createWpCredentials/{domain}` | Mint WordPress REST API credentials (WordPress only) |
| GET | `/hosting/getWpCredentials/{domain}` | List WordPress application passwords (WordPress only) |
| POST | `/hosting/deleteWpCredentials/{domain}` | Revoke WordPress application passwords (WordPress only) |
| POST | `/hosting/updateAutoRenew/{domain}` | Turn hosting auto-renew on or off |
| POST | `/hosting/setPhpVersion/{domain}` | Set the PHP version |
| POST | `/hosting/setWordPressVersion/{domain}` | Set the WordPress version |
| POST | `/hosting/reissueSsl/{domain}` | Restart SSL issuance |
| POST | `/hosting/setSearchVisibility/{domain}` | Show or hide the site from search engines |
| GET | `/hosting/backups/{domain}` | List backups |
| POST | `/hosting/backups/{domain}` | List backups |
| POST | `/hosting/createBackup/{domain}` | Take an on-demand backup |
| POST | `/hosting/deleteBackup/{domain}` | Delete an on-demand backup |
| POST | `/hosting/restoreBackup/{domain}` | Restore from a backup |
| GET | `/hosting/getStaging/{domain}` | Get the staging site |
| POST | `/hosting/getStaging/{domain}` | Get the staging site |
| POST | `/hosting/createStaging/{domain}` | Create a staging site |
| POST | `/hosting/resetStaging/{domain}` | Rebuild the staging site |
| POST | `/hosting/publishStaging/{domain}` | Publish staging to the live site |
| POST | `/hosting/deleteStaging/{domain}` | Delete the staging site |
| POST | `/hosting/setStagingGate/{domain}` | Set staging password protection |
| POST | `/hosting/setStagingGuard/{domain}` | Block or allow outbound email and API calls from staging |
| POST | `/hosting/setStagingEnvironment/{domain}` | Set the staging environment type |
| POST | `/hosting/manifest/{domain}` | Build an agent manifest for a site and return the bytes to sign |
| POST | `/hosting/publishManifest/{domain}` | Publish the signed agent manifest to the site |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/porkbun-com/openapi/porkbun-com-hosting-api-openapi.yml

## Other Porkbun APIs (12)

- [Porkbun Account API](https://apis.io/apis/porkbun-com/porkbun-com-account-api/)
- [Porkbun Aftermarket API](https://apis.io/apis/porkbun-com/porkbun-com-aftermarket-api/)
- [Porkbun Agent Naming (ANS) API](https://apis.io/apis/porkbun-com/porkbun-com-agent-naming-ans-api/)
- [Porkbun API Key Management API](https://apis.io/apis/porkbun-com/porkbun-com-api-key-management-api/)
- [Porkbun Closeouts API](https://apis.io/apis/porkbun-com/porkbun-com-closeouts-api/)
- [Porkbun Cloudflare API](https://apis.io/apis/porkbun-com/porkbun-com-cloudflare-api/)
- [Porkbun DNS API](https://apis.io/apis/porkbun-com/porkbun-com-dns-api/)
- [Porkbun Domain API](https://apis.io/apis/porkbun-com/porkbun-com-domain-api/)
- [Porkbun Email API](https://apis.io/apis/porkbun-com/porkbun-com-email-api/)
- [Porkbun Link in Bio API](https://apis.io/apis/porkbun-com/porkbun-com-link-in-bio-api/)
- [Porkbun Marketplace API](https://apis.io/apis/porkbun-com/porkbun-com-marketplace-api/)
- [Porkbun Mock API](https://apis.io/apis/porkbun-com/porkbun-com-mock-api/)

## Tags

Hosting

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/porkbun-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/porkbun-com/porkbun-com-hosting-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/porkbun-com/.
