Skip to main content

API Key Scopes

Restrict what each API key can access by assigning specific scopes.

Available Scopes

ScopeDescription
payments:readView payment intents and charges
payments:writeCreate, confirm, and cancel payments
customers:readView customer records
customers:writeCreate, update, and delete customers
webhooks:readView webhook endpoints
webhooks:writeCreate, update, and delete webhooks
refunds:writeIssue and manage refunds
reports:readView and download reports
products:readView products and prices
products:writeCreate and manage products and prices
subscriptions:readView subscriptions
subscriptions:writeCreate and manage subscriptions

Best Practices

  • Principle of least privilege — Only grant the scopes each key needs
  • Separate keys per service — Use different keys for different microservices
  • Read-only for analytics — Use *:read scopes for dashboards and reporting tools