> ## Documentation Index
> Fetch the complete documentation index at: https://v1-docs.adapt.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe

> Connect Stripe to analyze payments, subscriptions, and revenue

Connect Adapt to Stripe to analyze your payments, subscriptions, and revenue
data using natural language.

## Setup

**1. Get your Stripe API key**

1. Go to your [Stripe Dashboard](https://dashboard.stripe.com/apikeys)
2. Copy your **Secret key** (starts with `sk_live_` or `sk_test_`)

> [!WARNING]
>
> Use a **restricted key** with scopes that match your use case.

**2. Go to Settings**

Navigate to **Settings > Integrations** in Adapt

**3. Add the secret**

Add the following secret:

| Secret Name | Value |
| - | - |
| `STRIPE_API_KEY` | Your Stripe secret key |

**4. Test the connection**

Ask Adapt about your MRR or recent charges

### Creating a Restricted Key

For security, create a restricted API key with only the permissions Adapt needs:

1. Go to [Stripe API Keys](https://dashboard.stripe.com/apikeys)
2. Click **Create restricted key**
3. Enable **Read** access for:
   * Customers
   * Subscriptions
   * Invoices
   * Charges
   * Products
   * Prices
4. Copy the key and add it to Adapt

## Capabilities

Adapt can query your Stripe data. Analyze revenue metrics, subscriptions, and
payment insights.

### Examples

Check revenue metrics:

```
What's our current MRR?
```

Analyze subscriptions:

```
How many active subscriptions do we have?
```

Review payments:

```
Show me recent failed charges
```

Customer analysis:

```
Who are our top 10 customers by lifetime value?
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.