Set secret
Changed on<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 can't regenerate.</Warning>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/apps/{app_id}/secrets
- Auth: HTTP bearer
Path parameters
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
Successful Response
Example response
{
"success": true
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info