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

Source: https://botpassword.com/keys/paddle
Last checked: 2026-10-25

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).

## Key types

| Type | Prefix | Secret | Scope | Expiry |
|---|---|---|---|---|
| API key | `pdl_live_apikey_` | Yes | Only the permissions you grant when creating it | 90 days by default, up to one year |
| Client-side token | — | No | Paddle.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.

## How to revoke a Paddle key

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

## If the 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.

## Gotchas

- 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.

## Using this key with AI agents (BotPassword)

- `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.

## FAQ

### 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.

## Sources

- https://developer.paddle.com/api-reference/about/authentication
