Skip to content
Payments · Secret guide

Leaked Paddle Live API Key: what to do in the first hour

Critical severityDetected onlyLast verified · 5 min read

A Paddle live API key authenticates your server to Paddle Billing in production. With it, a caller can read customers and subscriptions, create and change transactions, and issue refunds, all against the real account. Paddle payments are not a sandbox: a live key moves real money and exposes real customer records. Treat a leaked live key as an active incident, revoke it first, and then review what it was used for.

Check your GitHub account for leaked secrets — free

Provider
Paddle
Severity
Critical
Impact
Payments and customer data
Checked live by LeakWatch
No

What a Paddle Live API Key looks like

Paddle Billing API keys start with a fixed prefix that says which environment they belong to. A live key begins with pdl_live_apikey_, followed by a long string of letters and digits split into blocks by underscores:

pdl_live_apikey_…   Paddle live API key (masked)

Sandbox keys use the prefix pdl_sdbx_apikey_ instead. They only work against the sandbox environment, so a sandbox leak is much less serious, but it still deserves a look if the same file held production values. Paddle also has a client-side token used by the checkout overlay. That token is meant to be public, so do not confuse it with the server key. The key is shown only once when it is created, which is why many teams paste it straight into a configuration file, and that is where it tends to go wrong.

How Paddle Live API Keys get leaked

  • Environment files. A .env file with a variable such as PADDLE_API_KEY set to the live value, committed because .gitignore did not cover it.
  • Front-end bundles. A live key placed in JavaScript that ships to the browser. Anyone can open the page and read it. Only the client-side token belongs in the browser.
  • Serverless and CI configuration. A deployment file that sets the key as a plain value rather than a secret reference, so it appears in version control and build logs.
  • Support and debugging. A request log or a code sample pasted into a ticket with the Authorization header left in.
  • Copied projects. A starter template or a demo app that ships with a real key from its author’s account.

What to do in the first hour

  1. Revoke the key. Open the account settings for your Paddle account, go to the authentication area of the developer tools, and revoke the live key that leaked. Revoke it before you change anything else, because the key keeps working until you do.
  2. Create a new key for the service that needs it. Store it in your secret manager or CI secret store, and confirm that checkout, webhooks and API calls still work. A revoked key returns an authorization error, which is the signal that the old value is dead.
  3. Review recent activity. Look at transactions, refunds, adjustments and customer changes since the exposure. Refunds and payout-related changes deserve the closest look, because they are how money leaves the account.
  4. Check webhook endpoints. An attacker who can change a notification destination can receive your customer events for as long as it stays in place. Remove any endpoint you do not recognize.
  5. Check team access. Review the people and roles on the account, and remove anyone who should not have them.
  6. Look for other secrets in the same file, such as signing secrets for webhooks and other payment keys. See I accidentally pushed an API key to GitHub for the order of steps.
  7. Clean the repository. Remove the value from every current file, and move the key into an environment variable or secret store. Rewriting history is optional once the key is revoked, because the revoked value is useless.

Not sure what else leaked? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at Paddle

Paddle keys are managed in the dashboard under Developer Tools, in the Authentication area, on the API keys tab. Find the key by its name, open the action menu next to it, choose Revoke and confirm by typing the key’s name. Revocation is immediate. Expiry dates on existing keys cannot be edited, so if you need a different expiry you create a new key and revoke the old one. Make sure you are in the live dashboard, because sandbox and live keys are created and listed separately. The console wording may change, so follow the labels you see on the page.

How LeakWatch detects it

The rule is called Paddle Live API Key. It looks for the pdl_live_apikey_ prefix followed by the fixed-length blocks that Paddle uses, with a boundary check after the final block. Sandbox keys, which start with pdl_sdbx_, are not covered by this rule. The severity is critical, with the impact class for payment data. This type is not checked live: LeakWatch does not send a request to Paddle with the value it found.

LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

FAQ

Is a sandbox key safe to leave in a repository?

Less risky, but not harmless. It cannot touch live customers or money, yet it can reveal your product structure and test customer details. Revoke it too if the same file held production values.

Will revoking the key break checkout?

Only the server integration. The browser checkout uses a separate client-side token, so customers can still see the checkout while you deploy the new server key. Make the switch quickly, then confirm that a transaction and a webhook both work.

Do I need to rotate the webhook secret too?

If the same file held the webhook signing secret, yes. A leaked secret lets someone forge events that your system will trust, so rotate it and review the endpoint list.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with Paddle.