# Porkbun API v3 — v3.34 documentation

> Plain-Markdown, agent-readable docs for the Porkbun v3 API. Every page below is generated from the OpenAPI spec, so it never drifts. No JavaScript required.

## Topics

- [Auth](https://porkbun.com/llms/auth) (1) — Token-based authentication
- [Account](https://porkbun.com/llms/account) (4) — Account credit balance, API spend controls, and onboarding
- [Domain](https://porkbun.com/llms/domain) (31) — Domain availability (single or up to 25 at once), registration, nameservers, URL forwarding, glue records, and auto-renewal
- [Porkbun DNS](https://porkbun.com/llms/porkbun-dns) (15) — Create, read, update and delete DNS records in **Porkbun's** nameservers, including DNSSEC.
- [SSL](https://porkbun.com/llms/ssl) (2) — Retrieve free SSL certificate bundles for domains registered at Porkbun
- [Hosting](https://porkbun.com/llms/hosting) (11) — Two hosting products share these endpoints — pick one with the `sku` you pass to `/hosting/create`
- [Cloudflare](https://porkbun.com/llms/cloudflare) (17) — Move a customer's domains into **their own Cloudflare account**: we create the zone, copy across the DNS records we hold, and repoint the registry nameservers at Cloudflare.
- [Email Hosting](https://porkbun.com/llms/email-hosting) (1) — Email hosting password management
- [Closeouts](https://porkbun.com/llms/closeouts) (3) — Expired domains that did not sell at auction, offered at a fixed price with no bidding — first buyer at the current price takes the name.
- [Marketplace](https://porkbun.com/llms/marketplace) (2) — Browse domains listed for sale on the Porkbun marketplace
- [Pricing](https://porkbun.com/llms/pricing) (2) — Domain pricing across all supported TLDs — no authentication required
- [API Key Management](https://porkbun.com/llms/api-key-management) (2) — Request and retrieve API keys programmatically
- [Utility](https://porkbun.com/llms/utility) (4) — IP detection and credential verification
- [Webhooks](https://porkbun.com/llms/webhooks) (11) — Register HTTPS endpoints to receive signed, real-time event notifications. See the Webhooks section in the introduction for the payload envelope and signature-verification recipe.
- [Sandbox](https://porkbun.com/llms/sandbox) (3) — Isolated sandbox/test environment (sandbox API keys, pk1_sb_…).
- [Mock](https://porkbun.com/llms/mock) (2) — Credential-free mock server returning schema-accurate example responses for any endpoint.

## Guides (task-oriented how-tos)

- [Getting started: keys, auth, and your first call](https://porkbun.com/llms/guides/getting-started)
- [Register a domain end-to-end (dry-run + idempotency)](https://porkbun.com/llms/guides/register-a-domain)
- [Dynamic DNS: keep an A record on your current IP](https://porkbun.com/llms/guides/dynamic-dns)
- [Recover a broken DNS zone (restore points, diff, undo)](https://porkbun.com/llms/guides/recover-a-broken-zone)
- [Receive and verify webhooks](https://porkbun.com/llms/guides/verify-a-webhook)
- [Verify a user owns a domain (DomainAttest, no DNS records)](https://porkbun.com/llms/guides/verify-domain-ownership)
- [Onboard a user in a mobile/native app (get API keys via PKCE)](https://porkbun.com/llms/guides/onboard-a-mobile-app-user)
- [Provision a WordPress site and publish to it](https://porkbun.com/llms/guides/publish-to-wordpress)
- [Migrate domains from GoDaddy to Porkbun (beta)](https://porkbun.com/llms/guides/godaddy-migration)
- [Move domains to a customer's own Cloudflare account](https://porkbun.com/llms/guides/move-domains-to-cloudflare)

## Everything in one file

- Full Markdown reference: https://porkbun.com/llms-full.txt
- Short overview / index: https://porkbun.com/llms.txt
- OpenAPI 3.0 spec (JSON): https://porkbun.com/api/json/v3/spec

## More

- Guides (how-tos): https://porkbun.com/llms/guides
- Topic index: https://porkbun.com/llms
- Full reference (one file): https://porkbun.com/llms-full.txt
- OpenAPI spec (full schemas): https://porkbun.com/api/json/v3/spec
- Short overview: https://porkbun.com/llms.txt
- Official MCP server: https://porkbun.com/mcp (`npx -y @porkbunllc/mcp-server`)
- Create API keys: https://porkbun.com/account/api
