# Stripe

UI Bakery allows you to easily connect to Stripe with no need for additional layers like APIs and third-party services.

## Configuration

### Prerequisites

To connect Stripe to UI Bakery, you will need to obtain an API key. \
Stripe API uses API keys to authenticate requests. You can view and manage your API keys in the Stripe Dashboard under **Developers** > **API keys**.

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

You can use a test key first for testing purposes, but you will need a secret key to manage requests.

{% hint style="warning" %}
We recommend adding a separate secret key for UI Bakery usage. In this case, your UI Bakery-based application will not be affected by any changes to your secret key.
{% endhint %}

### Connecting the data source

1. On the **Data sources** page, click **Connect**, and select *Stripe* in the Data sources list.
2. Give your data source a name and specify the API Key you obtained previously.
3. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

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

#### Authentication via cURL

If you don't want to add Stripe as a separate data source, you can use the *authentication cURL* request instead. You can find the example cURL in [Stripe documentation](https://docs.stripe.com/api/authentication?lang=curl).

## Usage

Once you have connected Stripe to UI Bakery, you can interact with your data. For this purpose, you can use the [Open API Request](/reference/working-with-actions/open-api-request.md) action step:

1. Create a new action, select the Stripe data source and the Open API Request action.\
   All available Stripe endpoints will be already defined.
2. Select the required endpoint from the **Operation** dropdown.
3. Set any parameters and/or body if necessary.
4. Click **Execute action**.


---

# 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.uibakery.io/reference/data-sources/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.
