StripeDaniel WoodExplainer
Your AI agent can move money in Stripe - here's how to stay in control
Summary
Stripe’s MCP server grants AI agents the ability to build checkout pages, run reports, automate refunds, and send money via Stripe Treasury. To maintain control, Stripe offers two methods: connecting agents on your behalf via OAuth with mandatory human confirmation for sensitive live-mode actions, or assigning agents an independent identity with agent-tagged API keys governed by configurable approval rules. With OAuth, confirmation blocks refunds and payouts until you approve, and the agent must retry after confirmation. For independent agents, approval rules can require designated reviewers to approve actions based on conditions like amount exceeding $500, with default rules for refunds, payouts, and transfers. These layered controls—scoped credentials, confirmation, and two-party approval—let you decide which actions run automatically and which require oversight.
Approach / What changed
Stripe provides two access modes for AI agents: (1) via OAuth on behalf of a user, automatically requiring human confirmation for live-mode refunds and payouts, and (2) via agent-tagged API keys for independent identity, with configurable approval rules that conditionally require designated reviewers to approve actions based on triggers such as amount thresholds. Default approval rules for refunds, payouts, and transfers apply immediately to agent-tagged keys. Agents can be notified of approval outcomes via webhooks.
Takeaways
Stripe provides two modes for AI agent access: acting on your behalf via OAuth with mandatory human confirmation for live-mode refunds and payouts, or acting as an independent actor using agent-tagged API keys.
For independent agents, approval rules can be defined with conditions like amount thresholds to require designated reviewers to approve actions; default rules cover refunds, payouts, and transfers.
Approvals enforce two-party control: no single actor can approve their own request by default, and agents can listen for outcomes via webhooks to know when actions are approved or denied.
FAQ
How do I create an agent-tagged API key in Stripe?
In the Dashboard, create an API key and select the option 'Giving an AI agent access to operate your account'. The key will be tagged as agent-tagged and support permissions, rotation, and expiration, and be subject to approval rules.
What happens when an agent performs an action subject to an approval rule?
The API returns an approval_required error instead of completing the action, and Stripe automatically submits an approval request for review. The agent can optionally provide a justification.
Can an agent provide justification for a refund request?
Yes, when the API returns an approval_required error, the agent can send a request with a 'reason' field to the approval request endpoint, providing justification such as a support ticket number.
Source and freshness
- Source
- stripe.dev
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.