Upserts a secret
Creates or updates a secret by name. Scoped to the caller's primary team; use the team-scoped variant to target a specific team.
post/v1/secrets
Request
- Base URLhttps://model-{model_id}.api.baseten.co
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "my_secret",
"value": "my_secret_value"
}Response
Example response
{
"id": "3kZ9xqd"
}Changes
No recorded changes to this operation across all 1 revision of this API.