Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.
Individual APIs this provider publishes, each with its own machine-readable definition.
Model Context Protocol servers that expose these APIs to AI agents.
Packaged agent skills for driving this provider's APIs from an AI assistant.
AsyncAPI definitions for this provider's event-driven and streaming APIs.
JSON-LD contexts and semantic vocabularies used across these APIs.
Spectral governance rulesets for linting and validating these APIs. Counts are the severity each rule declares, not results of running them.
Standalone JSON Schema definitions for this provider's data models.
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Recommended x-agentic-access execution contracts for AI agents.
aid: porkbun-com
name: Porkbun
accessModel:
pricing: unknown
onboarding: unknown
trial: false
try_now: false
public: false
label: Unknown
confidence: low
source:
- authentication
- security
generated: '2026-11-28'
method: derived
image: https://porkbun.com/images/porkbun-logo-1200x1200.png
description: Porkbun is a domain registrar and web services provider based in the United States. It offers domain registration,
transfers, web hosting, email services, SSL certificates, and a range of related tools. With over 4 million domains managed
for more than 750,000 customers, Porkbun emphasizes low prices, a clean user experience, and a commitment to privacy and
security. The company also provides an API for domain management and various developer resources.
url: https://artifacts.apis.io/porkbun-com/apis.yml
x-type: company
x-source: harvest:mcp-registry
x-tier: profiled
x-tier-reason: enrichment pass 2026-11-21 (modular-v1; was harvest)
specificationVersion: '0.20'
created: '2026-11-21'
modified: '2026-11-21'
tags:
- Company
- Domain Registrar
- Web Hosting
- DNS
- SSL
tags_raw:
- Company
- Domain Registrar
- Web Hosting
- DNS
- SSL
- API
maintainers:
- FN: Kin Lane
email: kin@apievangelist.com
- FN: APIs.json
email: info@apis.io
common:
- type: AgenticAccess
url: agentic-access/porkbun-com-agentic-access.yml
- type: Spectral
url: rules/porkbun-com-rules.yml
- type: JSONLD
url: json-ld/porkbun-com-context.jsonld
- type: Vocabulary
url: vocabulary/porkbun-com-vocabulary.yml
- type: AgentSkill
url: skills/_index.yml
- type: Webhooks
url: asyncapi/porkbun-com-webhooks.yml
- type: DataModel
url: data-model/porkbun-com-data-model.yml
- type: Idempotency
url: conventions/porkbun-com-conventions.yml
- type: Conventions
url: conventions/porkbun-com-conventions.yml
- type: Authentication
url: authentication/porkbun-com-authentication.yml
- type: ErrorCatalog
url: errors/porkbun-com-problem-types.yml
- type: Conformance
url: conformance/porkbun-com-conformance.yml
- type: LLMsTxt
url: llms/porkbun-com-llms.txt
- type: MCPServer
url: mcp/porkbun-com-mcp.yml
- type: SecurityTxt
url: well-known/porkbun-com-security.txt
- type: WellKnown
url: well-known/porkbun-com-well-known.yml
- type: Hosts
url: hosts/porkbun-com-hosts.yml
- type: Webhooks
url: https://porkbun.com/llms/webhooks
- type: Support
url: https://porkbun.com/tld/help
- type: StatusPage
url: https://status.porkbun.com/
- type: Security
url: https://porkbun.com/security
- type: Sandbox
url: https://porkbun.com/llms/sandbox
- type: PrivacyPolicy
url: https://porkbun.com/legal/agreement/privacy_policy
- type: Pricing
url: https://porkbun.com/llms/pricing
- type: Newsroom
url: https://porkbun.com/tld/news
- type: Leadership
url: https://porkbun.com/tld/team
- type: GitHubOrganization
url: https://github.com/porkbundomains/
- type: Documentation
url: https://porkbun.com/llms/guides
- type: Blog
url: https://blog.porkbun.com
- type: GettingStarted
url: https://porkbun.com/llms/agent-setup
- type: VulnerabilityDisclosure
url: security/porkbun-com-vulnerability-disclosure.yml
- type: DomainSecurity
url: security/porkbun-com-domain-security.yml
- type: Website
url: https://porkbun.com/
apis:
- aid: porkbun-com:porkbun-com-account-api
name: Porkbun Account API
description: Account credit balance, API spend controls, and onboarding
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Account
properties:
- type: OpenAPI
url: openapi/porkbun-com-account-api-openapi.yml
- aid: porkbun-com:porkbun-com-aftermarket-api
name: Porkbun Aftermarket API
description: 'Registered domains that are for sale: partner aftermarkets (Afternic, Sedo, Atom, NameBright, DAX), Porkbun
Marketplace and DAX auctions, in one search. Read-only; buying happens on porkbun.com through each listing''s buyUrl.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Aftermarket
properties:
- type: OpenAPI
url: openapi/porkbun-com-aftermarket-api-openapi.yml
- aid: porkbun-com:porkbun-com-agent-naming-ans-api
name: Porkbun Agent Naming (ANS) API
description: '**Experimental.** ANS is an emerging standard (a Linux Foundation project; normative specs ANS-0..ANS-6 at
https://github.com/agentnameservice/ans-spec, still drafts), and Porkbun''s registry, transparency log and directory are
new: endpoints, fields, record formats and behaviour may change, registrations may need to be redone if the standard changes,
and there is no uptime commitment yet. Tell the user before they depend on it.
Give an AI agent a verifiable name with the Agent Name Service (ANS): `ans://v1.0.0.myagent.example.com`, an identity
certificate, DNS discovery records, and a public entry in Porkbun''s KMS-signed transparency log (https://tl.ans.porkbun.com).
Free.
• **Register:** `/ans/register` with the endpoint URL and an identity CSR (you keep the key), then `/ans/advance/{agentId}`
until `ACTIVE`. DNS is set up for you on Porkbun nameservers, using DNS-AID SVCB discovery records (the spec default);
with DNS hosted elsewhere you get a `_ans` TXT record to add instead.
• **Trust:** `/ans/check/{agentId}` (or the public `/ans/verifyHost/{host}`) runs the independent check: a PASS/FAIL verdict
plus identity, liveness and possession proofs; `/ans/enableDnssec/{agentId}` signs the zone so DANE applies.
• **Find agents:** `/ans/search`, the same directory as https://porkbun.com/agents.
• **Retire:** `/ans/revoke/{agentId}` (permanent, public).
Guide: https://porkbun.com/llms/guides/agent-naming'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Agent Naming (ANS)
properties:
- type: OpenAPI
url: openapi/porkbun-com-agent-naming-ans-api-openapi.yml
- type: JSONSchema
url: json-schema/porkbun-com-ans-verify-host-response-schema.json
- aid: porkbun-com:porkbun-com-api-key-management-api
name: Porkbun API Key Management API
description: 'Request API keys programmatically (`/apikey/request` + `/apikey/retrieve`, approved by the account holder
in the browser), and revoke the key making a call (`/apikey/revoke`).
**Site sharing:** let someone else, and their AI agent, run one domain''s website without the account. `/apikey/share`
asks (the account holder approves on porkbun.com and gets a link, QR code, share code and handoff prompt); the other person''s
agent calls `/apikey/claim` once, or they enter the share code when connecting the Claude app or ChatGPT; `/apikey/shares`
and `/apikey/revokeShare` manage them. The key it makes has the `site` permission alone, limited to that domain. Guide:
https://porkbun.com/llms/guides/share-site-access Listing, editing and revoking other keys is done on the website (https://porkbun.com/account/api).'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- API Key Management
properties:
- type: OpenAPI
url: openapi/porkbun-com-api-key-management-api-openapi.yml
- aid: porkbun-com:porkbun-com-closeouts-api
name: Porkbun Closeouts API
description: '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.
The price descends on a schedule, so a listing is often gone within minutes; treat a search result as perishable and re-check
the price before buying.
Search returns `age` and `registrationDate` on every row and both are sortable, which is the part the website cannot do
— it paginates by price tier and does not show registration date at all.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Closeouts
properties:
- type: OpenAPI
url: openapi/porkbun-com-closeouts-api-openapi.yml
- aid: porkbun-com:porkbun-com-cloudflare-api
name: Porkbun Cloudflare API
description: '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.
Two stages, and the first one needs a human:
1. **Connect the Cloudflare account (browser, one time).** Cloudflare''s consent screen cannot be completed over the API.
Send the account owner to `https://porkbun.com/account/connectCloudflare`, then poll `GET /cloudflare/getConnection` until
`connected` is `true`.
2. **Move domains (API).** `GET /cloudflare/inventory` to see what''s eligible, `POST /cloudflare/connect` to queue, then
poll `/cloudflare/getQueue`. `POST /cloudflare/rollback/{domain}` undoes a move; `POST /cloudflare/retry/{domain}` re-queues
a failure.
Queueing is asynchronous and per-domain: a call returns *queued*, never *connected*, and `skipped` (DNSSEC live, custom
nameservers, already connected) is a normal outcome carrying a reason, not a failure.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Cloudflare
properties:
- type: OpenAPI
url: openapi/porkbun-com-cloudflare-api-openapi.yml
- aid: porkbun-com:porkbun-com-dns-api
name: Porkbun DNS API
description: The DNS API from Porkbun — 6 operation(s) for dns.
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- DNS
properties:
- type: OpenAPI
url: openapi/porkbun-com-dns-api-openapi.yml
- aid: porkbun-com:porkbun-com-domain-api
name: Porkbun Domain API
description: Domain availability (single or up to 25 at once), registration, nameservers, URL forwarding, glue records,
and auto-renewal
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Domain
properties:
- type: OpenAPI
url: openapi/porkbun-com-domain-api-openapi.yml
- type: JSONSchema
url: json-schema/porkbun-com-create-domain-request-schema.json
- type: JSONSchema
url: json-schema/porkbun-com-check-domain-response-schema.json
- type: JSONSchema
url: json-schema/porkbun-com-transfer-domain-request-schema.json
- type: JSONSchema
url: json-schema/porkbun-com-dry-run-preview-response-schema.json
- type: JSONSchema
url: json-schema/porkbun-com-list-all-request-schema.json
- aid: porkbun-com:porkbun-com-email-api
name: Porkbun Email API
description: 'Email forwarding (forward an address at the domain to another mailbox) and email hosting (mailboxes: buy,
set up, passwords)'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Email
properties:
- type: OpenAPI
url: openapi/porkbun-com-email-api-openapi.yml
- aid: porkbun-com:porkbun-com-hosting-api
name: Porkbun Hosting API
description: '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`.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Hosting
properties:
- type: OpenAPI
url: openapi/porkbun-com-hosting-api-openapi.yml
- aid: porkbun-com:porkbun-com-link-in-bio-api
name: Porkbun Link in Bio API
description: 'A Link in Bio page: a single page of links, served on the domain (or, for the free plan that comes with .com
registrations, forwarded to `<domain>.l.ink`). Edits made here show up immediately in the page and in the editor on porkbun.com.
• **Turn one on:** free with `/linkinbio/create` (50 links), or paid with `/hosting/create` and sku `PIXIELINKSM1` ($3/month)
or `PIXIELINKSY1` ($30/year) for 1000 links plus scheduling, animation, passcode protection and analytics IDs. Buying
a paid plan over a free page keeps its content. Cancelling a paid plan (`/hosting/delete`) takes the page down; its content
is archived (support can restore it), and `/linkinbio/create` starts a new free page from placeholder content. A free
page can''t be turned off through the API (`/hosting/delete` returns `NOT_SUPPORTED_FOR_PRODUCT`); to stop showing it,
point the domain somewhere else.
• **Edit it:** `get` returns everything with link ids; then `updateProfile`, `addLink`, `editLink`, `deleteLink`, `reorderLinks`,
`updateSocials`, `updateAppearance`, `updateSettings`. Reading needs the `read` permission, editing `hosting`.
Not available with sandbox keys.
**Site-share keys** (`/apikey/share`, permission `site`, one domain) can read and edit the page, but not turn one on (`/linkinbio/create`)
or buy or cancel a plan.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Link-in-bio
tags_raw:
- Link in Bio
properties:
- type: OpenAPI
url: openapi/porkbun-com-link-in-bio-api-openapi.yml
- aid: porkbun-com:porkbun-com-marketplace-api
name: Porkbun Marketplace API
description: Browse domains listed for sale on Porkbun Marketplace (names Porkbun customers list themselves). To search
every aftermarket at once (Afternic, Sedo, Atom, NameBright, DAX and Porkbun Marketplace), use `GET /aftermarket/search`.
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Marketplace
properties:
- type: OpenAPI
url: openapi/porkbun-com-marketplace-api-openapi.yml
- aid: porkbun-com:porkbun-com-mock-api
name: Porkbun Mock API
description: Credential-free mock server returning schema-accurate example responses for any endpoint.
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Mock
properties:
- type: OpenAPI
url: openapi/porkbun-com-mock-api-openapi.yml
- aid: porkbun-com:porkbun-com-porkbun-dns-api
name: Porkbun Porkbun DNS API
description: 'Create, read, update and delete DNS records in **Porkbun''s** nameservers, including DNSSEC.
These endpoints manage the zone Porkbun serves. If a domain has been moved to a customer''s own Cloudflare account (see
the **Cloudflare** section), Cloudflare''s nameservers answer for it instead — writes here still succeed and are kept
in step in case the move is rolled back, but they do not change what resolves, and every response says so in `warnings`.
Manage those domains with `/cloudflare/getRecords`, `/cloudflare/createRecord`, `/cloudflare/editRecord` and `/cloudflare/deleteRecord`.
The same is true, more bluntly, of a domain delegated to any other DNS provider: we hold a zone for every domain in the
account, so a write always succeeds locally. Whenever the nameservers answering for the domain are not ours, the write
response carries a `warnings` string saying so and naming them. Check `warnings` on every write; `GET /dns/preflight/{domain}`
reports the same thing (`nameservers-ours`) before you start.'
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Porkbun DNS
properties:
- type: OpenAPI
url: openapi/porkbun-com-porkbun-dns-api-openapi.yml
- aid: porkbun-com:porkbun-com-pricing-api
name: Porkbun Pricing API
description: Domain pricing across all supported TLDs — no authentication required
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Pricing
properties:
- type: OpenAPI
url: openapi/porkbun-com-pricing-api-openapi.yml
- aid: porkbun-com:porkbun-com-sandbox-api
name: Porkbun Sandbox API
description: Isolated sandbox/test environment (sandbox API keys, pk1_sb_…).
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Sandbox
properties:
- type: OpenAPI
url: openapi/porkbun-com-sandbox-api-openapi.yml
- aid: porkbun-com:porkbun-com-ssl-api
name: Porkbun SSL API
description: Retrieve free SSL certificate bundles for domains registered at Porkbun
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- SSL
properties:
- type: OpenAPI
url: openapi/porkbun-com-ssl-api-openapi.yml
- aid: porkbun-com:porkbun-com-utility-api
name: Porkbun Utility API
description: IP detection and credential verification
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Utility
properties:
- type: OpenAPI
url: openapi/porkbun-com-utility-api-openapi.yml
- aid: porkbun-com:porkbun-com-webhooks-api
name: Porkbun Webhooks API
description: "Subscribe HTTPS endpoints to account events and Porkbun will `POST` a signed JSON payload to them as those\
\ events happen — no polling required. Manage endpoints with the **Webhooks** endpoints in this reference, the MCP tools\
\ (`create_webhook`, `list_webhooks`, …), or the web UI at `porkbun.com/account/api`.\n\n**Event types:** `domain.registered`,\
\ `domain.renewed`, `domain.transfer.completed`, `domain.transfer.failed` (an inbound transfer was rejected, the auth\
\ code was refused, or the domain is locked), `domain.expiring` (fires at 60/30/5 days before expiry), `dns.record.created`,\
\ `dns.record.updated`, `dns.record.deleted`, `account.verification.code_sent`, `account.verification.completed`, `cloudflare.connect.completed`,\
\ `cloudflare.connect.failed` (a Cloudflare move reached a terminal state — `status` in the payload distinguishes `done`\
\ from `skipped`/`failed`, so you can stop polling `/cloudflare/getQueue`). Subscribe to specific types, to a prefix wildcard\
\ like `dns.*`, or to `*` for everything (recommended — you'll receive new event types automatically). Call `GET /webhook/eventTypes`\
\ for the live catalog.\n\n**Payload envelope** — every delivery has the same outer shape:\n\n```json\n{\n \"event\"\
: \"domain.registered\",\n \"id\": \"018f9c2a-7b3e-7c41-9b8a-2f1e6d4c5a90\",\n \"createdAt\": \"2026-06-17T18:30:00Z\"\
,\n \"data\": { \"domain\": \"example.com\", \"tld\": \"com\", \"expireDate\": \"2027-06-17 18:30:00\" }\n}\n```\n\n\
`id` is a UUIDv7 (time-ordered) and is also sent as the `X-Porkbun-Webhook-Id` header; use it to dedupe, since an endpoint\
\ may occasionally receive the same event more than once. `createdAt` is UTC (ISO 8601). The `data` object is event-specific;\
\ its fields are listed below.\n\n**What each event sends in `data`.** Dates inside `data` are UTC, formatted `YYYY-MM-DD\
\ HH:MM:SS`. Fields may be added over time, so ignore ones you don't recognise. No event carries contact details, auth\
\ codes, keys or other secrets.\n\n| Event | When it fires | `data` fields |\n|---|---|---|\n| `domain.registered` | A\
\ registration completes | `domain`, `tld`, `expireDate` |\n| `domain.renewed` | A renewal completes (manual, API or auto-renew)\
\ | `domain`, `tld`, `expireDate` (the new expiry) |\n| `domain.transfer.completed` | An inbound transfer finishes and\
\ the domain is in the account | `domain`, `tld` |\n| `domain.transfer.failed` | An inbound transfer did not go through:\
\ rejected by the losing registrar or registrant, auth code refused, or domain locked | `domain`, `tld`, `reason` (`rejected`,\
\ `gave_up`, `invalid_auth_code`, `domain_locked`), `willRetry` (Porkbun resubmits on its own), `submitAttempts` |\n|\
\ `domain.expiring` | 60, 30 and 5 days before expiry | `domain`, `tld`, `daysToExpire` (number: 60, 30 or 5), `expireDate`\
\ |\n| `dns.record.created` | A record is added (website, API, MCP, or a connected app) | `domain`, `name`, `id`, `type`,\
\ `content`, `ttl`, `prio` |\n| `dns.record.updated` | A record is changed | `domain`, `name`, `id`, `type`, `content`,\
\ `ttl`, `prio` (the values after the change) |\n| `dns.record.deleted` | A record is removed | `domain`, `name`, `id`,\
\ `type`, `content` (the values it had) |\n| `cloudflare.connect.completed` | A move to Cloudflare finished | `domain`,\
\ `status` (`done`), `message`, `cfAccountId`, `zoneId`, `previousNameservers`, `assignedNameservers`, `completedAt` |\n\
| `cloudflare.connect.failed` | A move to Cloudflare stopped without finishing | Same fields as completed; `status` is\
\ `failed` or `skipped`, `message` says why, `zoneId` may be `null` and the nameserver lists empty |\n| `account.verification.code_sent`\
\ | A verification code went to the account's email address or phone (from the website or the API) | `channel` (`email`\
\ or `phone`), `method` (`email`, `sms` or `call`), `sentTo` (masked), `expiresInMinutes` |\n| `account.verification.completed`\
\ | The account's email address or phone was verified (by link, website or API) | `channel`, `emailVerified`, `phoneVerified`\
\ (the account's state after this) |\n| `webhook.test` | You call `POST /webhook/test` | `endpointId` (number), `message`\
\ |\n\nField notes:\n\n- `domain` is the registered domain (`example.com`); `tld` is its extension without the dot (`com`).\n\
- DNS events: `name` is the full hostname (`www.example.com`, or `example.com` for the apex). `id`, `ttl` and `prio` are\
\ strings, the same as in `/dns/retrieve`, and `prio` is `null` for types that have none. Record changes made by Porkbun\
\ itself for certificate issuance (`_acme-challenge` names) are not sent.\n- Verification events never contain the code:\
\ it only proves the address or phone is real because it arrives there. `code_sent` tells an agent to ask the person for\
\ it; `completed` tells it to retry what failed with `VERIFICATION_REQUIRED` once both are `true`. Login codes are not\
\ sent.\n- Cloudflare events: `previousNameservers` and `assignedNameservers` are arrays of hostnames; `cfAccountId` and\
\ `zoneId` are Cloudflare's IDs.\n\nExamples:\n\n```json\n{\n \"event\": \"domain.expiring\",\n \"id\": \"018f9c2a-7b3e-7c41-9b8a-2f1e6d4c5a91\"\
,\n \"createdAt\": \"2026-06-17T09:00:00Z\",\n \"data\": { \"domain\": \"example.com\", \"tld\": \"com\", \"daysToExpire\"\
: 30, \"expireDate\": \"2026-07-17 18:30:00\"\n} }\n```\n\n```json\n{\n \"event\": \"dns.record.updated\",\n \"id\"\
: \"018f9c2a-7b3e-7c41-9b8a-2f1e6d4c5a92\",\n \"createdAt\": \"2026-06-17T18:31:05Z\",\n \"data\": { \"domain\": \"\
example.com\", \"name\": \"www.example.com\", \"id\": \"123456789\", \"type\": \"A\", \"content\":\n\"192.0.2.1\", \"\
ttl\": \"600\", \"prio\": null } }\n```\n\n```json\n{\n \"event\": \"cloudflare.connect.completed\",\n \"id\": \"018f9c2a-7b3e-7c41-9b8a-2f1e6d4c5a93\"\
,\n \"createdAt\": \"2026-06-17T19:02:11Z\",\n \"data\": {\n \"domain\": \"example.com\", \"status\": \"done\", \"\
message\": \"Connected to Cloudflare.\",\n \"cfAccountId\": \"0123456789abcdef0123456789abcdef\", \"zoneId\": \"fedcba9876543210fedcba9876543210\"\
,\n \"previousNameservers\": [\"curitiba.ns.porkbun.com\", \"fortaleza.ns.porkbun.com\"],\n \"assignedNameservers\"\
: [\"anna.ns.cloudflare.com\", \"lee.ns.cloudflare.com\"],\n \"completedAt\": \"2026-06-17 19:02:10\"\n }\n}\n```\n\
\nTo see any event's exact payload against your own handler, use a sandbox key and `POST /sandbox/triggerWebhook` with\
\ `{\"eventType\": \"...\", \"domain\": \"example.com\"}`; `GET /webhook/delivery/{id}` shows the full payload of any\
\ past delivery.\n\n**Delivery headers:**\n\n- `X-Porkbun-Event` — the event type (e.g. `domain.renewed`).\n- `X-Porkbun-Webhook-Id`\
\ — the event UUID (matches `id` in the body).\n- `X-Porkbun-Webhook-Timestamp` — Unix seconds when the request was signed.\n\
- `X-Porkbun-Signature` — `sha256=` + the signature (see below).\n\n**Verify the signature.** The signature is `HMAC-SHA256(secret,\
\ \"{timestamp}.{rawBody}\")` where `secret` is the endpoint's signing secret, `{timestamp}` is the `X-Porkbun-Webhook-Timestamp`\
\ header value, and `{rawBody}` is the exact bytes of the request body (verify before parsing). Compare using a constant-time\
\ equality check, and reject timestamps that are too old (e.g. >5 minutes) to blunt replay attacks.\n\n```php\n$timestamp\
\ = $_SERVER['HTTP_X_PORKBUN_WEBHOOK_TIMESTAMP'];\n$signature = $_SERVER['HTTP_X_PORKBUN_SIGNATURE']; // \"sha256=...\"\
\n$body = file_get_contents('php://input');\n$expected = 'sha256=' . hash_hmac('sha256', $timestamp . '.' . $body,\
\ $endpointSecret);\nif (!hash_equals($expected, $signature) || abs(time() - (int)$timestamp) > 300) {\n http_response_code(400);\
\ exit;\n}\n// signature OK — now json_decode($body) and process\n```\n\n```javascript\nimport crypto from 'node:crypto';\n\
const ts = req.header('X-Porkbun-Webhook-Timestamp');\nconst sig = req.header('X-Porkbun-Signature');\nconst expected\
\ = 'sha256=' + crypto.createHmac('sha256', endpointSecret)\n .update(`${ts}.${rawBody}`).digest('hex');\nconst ok =\
\ crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig))\n && Math.abs(Date.now()/1000 - Number(ts)) < 300;\n\
```\n\n**Delivery log & manual resend.** Every attempt is recorded — list recent deliveries with `GET /webhook/deliveries`\
\ (filter by `endpointId` or `status`, newest first) and fetch one with its full payload via `GET /webhook/delivery/{id}`.\
\ History is retained ~30 days. To replay a delivery (e.g. after fixing a bug on your side), call `POST /webhook/resend`\
\ with the delivery `id`; it re-queues a fresh attempt reusing the **original event id**, so a consumer that dedupes on\
\ `X-Porkbun-Webhook-Id` treats it as the same event. The target endpoint must still exist and be ACTIVE.\n\n**Responding\
\ & retries.** Return any `2xx` status to acknowledge. Non-2xx responses, timeouts, or connection errors are retried with\
\ exponential backoff (~1m, 5m, 30m, 2h, 6h) up to 6 attempts. An endpoint that racks up 20 consecutive failures is automatically\
\ disabled and the account owner emailed; re-enable it (which resets the failure counter) via `POST /webhook/update` with\
\ `status: \"ACTIVE\"`. Use `POST /webhook/test` to send a `webhook.test` event and confirm your verifier works end-to-end."
humanURL: https://porkbun.com/api/json/v3/documentation
baseURL: https://api.porkbun.com/api/json/v3
tags:
- Webhook
tags_raw:
- Webhooks
properties:
- type: OpenAPI
url: openapi/porkbun-com-webhooks-api-openapi.yml
x-enrichment:
date: '2026-11-21'
status: enriched
artifacts_added: 32
pass: modular-v1
engine: identity=local,contract=local,surfaces=local,docs=local,regulatory=local
Every provider here is available over the APIs.io API and to AI agents over MCP.