Your API keys
The three keys, what each is for, and how to replace one.
All keys are on API keys in your dashboard.
| Key | Starts with | Used for |
|---|---|---|
| Secret key | sk_live_ | Creating and reading payments, refunds, balances. This is the key plugins ask for. |
| Test key | sk_test_ | Test mode only. Never moves real money. |
| Withdrawal key | wk_live_ | Moving money out: payouts, transfers, payout links. Create it only if your code needs it. |
Your account ID on the same page is not a secret. It identifies your account, for example to receive a transfer.
Keep them safe
- Keys belong on your server. Never put one in a web page, an app or a public repository.
- Don't send a key in a support ticket or chat. We never need it.
- Keep the withdrawal key apart from the secret key, and switch on only saved addresses if you automate payouts.
Replace a key
Press Regenerate next to it. The old key stops working at once, so update your shop or code straight after. Do this immediately if a key may have been seen by someone else.
"Unauthorized" errors
Check that the whole key was pasted without spaces, that it is the right kind for the request, and that it belongs to the account you are looking at if you have several.
Was this article helpful?
Sorry about that. What was wrong?
Thanks for telling us. It helps us improve these articles.