Provision live Stripe 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 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 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.

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

Path parameters

app_idstring required

ID of the Base44 app.

ID of the Base44 app.

Response

Successful Response

successboolean required

Whether live key provisioning completed.

messagestring required

Human-readable provisioning result.

already_configuredboolean

Whether provisioning was already complete or another concurrent call completed it. Defaults to false.

Example response

{
  "success": true,
  "message": "Live API keys provisioned successfully."
}

Changes

Changed in 1 of the 14 revisions of this API.1