---
title: "Provision live Stripe keys"
method: POST
path: "/api/apps/{app_id}/payments/stripe/provision-live-keys"
---

# Provision live Stripe keys

`POST /api/apps/{app_id}/payments/stripe/provision-live-keys`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Creates live Stripe keys automatically through Stripe, rather than keys you provide yourself. Use [Configure live Stripe keys](/api-reference/configure-live-stripe-keys) instead if you already have live keys from Stripe.

What happens depends on the app's current state:

- If no live key is stored yet, this creates one. The [sandbox](/developers/references/apps-api/sections/payments-stripe#from-sandbox-to-live) must be claimed and its Stripe account activated first.
- If a live key is already stored but setup never finished, this completes it using that key, without requiring activation.
- If setup already finished, this reports success without doing anything further.

Requires write access to the app. Workspace viewers cannot call this operation.

## Path parameters

- `app_id` string, required — ID of the Base44 app.

## Response `200`

Successful Response

- ProvisionLiveKeysResponse — Response for automatic live key provisioning.
  - `success` boolean, required — Whether live key provisioning completed.
  - `message` string, required — Human-readable provisioning result.
  - `already_configured` boolean — Whether provisioning was already complete or another concurrent call completed it. Defaults to `false`.

## Other responses

- `400` — The Stripe account is not activated and no partial live setup can be recovered.
- `401` — Missing or invalid credentials.
- `403` — The credential is not permitted or you don't have the required app access. A missing app also fails the app access check.
- `404` — No Stripe sandbox exists or the app is outside the credential grant.
- `409` — The workspace requires an unlocked SSO session.
- `429` — The base limit is 5 requests per 60 seconds, scoped to your account rather than the workspace. See [Rate limits](/developers/references/apps-api/get-started/rate-limits) for the multiplier your plan gets.

## Changes

- **2026-09-15** `ca10c5ce328c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/base44/apis/base44-app-management-api/changes/api/apps/:app_id/payments/stripe/provision-live-keys/post.md)

---

[API](https://skmtc.dev/base44/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/base44/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/base44/apis/base44-app-management-api/revisions/5e69adeb8667?raw)
