Stripe Service Principals

Service by Stripe

Secure non-human identities for AI agents and automated services.

Stripe Service Principals provides non-human identities for AI agents and applications to securely access Stripe. It replaces long-lived API keys with Workload Identity Federation and short-lived tokens, enabling granular permission control and centralized activity monitoring.

Category: Identity & Access Management

How to get it
Online via the Stripe Dashboard and API
Engagement model
Included with Stripe Organization (Private Preview)
Primary Authentication Method
Workload Identity Federation
Token Lifespan
1 hour
Supported Cloud Providers
Google Cloud (Private Preview)
Management Interface
Stripe Dashboard & API

Overview

Stripe Service Principals is a security service that allows businesses to create non-human identities for applications, services, and AI agents accessing Stripe. It solves the risk associated with long-lived API keys by introducing a durable identity that is distinct from its transient authentication method. The service enables Workload Identity Federation, allowing workloads on platforms like Google Cloud to authenticate to Stripe using short-lived tokens that expire after one hour. Administrators can manage these identities through the Stripe Dashboard, assigning granular permissions and monitoring activity even if underlying credentials change. This infrastructure is designed for automated environments where agents require secure, programmatically managed access to financial data. Currently in private preview, it supports advanced governance features like two-party approval rules and access policies.

Identity and Access Management

Security and Authentication

Developer Experience

How it works

Use cases

Specifications

How to get it
Online via the Stripe Dashboard and API
Engagement model
Included with Stripe Organization (Private Preview)
Primary Authentication Method
Workload Identity Federation
Token Lifespan
1 hour
Supported Cloud Providers
Google Cloud (Private Preview)
Management Interface
Stripe Dashboard & API
Identity Type
Non-human (Service/App/Agent)
SDK Support (WIF)
Ruby SDK (Private Preview)
Permission Model
Resource-based (Read/Write/None)

How it works

  1. Create Service Principal: Navigate to the API authentication section in the Stripe Dashboard to create a new service principal and give it a descriptive name.
  2. Configure Authentication: Select a workload identity provider and provide the Issuer URL and subject that matches the external workload.
  3. Assign Permissions: Select between common permission templates or assign custom permissions to specific Stripe API resources.
  4. Exchange Tokens and Authenticate: Use the generated OAuth client ID within your application to exchange cloud identity tokens for short-lived Stripe access tokens.

FAQ

What is the difference between a service principal and a human team member?

A service principal is a non-human identity representing an application, service, or AI agent, whereas a human team member represents an individual person. Service principals use transient authentication methods like Workload Identity Federation instead of passwords or passkeys.

How long do the access tokens last?

Access tokens generated through Workload Identity Federation for service principals expire after 1 hour.

Added by AntSpace from public sources (docs.stripe.com).

Related

More services by Stripe