Connect Stripe with a restricted key
Stripe connects with a read-only restricted key. You create a live mode key that can read only what Biddle needs, then paste it into the Composio page that Biddle’s Home tab opens.
Before you start
On this page
Step 1: If you have an Organization, switch to the account first
If your Stripe is an Organization with several accounts, switch to the account (e.g. Sayo) first, using the account switcher at the top left. Keys made at the Organization level (
sk_org_…) won’t work. The key you need starts withrk_live_.1 Switch to the account the key is for, not the Organization. Step 2: Create a restricted key in live mode
In the Stripe Dashboard, go to Developers > API keys, make sure test mode is off, and click Create restricted key. When Stripe asks “Choose how you’ll use this key”, choose Sharing with a third-party service, then enter Biddle as the Name and
https://askbiddle.aias the URL. Check Customize permissions for this key and click Create restricted key to open the permission list.1 Make sure Test mode is off, 2 Create restricted key, 3 name it Biddle (read only). Step 3: Search eight endpoints and set them to Read
On “Select permissions”, type each endpoint into Search by resource or endpoint and set the resource that comes up to Read:
/v1/account,/v1/charges,/v1/refunds,/v1/invoices,/v1/invoice_payments,/v1/products,/v1/prices,/v1/subscriptions. Searching can show several rows. For/v1/account, set only Connect › Accounts to Read (Stripe’s Setup guide popup can hide it). Setting the Billing group row to Read covers Invoices, Prices and Subscriptions at once. Stripe pre-selects some permissions as Write for third parties (for example Products and Billing): before you create the key, scroll the whole list and make sure nothing is on Write.Only the marked rows on Read, everything else on None. Nothing needs Write. Step 4: Create the key and copy it
Click Create key and copy the value that starts with
rk_live_. A live key you create yourself is shown only once.1 Create key, 2 copy the rk_live_ value. Step 5: Paste it into Biddle
In Slack, open Biddle’s Home tab. Under Connections, on the Stripe row, click Connect. On the Composio page that opens in your browser, paste the key, then come back to Slack and pick the products Biddle should read.
1 Connect, 2 paste the key, 3 connect, 4 Pick products. Step 6: To disconnect later
Expire the key under API keys > Restricted keys in Stripe, and Biddle can no longer read Stripe. To also delete the Stripe data Biddle stored, click Disconnect in Biddle’s Home tab.
From the key’s menu, 1 Expire key.
Common snags
- It connected, but Biddle shows no data
- It’s probably a test mode key (
rk_test_), which reads only test data. Go back to step 2, turn test mode off, and create anrk_live_key. - Does the key need write access?
- No. Biddle only reads from Stripe. You don’t need a key with Write permissions or a secret key (
sk_live_).