---
title: "Get list of environment variables"
method: GET
path: "/v2/actors/{actorId}/versions/{versionNumber}/env-vars"
tags: ["Actors/Actor versions"]
---

# Get list of environment variables

`GET /v2/actors/{actorId}/versions/{versionNumber}/env-vars`

Gets the list of environment variables for a specific version of an Actor.
The response is a JSON object with the list of [EnvVar objects](#/reference/actors/environment-variable-object), where each contains basic information about a single environment variable.

## Path parameters

- `actorId` string, required
- `versionNumber` string, required

## Response `200`

- ListOfEnvVarsResponse
  - `data` ListOfEnvVars, required
    - `total` integer, required
    - `items` EnvVar[], required
      - `name` string, required — The name of the environment variable.
      - `value` string — The value of the environment variable. If `isSecret` is `true`, this value isn't returned by the API.
      - `isSecret` boolean, nullable — Whether the environment variable is encrypted. Secret values aren't returned by the API.

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
