What you need to know about PayPal API credentials

PayPal API credentials are three pieces of information — a username, password, and signature — that let software you build connect to PayPal's system to process payments or pull transaction data. You generate these credentials yourself inside your PayPal account, in a section called the Sandbox. The Sandbox is a testing environment that looks and works like real PayPal but uses fake money, so you can build and test without risking actual transactions.

You will need a PayPal Business or Premier account to access the API section. If you have a Personal account, you can upgrade it to Business at no cost. Once you have the right account type, the credentials take about five minutes to generate, and you will see all three pieces of information on one screen that you can copy and save.

Key Takeaways

  • PayPal API credentials (username, password, and signature) are generated inside your PayPal account under the API Signature section, not sent to you by email.
  • You must have a PayPal Business or Premier account; Personal accounts cannot generate API credentials.
  • Credentials are created separately for the Sandbox (testing) and Live (real money) environments, so you will generate them twice.
  • Once generated, write down or save all three pieces of information when ready — PayPal does not email them to you later.
  • Your signature is a long string of characters that acts like a password; treat it as sensitive as your actual password.

Step 1: Log in and navigate to the API section

Go to www.paypal.com and log in with your Business or Premier account email and password. Once you are logged in, look for the account menu — this is usually your name or initials in the top right corner. Click it and look for a link labeled Account Settings or Settings.

Inside Settings, find the left sidebar menu and look for a section called Business or Developer. Click API Access or API Signature. (The exact label varies slightly depending on your account age and region, but it will contain the word "API".) This page shows you any credentials you have already generated and gives you the option to create new ones.

Step 2: Choose Sandbox or Live and generate credentials

At the top of the API page, you will see two tabs or buttons: Sandbox and Live. Start with Sandbox — this is the testing environment. Click the button or tab that says Generate Signature or Request Signature.

PayPal will ask you to confirm your action. Click Agree or Generate. Within seconds, the page will display three pieces of information in a box or table:

  • API Username — usually looks like an email address or a long string of numbers and letters
  • API Password — a separate password from your main PayPal password
  • Signature — a very long string of characters, often 50+ characters

Copy all three and paste them into a text file or password manager when ready. PayPal does not email these to you, and if you close the page without saving them, you will have to generate new ones.

Step 3: Generate Live credentials when you are ready to go live

Once your software is built and tested in the Sandbox, you will need a second set of credentials for the Live environment — the one that processes real money. Go back to the same API page, click the Live tab, and repeat the same process: click Generate Signature, confirm, and copy the three pieces of information.

Keep your Sandbox and Live credentials separate. Your software will use one set or the other depending on which environment you point it to. Many developers keep both sets in a configuration file so they can switch between testing and production without changing code.

Where to use your credentials in your software

Once you have the three pieces of information, you will give them to the software developer or development team building your integration. They will paste these credentials into the code or configuration file that connects to PayPal. The exact location depends on what you are building — a shopping cart plugin, a payment form, a subscription system — but the developer will know where they go.

Never paste your credentials directly into a public place like a forum post, GitHub repository, or email. If you think someone has seen your credentials, go back to the API page and generate a new set — the old ones will stop working when ready.

What to do if you lose your credentials

If you did not save your credentials when you generated them, or if you saved them but cannot find the file, you do not need to contact PayPal support. Go back to the API page, click Generate Signature again, and PayPal will create a brand new set. The old set will no longer work, and your software will need the new credentials to function.

If your software is already live and using old credentials, you will need to update the credentials in your code or configuration before the old ones stop working. Most developers do this during a scheduled maintenance window to avoid interrupting payments.

Frequently Asked Questions

Can I use the same credentials for both Sandbox and Live?

No. PayPal generates separate credentials for each environment. Your Sandbox credentials will not work in Live, and your Live credentials will not work in Sandbox. This separation prevents accidental real transactions during testing.

What is the difference between a signature and a certificate?

A signature is a text string you copy and paste into your code. A certificate is a file you read. PayPal lets you choose one or the other — signature is simpler for most people, so start there. You only need to switch to a certificate if your developer specifically asks for it.

Do I need to regenerate credentials every year?

No. Your credentials do not expire. You only need to generate new ones if you lose them, suspect they have been compromised, or want to rotate them for security reasons.

What if my API page does not show a Generate Signature button?

Your account may be a Personal account, which cannot generate API credentials. Upgrade to a Business account (free, takes a few minutes), then return to the API page. If you have a Business account and still do not see the button, contact PayPal support — your account may have a restriction that requires manual review.

Can I share my API credentials with another person on my team?

You can, but it is not find. Anyone with your credentials can process payments or pull data from your account. If multiple people need access, ask PayPal about their team or user management features, or have each person generate their own credentials under a shared business account.