---
title: "Changes to Retrieve an environment variable"
method: GET
path: "/v1/variables/{key}"
---

# Changes to Retrieve an environment variable

`GET /v1/variables/{key}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 4 revisions.

- **2026-08-12** `87d29dc7b4fe` — 3 breaking, 2 warning, 17 info

## Changes

- **2026-08-12** `87d29dc7b4fe` — 3 breaking, 2 warning, 17 info
  - for the `path` request parameter `key`, the minLength was increased from `0` to `1`
  - for the `header` request parameter `x-checkly-account`, the type/format was changed from `string`/`` to `string`/`uuid`
  - the response property `value` became nullable for the status `200`
  - removed the optional property `attributes` from the response with the `401` status
  - removed the optional property `attributes` from the response with the `429` status
  - added the non-success response with the status `400`
  - the response property `locked` became required for the status `200`
  - the response property `message` became required for the status `401`
  - the response property `message` became required for the status `403`
  - the response property `message` became required for the status `404`
  - the response property `message` became required for the status `429`
  - the response property `secret` became required for the status `200`
  - the `locked` response's property default value `false` was removed for the status `200`
  - the `secret` response's property default value `false` was removed for the status `200`
  - removed the `401.00` enum value from the `statusCode` response property for the response status `401`
  - removed the `403.00` enum value from the `statusCode` response property for the response status `403`
  - removed the `404.00` enum value from the `statusCode` response property for the response status `404`
  - removed the `429.00` enum value from the `statusCode` response property for the response status `429`
  - removed the `Forbidden` enum value from the `error` response property for the response status `403`
  - removed the `Not Found` enum value from the `error` response property for the response status `404`
  - removed the `Too Many Requests` enum value from the `error` response property for the response status `429`
  - removed the `Unauthorized` enum value from the `error` response property for the response status `401`

---

[Operation](https://skmtc.dev/checklyhq/apis/checkly-public-api/docs/v1/variables/:key/get.md) · [API](https://skmtc.dev/checklyhq/apis/checkly-public-api.md) · [Page](https://skmtc.dev/checklyhq/apis/checkly-public-api/changes/v1/variables/:key/get)
