CountDeckJoin the waitlist
Takes about 2 minutes · Updated October 26, 2026

How to create a read-only Stripe restricted key

A Stripe restricted key is an API key that can only do what you allow, so a key set to Read can show your revenue but can never charge, refund or pay out. Create one in Stripe under Developers → API keys → Create restricted key, set the permissions you need to Read and leave the rest on None.

Step by step

  1. Sign in to the Stripe Dashboard and make sure you are in live mode (the Test mode switch is off).
  2. Open Developers → API keys.
  3. Under Restricted keys, click "Create restricted key" and give it a name you will recognise, such as "CountDeck".
  4. Set only the permissions below to Read. Leave every other permission on None.
  5. Click Create key. Stripe may ask for two-step verification, then shows the key once: it starts with rk_live_.
  6. Copy it and paste it into the app. Never paste your secret key (sk_live_).
Join the waitlist

Which permissions to set to Read

PermissionWhat CountDeck shows with it
ChargesRevenue, Latest sales
CustomersNew customers
InvoicesRevenue
SubscriptionsMRR, Active subscriptions, Churn (30 days)
Products and pricesMRR
EventsLatest sales
Everything else stays on None. If a permission is missing, CountDeck still connects and tells you which number needs it. Stripe’s own reference: Create a restricted API key.

What CountDeck does with the key

Questions

Is it safe to give an app a Stripe API key?

Give a restricted key with Read permissions only, never your secret key. A read-only key cannot move money or change anything, and you can delete it in Stripe at any time.

What is the difference between a secret key and a restricted key?

A secret key (sk_live_) can do everything on your account, including refunds and payouts. A restricted key (rk_live_) can only do what you set, permission by permission.

How do I revoke a restricted key?

In Stripe, open Developers → API keys, find the key under Restricted keys, and delete or roll it. Apps using it stop working right away.

Why does Stripe only show the key once?

For security. If you lose it, delete it and create a new one.

Can I use a test-mode key?

A test key (rk_test_) only sees test payments, so your numbers would be fake. Create the key in live mode.

Watch your number go up.

Free for one source. Read-only, and no account needed.

Join the waitlist