Payments and finance

Paddle API keys: find, store, rotate, and use them safely with AI agents

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

TypePrefixSecret?ScopeExpiry
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_YesOnly the permissions you grant when creating it90 days by default, up to one year
Client-side token
Safe to publish in app code.
—NoPaddle.js only; can open checkouts and preview prices and transactions—

How to create a Paddle key

  1. Sign in to the Paddle dashboard (use the sandbox dashboard for sandbox keys).
  2. Go to Paddle → My account → Settings → Authentication (the docs describe this location; verify in your dashboard).
  3. On the API keys tab, create a key, choose its permissions and expiry.
  4. 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

  1. Create a new key with the required permissions.
  2. Deploy it to your application.
  3. Revoke the old key.

Expired keys cannot be revalidated; create a new one.

How to revoke a Paddle key

  1. Open the API keys tab in Authentication and revoke the key.

If your Paddle key leaked

  1. Revoke the exposed key and create a replacement.
  2. Subscribe to the api_key_exposure.created and api_key.revoked webhooks.
  3. 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:

IntentWhat BotPassword does
run_withRuns 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_requestMakes 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.
rotatePartly 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_secretSaves 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.

Stop pasting Paddle keys into agents

BotPassword is in early access. Request an invite and we'll email you when your spot opens.