Request API Key
request_api_keyStart creating a new LIVE Porkbun API key that the account holder approves in their browser (no credentials needed to call this). Returns authUrl: give it to the user to open, sign in and approve.
Instructions
Start creating a new LIVE Porkbun API key that the account holder approves in their browser (no credentials needed to call this). Returns authUrl: give it to the user to open, sign in and approve. Then call retrieve_api_key with the requestToken and codeVerifier from this result to receive the new key pair, once. Ask for only the permissions the work needs with scopes (any of read, dns, domains, email, hosting, purchase, funding, account; read is always included): for example ["dns"] for DNS work, or everything except purchase and funding to manage without buying. Leave scopes out only if the key must buy. The user sees the requested permissions on the approval page and may grant less, never more, so check ping on the new key. The link is valid for 30 minutes. For a throwaway test key with fake credit, use create_sandbox_key instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name the user will recognise on the approval page and in their key list, e.g. `Claude Code - mcp testing`. | |
| scopes | No | Permissions for the key. Omit for full access (including buying). |