Stripe authenticates your API requests using your account’s API keys. If you don’t include your key when making an API request, or use one that is incorrect or outdated, Stripe returns an error.
Every account has two pairs of keys: one for testing and one for running live transactions. All API requests exist in either test or live mode, and objects—customers, prices, coupons, and so forth—in one mode can’t be manipulated by objects in the other.
Your API keys are always available in the Dashboard. For your convenience, your test API keys for your account are:
Stripe automatically populates code examples in our documentation with your test API keys while you’re logged in—only you can see these values.
Use only your test API keys for testing and development. This ensures that you don’t accidentally modify your live customers or charges.
If you can’t see your secret API keys in the Dashboard, this means you don’t have access to them. Contact your Stripe account’s owner and ask to be added to their team as a developer.