# Stripe

This guide provides detailed instructions on how to integrate **Churned** with **Stripe** to enhance your ability to predict customer churn and segment your users based on their subscription status. By integrating Stripe, Churned can access customer billing data to make more accurate predictions and recommendations.

## How to connect Stripe to Churned.io

Login to Churned platform and go to integration part. Click on "New Integration" and add Stripe.

<figure><img src="/files/BzlfWTKuVpzq4USyOSvv" alt=""><figcaption></figcaption></figure>

After adding Stripe, you will need to add the api key to continue:

<figure><img src="/files/BNtOc8JuOGm7zVuL0Y3r" alt=""><figcaption></figcaption></figure>

Here’s how to obtain the API key from Stripe:

### Retrieving Stripe API key

1. **Login to Stripe**: Go to the [Stripe Dashboard](https://dashboard.stripe.com/login).
2. **Navigate to API Keys**:
   * In the left menu, select **Developers** and then **API keys**.
3. If you have not yet created an API key, follow these steps: <https://docs.stripe.com/keys#create-api-secret-key&#x20>;
4. If you already have an API key, follow these steps: <https://docs.stripe.com/keys#reveal-an-api-secret-key-live-mode>
5. Store the API key securely; you'll need it later for authentication.

#### Input the Credentials

After obtaining the API key, enter them into the integration setup form in Churned platform.

Click "Send" to complete the integration setup.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.churned.io/churned-docs/integrations/stripe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
