Creating a Read-Only Stripe API Token

Creating a read-only API token in Stripe allows you to safely share access to certain parts of your Stripe data without granting full access. Here’s a step-by-step guide to help you create a read-only API token:

Step 1: Log in to Your Stripe Account

Open your web browser and go to the Stripe login page. Enter your email and password to log in to your Stripe account.

Step 2: Navigate to API Keys

Once logged in, go to the Developers section from the left-hand menu. Under Developers, click on API keys.

Step 3: Create a Restricted Key

On the API keys page, you’ll see your Standard API keys. Scroll down to the Restricted keys section. Click the button.

Step 4: Configure the Restricted Key

A form will appear where you can configure the permissions for this key. Name your key something descriptive, like Read-Only Key.

Step 5: Set Read-Only Permissions

Scroll through the list of permissions and set the permissions you need to Read only.

For example, to allow read-only access to balance information, toggle the permission for Balance to Read.

Repeat this for other resources you want to grant read-only access to, such as Charges, Customers, Payouts, etc.

Step 6: Create the Key

After setting the necessary permissions to read-only, click the button at the bottom of the form.

Step 7: Copy the API Key

Once the key is created, it will appear in the Restricted keys section. Click on the key to reveal its value. Copy this key and use it in your application to access Stripe’s data with the permissions you have configured.