Set secret
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Stores one or more secrets on the app and makes them available to its backend functions as environment variables. Send several at once by putting several keys in the body.
A name that already exists is overwritten, so this both creates and updates. Names must be uppercase letters, digits, and underscores, and must start with a letter, for example STRIPE_SECRET_KEY. Some names are reserved by Base44 and are rejected.
Setting a secret redeploys the app's backend functions so they pick up the new value.
<Warning>Secret values are write-only. Nothing in this API returns them once stored, so keep your own copy of anything you cannot regenerate.</Warning>
Path parameters
ID of the app to set the secret on.
ID of the app to set the secret on.
Request body
Each key is a secret name and each value is the secret itself.
Response
The secrets were stored.
Example response
{
"success": true
}