87d29dc7b4fe

latestOpenAPI 3.0.02026-08-121915501.4 MB
Environment variables

Create an environment variable

Creates a new environment variable.

post/v1/variables

Headers

x-checkly-accountstring uuid

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Request body

keystring required

The key of the environment variable (this value cannot be changed).

valuestring required

The value of the environment variable.

lockedboolean

Used only in the UI to hide the value like a password.

secretboolean

Set an environment variable as secret. Once set, its value cannot be unlocked.

Example request

{
  "key": "API_KEY"
}

Response

Created

keystring required

The key of the environment variable (this value cannot be changed).

valuestring required

The submitted value of the environment variable.

lockedboolean required

Used only in the UI to hide the value like a password.

secretboolean required

Whether the environment variable is stored as a secret.

Example response

{
  "key": "API_KEY"
}