Paddle API keys are created in the Paddle dashboard under Authentication on the API keys tab, with pdl_live_apikey_ for live and pdl_sdbx_apikey_ for sandbox. Each key carries permissions, shows once, and expires after 90 days by default (one year maximum).
Paddle key types
| Type | Prefix | Secret? | Scope | Expiry |
|---|---|---|---|---|
| API key Keys are 69 characters and case-sensitive. Keys created before May 6, 2025 are 50-character legacy keys without permissions or secret scanning. | pdl_live_apikey_ / pdl_sdbx_apikey_ | Yes | Only the permissions you grant when creating it | 90 days by default, up to one year |
| Client-side token Safe to publish in app code. | — | No | Paddle.js only; can open checkouts and preview prices and transactions | — |
How to create a Paddle key
- Sign in to the Paddle dashboard (use the sandbox dashboard for sandbox keys).
- Go to Paddle → My account → Settings → Authentication (the docs describe this location; verify in your dashboard).
- On the API keys tab, create a key, choose its permissions and expiry.
- Copy the key; it is shown only once.
Limiting what the key can do
Grant only the permissions the integration needs. A request lacking a required permission returns a forbidden error (403).
How to rotate a Paddle key
- Create a new key with the required permissions.
- Deploy it to your application.
- Revoke the old key.
Expired keys cannot be revalidated; create a new one.
How to revoke a Paddle key
- Open the API keys tab in Authentication and revoke the key.
If your Paddle key leaked
- Revoke the exposed key and create a replacement.
- Subscribe to the
api_key_exposure.createdandapi_key.revokedwebhooks. - Paddle scans public GitHub repositories and automatically revokes high-risk exposed keys.
Things that catch people out
- Keys are shown once; if lost, revoke and create a new one.
- Default expiry is 90 days, so scheduled integrations break unless keys are rotated.
- Live and sandbox keys use different prefixes and different accounts.
Common Paddle authentication errors
authentication_missing
The request has no API key.
authentication_malformed
The key is not in the expected format.
forbidden
The key lacks the permission needed for the request (HTTP 403).
Using your Paddle key with AI agents
A coding agent that can read your .env file or your shell history can read the key, and anything in its context can end up in logs, transcripts or a prompt-injected request. The safer pattern is to keep the key in a credential broker that performs the authenticated step for the agent and hands back only the result.
BotPassword works this way. For a Paddle key, these intents fit:
| Intent | What BotPassword does |
|---|---|
run_with | Runs a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output. |
http_request | Makes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused. |
rotate | Partly built: creates a new key, stores it as pending, verifies it, promotes it, then revokes the old key after a grace period. Today it works for Cloudflare tokens and AWS IAM keys you have set up, and an agent can start it only under a grant with autopilot; other providers cannot be rotated through their API yet. |
store_secret | Saves a value the agent already holds as a new vault item. |
Set it up in your agent: Aider · Amp · Claude Code · Claude Desktop · Cline · OpenAI Codex CLI · all agents
Frequently asked questions
Where do I find my Paddle API key?
In the Paddle dashboard under Authentication on the API keys tab. The key is only shown when created.
How long do Paddle API keys last?
90 days by default and one year at most. Expired keys cannot be revalidated.
What does a Paddle API key look like?
Live keys start with pdl_live_apikey_ and sandbox keys with pdl_sdbx_apikey_.
Can an AI agent use my Paddle key without seeing it?
Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a .env file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with run_with, http_request, store_secret, so the agent gets the result and never the value.