---
title: "Retrieve a variable usage"
method: GET
path: "/v1/environment-variables/{variableKey}/usage"
tags: ["Environment Variables"]
---

# Retrieve a variable usage

`GET /v1/environment-variables/{variableKey}/usage`

Returns the workflows that reference this environment variable via `{{env.KEY}}` in their step controls. **variableId** is required.

## Path parameters

- `variableKey` string, required

## Response `200`

OK

- GetEnvironmentVariableUsageResponseDto
  - `workflows` EnvironmentVariableWorkflowInfoDto[], required — Array of workflows that reference this environment variable
    - `name` string, required — The name of the workflow
    - `workflowId` string, required — The unique identifier of the workflow

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Environment variable not found.
- `405` — Method Not Allowed
- `409` — Conflict
- `413` — Payload Too Large
- `414` — URI Too Long
- `415` — Unsupported Media Type
- `422` — Unprocessable Entity
- `429` — The client has sent too many requests in a given amount of time.
- `500` — Internal Server Error
- `503` — The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.

---

[API](https://skmtc.net/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead.md) · [All operations](https://skmtc.net/novu/apis/deprecated-novu-api-use-openapi-json-yaml-instead/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/novu/deprecated-novu-api-use-openapi-json-yaml-instead/versions/986fe259fa85/schema)
