Management API
Upsert a secret
Creates a new secret or updates an existing secret if one with the provided name already exists. The name and creation date of the created or updated secret is returned.
Authorizations
Authorization
string
headerrequiredYou must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Body
application/json
A request to create or update a Baseten secret by name.
name
string
requiredName of the new or existing secret
value
string
requiredValue of the secret
Response
200 - application/json
A Baseten secret. Note that we do not support retrieving secret values.
created_at
string
requiredTime the secret was created in ISO 8601 format
name
string
requiredName of the secret