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

# Get Credentials

> Step-by-step instructions for obtaining Stripe API credentials.

## Authentication Method

* **[`api_key`](/concepts/api-key)** - Stripe secret key

## API Key Setup

### Step 1: Get Your Secret Key

1. Log in to the [Stripe Dashboard](https://dashboard.stripe.com)
2. Go to **Developers** → **API keys**
3. Copy your **Secret key** (starts with `sk_live_` for production or `sk_test_` for testing)
4. Store it securely

**Storing Credentials:**

```bash theme={null}
pnpm corsair setup --plugin=stripe api_key=sk_live_your-secret-key
```

<Warning>
  Use `sk_test_` keys during development to avoid real charges.
</Warning>

## Webhook Setup (Optional)

1. In the Stripe Dashboard, go to **Developers** → **Webhooks**
2. Click **Add endpoint**
3. Enter your endpoint URL (e.g., `https://yourapp.com/webhooks/stripe`)
4. Select the events to listen for
5. Copy the **Signing secret** (starts with `whsec_`)

```bash theme={null}
pnpm corsair setup --plugin=stripe webhook_signature=whsec_your-signing-secret
```

## Required Credentials Summary

| Credential             | Required For         | Where to Find                     |
| ---------------------- | -------------------- | --------------------------------- |
| Secret Key             | All API calls        | Dashboard → Developers → API keys |
| Webhook Signing Secret | Webhook verification | Dashboard → Developers → Webhooks |

For general information about how Corsair handles authentication, see [Authentication](/concepts/auth).
