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

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Connect Stripe

> Connect Stripe with a restricted key so your agent can create payment links, look up customers and invoices, and check a payment status on a call.

To connect Stripe, create a restricted API key in the Stripe Dashboard and paste it into the Stripe card in SmartAlex. Then switch on the Stripe tools your agent may use. On a call, your agent can then generate a payment link, look up a customer or invoice, and check a payment status. The key limits what the agent can ever do.

* **You will have:** an agent that works with your Stripe account on a call.
* **Time:** about ten minutes.
* **You need:** a Stripe account where you can create API keys, and a SmartAlex role that can edit connectors. The Stripe card shows no add-on.

> [!NOTE]
>
> In the app: **Sidebar → Agent Settings → Connectors** (`/home?settings=connectors`), then **Stripe** under **Payments**.

## What does Stripe give my agent?

Stripe runs its own connector server. SmartAlex connects to it with your key, reads the tools your key allows, and lets you switch on the ones each agent may use. The agent never sees the key.

The diagram below shows an invoice question going from the call to Stripe and back.

```mermaid theme={null}
sequenceDiagram
    participant C as Caller
    participant A as Your agent
    participant S as SmartAlex
    participant T as Stripe
    C->>A: "Has my invoice been paid?"
    A->>S: Use a Stripe tool
    S->>S: Is it switched on for this agent?
    S->>T: Request, sent with your restricted key
    T-->>S: Invoice status
    S-->>A: The result
    A-->>C: "Yes, it was paid on Monday."
```

| What the agent can do | Example |
| - | - |
| Generate a payment link on the call | The caller agrees to pay and the agent creates the link. |
| Look up a customer or invoice | "Can you check my last invoice?" |
| Check a payment status | "Did my payment go through?" |

## How do I create a restricted key in Stripe?

A restricted key lets you give Stripe only the permissions the agent needs. Create a new one for SmartAlex rather than reusing a key from elsewhere.

**1. Open API keys**

In the Stripe Dashboard, click **Developers**, then **API keys**. In SmartAlex, the **Where do I find this?** link on the Stripe card opens the same page.

**2. Create a restricted key**

Choose to create a **Restricted key** and name it something you will recognise, such as "SmartAlex".

**3. Set the permissions**

Stripe lists its resources and lets you choose **None**, **Read** or **Write** for each. Leave everything on **None** except what the agent needs. Give **Read** on customers, invoices and payments for lookups, and **Write** on payment links only if the agent should create them.

**4. Create and copy the key**

Create the key and copy it. It starts with `rk_live_` for real data or `rk_test_` in Stripe's test mode. Stripe shows it once.

> [!TIP]
>
> Start with an `rk_test_` key so you can try the connector without touching real payments. Switch to an `rk_live_` key when you are happy.

## How do I connect Stripe in SmartAlex?

**1. Open Connectors**

Click **Sidebar → Agent Settings → Connectors**. You see the **Browse** list.

![The Stripe card in Connectors Browse](https://mintcdn.com/smartalex/1aJfW-RE1YMT8lGO/images/screens/integrations-hub/stripe-card-in-browse.webp?fit=max\&auto=format\&n=1aJfW-RE1YMT8lGO\&q=85\&s=10bd105e4192374d2d59ef45aab0a4f3)

Find Stripe under Payments.

**2. Open Stripe**

Pick the **Payments** category or type "Stripe" into **Search connectors**, then click **Stripe** ("Create payment links, read customers, and check invoices"). The page shows what Stripe offers and how many tools.

**3. Paste the key**

Paste the key into **API key** (placeholder "Paste the API key"). The line under it repeats Stripe's help: open Developers then API keys, create a Restricted key, and paste it here.

![The Stripe connector page with the API key field](https://mintcdn.com/smartalex/Lsiy_I41mrzc0zEG/images/screens/integrations-hub/stripe-api-key-field.webp?fit=max\&auto=format\&n=Lsiy_I41mrzc0zEG\&q=85\&s=b4738690fb9d1c3c07706b4497157e4d)

Paste your restricted key into API key.

**4. Connect**

Click **Connect**. SmartAlex checks the key with Stripe before saving anything. You see "Stripe connected".

**5. Choose the tools**

Tick the Stripe tools this agent may use, then click **Save tools**. You see "Applies on the next call."

## Settings

The Stripe page has two screens: the key box before you connect, and the tool list after.

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **API key** | Your Stripe restricted key. Stored encrypted and verified before saving. | Empty | Paste it once. Paste a new one if you rotate it in Stripe. |
| **Where do I find this?** | Opens Stripe's API keys page. | n/a | When you need to create or copy a key. |
| **Connect** | Checks the key with Stripe and saves it. | n/a | After pasting. |
| **Stripe tools** (one switch each) | Lets this agent use that Stripe tool. Stripe supplies the list live, so the page shows every tool with its own description. | Off | Switch on only the tools the agent needs. |
| **Changes data** label | Marks a tool that writes to your Stripe account, such as creating a payment link. | n/a | Leave those tools off unless you want the agent making changes. See [safety steps](https://docs.getsmartalex.com/integrations/how-connectors-work.md#tools-that-change-data). |
| **Save tools** | Saves the switches for this agent. | n/a | After changing them. |
| **Disconnect** | Removes the connection from the workspace. | n/a | When you stop using Stripe. |

An agent can hold a limited number of tools in total. See [how many tools an agent can have](https://docs.getsmartalex.com/integrations/how-connectors-work.md#how-many-tools-an-agent-can-have). Stripe has no Recommended sets.

## What permissions does Stripe ask for?

Stripe shows no sign-in screen here. The permissions are the ones you ticked when you created the key. Give the smallest set that does the job.

## Check it worked

1. The Stripe card shows as connected and the tool list is open.
2. Call your agent and ask something Stripe can answer, such as the status of a test invoice.
3. For a payment link, ask to pay and check a link arrives.

## How do I disconnect Stripe?

**1. Open the card**

Click **Sidebar → Agent Settings → Connectors → Stripe**.

**2. Disconnect**

Click **Disconnect**. You see "Stripe disconnected". Its tools come off every agent from the next call.

To stop only one agent, untick its Stripe tools and click **Save tools**. You can also delete the restricted key in the Stripe Dashboard.

## If it does not work

| What you see | What to do |
| - | - |
| "Enter the API key first." | Paste the key into **API key**, then click **Connect**. |
| "Could not connect to the server. Check the credential and try again." | Check you copied the whole key and it has not been deleted in Stripe. Then try again. |
| "That server turned down the token. Check it is correct and has not expired." | Create a fresh restricted key in Stripe and paste it. |
| A tool does not work as expected | Check the permissions on the key in Stripe, then reconnect. |
| The agent cannot create a payment link | Check the key has **Write** on payment links, and the link tool is switched on and saved for that agent. |
| "This agent is using all 20 tool slots." | Switch another tool off. See [how many tools an agent can have](https://docs.getsmartalex.com/integrations/how-connectors-work.md#how-many-tools-an-agent-can-have). |

## Questions people ask

> [accordion] Why a restricted key and not my secret key?
>
> A restricted key can only do what you allow. If it were ever lost, the damage is limited to those permissions, and you can delete it without affecting anything else.

> [accordion] Does the agent hear or store card numbers?
>
> No. Payments happen on Stripe's own page. Your agent works with links, customers, invoices and statuses, never card details.

> [accordion] Where is my key kept?
>
> SmartAlex stores it encrypted and adds it to each request itself. The agent never sees it.

> [accordion] Should I use Stripe or Yoco?
>
> Use Yoco for South African rand payment links sent by SMS. Use Stripe when you also want lookups of customers and invoices. See [Connect Yoco](https://docs.getsmartalex.com/integrations/yoco.md).

> [accordion] Can I try it without real money?
>
> Yes. Create an `rk_test_` key in Stripe's test mode and connect that first.

## Next

> [card] [Connect SAP](https://docs.getsmartalex.com/integrations/sap.md)
>
> Turn overdue invoices into a morning call list.

> [card] [Take payments on a call](https://docs.getsmartalex.com/recipes/take-payments-on-a-call.md)
>
> The full recipe for payments over the phone.

> [card] [How connectors work](https://docs.getsmartalex.com/integrations/how-connectors-work.md)
>
> Tools per agent, limits and safety steps.

> [card] [Connect Yoco](https://docs.getsmartalex.com/integrations/yoco.md)
>
> Send a Yoco payment link by SMS during a call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.