Stripe Integration

API Key (Bearer)

Connect your AI agent to Stripe. Process payments, manage subscriptions, create invoices, and handle refunds directly from conversations.

What your agent can do

With Stripe credentials, your agent gets full access to payment operations through the Stripe API.

Payment processing

Create payment intents, process charges, and handle checkout sessions for one-time and recurring payments.

Subscription management

Create, update, pause, and cancel subscriptions. Manage plan changes and billing cycles.

Invoice creation

Generate and send invoices, track payment status, and handle overdue reminders automatically.

Refund processing

Issue full or partial refunds, track refund status, and manage dispute responses.

Customer management

Create and update customer records, manage payment methods, and view transaction history.

Prerequisites

  • A Stripe account with API access enabled
  • API key from Developers > API keys (restricted key recommended)
  • A ClawTrust agent on any plan (Starter, Pro, or Enterprise)

Step-by-step setup

Generate a secret key in Stripe and add it to your agent.

1

Open Stripe API keys

In your Stripe Dashboard, navigate to Developers > API keys. You will see your publishable and secret keys.

2

Create a restricted key (recommended)

Click "Create restricted key" to generate a key with only the permissions your agent needs. Grant read/write access to customers, charges, invoices, and subscriptions.

3

Copy your secret key

Copy the secret key (starts with sk_live_ or rk_live_). This is a Bearer token that authenticates API requests.

4

Add to ClawTrust

In your agent's dashboard, go to Credentials > Add Credential. Select "API Key (Bearer)", paste your key, and set the allowed domain to *.stripe.com.

Credential details

Type

API Key (Bearer Token)

Header

Authorization: Bearer sk_live_xxx

Allowed domains

*.stripe.com

Fields

Secret key or restricted key (single field)

Example actions

Once connected, you can ask your agent to perform actions like these.

"Create a $99/month subscription for customer john@acme.com"

Creates a subscription with the specified price and attaches it to the customer.

"Refund the last payment from jane@example.com, amount $25"

Issues a partial refund of $25 on the most recent charge for that customer.

"Send an invoice for $500 to billing@corp.co with net-30 terms"

Generates a draft invoice, adds the line item, and sends it to the recipient.

"Show me all failed payments from the last 7 days"

Queries the charges API with status filter and returns a summary of failed payments.

Ready to connect your agent to Stripe?

Add your API key and your agent starts processing payments immediately.