Overview
Environment variables allow you to store configuration values, API keys, and other data that can be used across your checks and check groups. This endpoint returns all environment variables configured in your account.Response Example
Common Use Cases
API Configuration
Store API endpoints, tokens, and authentication credentials
Environment Settings
Configure different values for staging, production, and development
Shared Data
Share common values across multiple checks and check groups
Security
Store sensitive values securely with encryption
Additional Examples
Locked environment variables are encrypted and their values are masked in API responses for security. Use the
usage
field to understand which checks depend on each variable.Authorizations
The Checkly Public API uses API keys to authenticate requests. You can get the API Key here.
Your API key is like a password: keep it secure!
Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.
For example, set Authorization header while using cURL:
curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Query Parameters
Limit the number of results
Required range:
1 <= x <= 100
Page number
Response
Successful
The key of the environment variable (this value cannot be changed).
Example:
"API_KEY"
Used only in the UI to hide the value like a password.
Set an environment variable as secret. Once set, its value cannot be unlocked.