Skip to main content
POST
/
v1
/
env-vars
Create Env Var
curl --request POST \
  --url https://api.example.com/v1/env-vars \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>"
}
'
{
  "id": "<string>",
  "key": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

環境変数名

Example:

"OPENAI_API_KEY"

value
string
required

環境変数の値

Response

Successful Response

登録・更新時のレスポンス。平文の値は返さない。

id
string
required
key
string
required
created_at
string
required
updated_at
string
required