Skip to content
Sign in
An image of the Stripe logo
/
Create account
Sign in
Home
Payments
Finance automation
Banking as a service
Developer tools
No-code
All products
Home
Payments
Finance automation
Home
Payments
Finance automation
Banking as a service
Developer tools

API authentication methods

Select the API authentication method that works best for your app's use case.

Your app can use one of three methods to authenticate requests to the Stripe API on behalf of your users.

Method DescriptionUse cases
Platform key DefaultYour account’s secret API key makes requests to the Stripe API on behalf of your user’s account.
  • You want to manage fewer keys per install.
  • Beta You want to distribute your app through Connect platforms.
OAuth 2.0Use industry standard OAuth 2.0 to generate access tokens to interact with the Stripe API. Initialize the Stripe SDK with the access token for the account you’re operating on behalf of.
  • You already use OAuth to interact with other systems.
  • Users need to manage the integration from your software.
Restricted API keyWhen a user installs your app, Stripe generates a permissioned, restricted API key that users need to copy and paste into your software to interact with Stripe.
  • Your software can’t support platform or OAuth onboarding.
  • Your users run your software on-premise.

Configure

To configure the API authentication method, edit stripe_api_access_type in the app manifest. For setup instructions, refer to the pages linked in the table above.

stripe-app.json
{ "id": "com.example.app", "version": "0.0.1", "name": "Your Stripe App", "distribution_type": "public", "permissions": [], "stripe_api_access_type": "platform" | "oauth" | "restricted_api_key", }

See also

  • Set up OAuth 2.0
  • Set up restricted access key authentication
Was this page helpful?
Need help? Contact Support.
Watch our developer tutorials.
Check out our product changelog.
Questions? Contact Sales.
Powered by Markdoc
You can unsubscribe at any time. Read our privacy policy.
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g., )
The Stripe Shell is best experienced on desktop.
$