Skip to main content
The stripe pack takes a single API key. There’s no app to register and no consent screen, and the key is waiting in the Dashboard as soon as you have an account. It takes about a minute. Every Stripe link below opens in a new tab, so this page stays where you left it.
1

Open the API keys

In the Stripe Dashboard, open Developers at the bottom of the sidebar, then API keys. Or go straight to dashboard.stripe.com/apikeys.
The Stripe Dashboard with the Developers menu open, listing Overview, Webhooks, Events, Logs, documentation links, then API keys, Created apps and Developer settings.
Check the account picker at the top left before you copy anything: keys belong to the account and the mode you’re in.
2

Copy the secret key

Under Standard keys, reveal the Secret key and copy it. The Publishable key is meant for a browser and can’t read anything an agent needs.
The API keys tab: a Standard keys table with a publishable key and a secret key (both hidden), and below it a Restricted keys section with a Create restricted key button.
Start with sk_test_…, from a sandbox or test mode, which moves no money. The pack reads the variable on its next call, and the key doesn’t expire.
3

Prefer a restricted key

A secret key can do anything the account can, refunds included. For an agent, click Create restricted key on the same page and grant only what its tools touch, for example Read on customers, charges and invoices for an agent that answers questions. The key begins rk_ and goes in the same variable:
A tool that needs a permission you left off answers with a 403 that names the permission.
4

Verify

verify_stripe.py
Up to three customers, newest first. An empty list on a new test account is still a pass: it proves the key was accepted.

Your users’ accounts

Users connect their own Stripe accounts either by pasting a restricted key they create, or by installing a Stripe App you publish. Both are covered in the Stripe provider page, and Register a Stripe App builds the app.
  • Stripe — the pack, form encoding, idempotency and Connect
  • Register a Stripe App — the app your users install, and how to test it
  • Every pack — what the other packs need, in one table