curl --request POST \
--url https://api.baseten.co/v1/secrets \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
--data '{
  "name": "my_secret",
  "value": "my_secret_value"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>"
}

Authorizations

Authorization
string
headerrequired

You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>

Body

application/json
name
string
required

Name of the new or existing secret

value
string
required

Value of the secret

Response

200 - application/json
created_at
string
required

Time the secret was created in ISO 8601 format

name
string
required

Name of the secret