> ## Documentation Index
> Fetch the complete documentation index at: https://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

<Steps>
  <Step title="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.
    </Warning>
  </Step>

  <Step title="Go to Settings">
    Navigate to **Settings > Integrations** in Adapt
  </Step>

  <Step title="Add the secret">
    Add the following secret:

    | Secret Name      | Value                  |
    | ---------------- | ---------------------- |
    | `STRIPE_API_KEY` | Your Stripe secret key |
  </Step>

  <Step title="Test the connection">
    Ask Adapt about your MRR or recent charges
  </Step>
</Steps>

### 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?
```
