Configure live Stripe keys
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Switches the app to live mode using live Stripe keys you already have from the Stripe dashboard, sent directly in the request body, rather than keys Base44 creates for you. Use Provision live Stripe keys instead to have Base44 create them automatically once the sandbox's Stripe account is activated.
Stores the keys, backs up the current test credentials, and redeploys backend functions with the updated secrets.
Base44 checks the key prefixes and retrieves the secret key's Stripe account. When that account differs from the sandbox's installed live account, Base44 registers a separately signed webhook for payment analytics before storing the keys. The secret key needs account read and webhook management permissions for this setup. Base44 doesn't verify that the publishable key belongs to the same account or that the account can process payments.
Automatic migration of an existing app-function webhook remains best effort.
If retiring the previous analytics destination fails, the new keys may already be stored. Retry the same configuration to finish the pending setup.
Requires write access to the app. Workspace viewers cannot call this operation.
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/payments/stripe/configure-live-keys
- AuthHTTP bearer
Path parameters
ID of the Base44 app.
Request body
Example request
{
"publishable_key": "pk_live_example",
"secret_key": "sk_live_example",
"webhook_secret": "whsec_example"
}Response
The operation result.
Example response
{
"success": true,
"message": "Live mode API keys configured successfully. Test keys have been backed up.",
"live_keys_configured": true
}Changes
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info