# Stripe

The connector calls the [Stripe API](https://stripe.com/docs/api).

**Before you start**

You need:

- **A Stripe API key.** A restricted key (https://docs.stripe.com/keys/restricted-api-keys) with **Read** access to the objects you extract (charges, customers, balance, disputes, events, refunds, transfers) is enough; you don't need the full secret key. Create it on the API keys (https://dashboard.stripe.com/apikeys) page.

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.

## Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **Stripe** connector.
Enter your API key.

To configure what data you want to extract, you can select one of the configuration templates:

- Only Charges -- FULL LOAD
- Almost ALL Data -- FULL LOAD

![Screenshot - Stripe Confguration](https://help.keboola.com/components/extractors/other/stripe/stripe-1.png)

When done, **Save** the configuration. 

You can also [switch to the JSON editor](https://help.keboola.com/components/extractors/generic-extractor/#template-mode).

Click **Run Component**.

**Check:**

### Prompt

```text title="Prompt" wrap
Did the latest job of my Stripe configuration succeed, and which tables did it load, such as charges, with row counts?
```

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

### UI

The job ends with status **Success** and Storage has a `charges` table. **Almost ALL Data** also adds
tables for customers, balance history, disputes, events, refunds and transfers.

### CLI / API

```bash
kbagent job list --component-id keboola.ex-stripe --config-id 123456789 --limit 1
kbagent storage tables
```

Replace `123456789` with your configuration ID: `status` shows whether the job succeeded, and the tables it loaded have the latest `last_import_date`, with their rows in `rows_count`.

---
