---
title: "Retrieve environment variable"
method: GET
path: "/api/v1/projects/{projectRef}/envvars/{env}/{name}"
tags: ["envvars"]
---

# Retrieve environment variable

`GET /api/v1/projects/{projectRef}/envvars/{env}/{name}`

Retrieve a specific environment variable for a specific project and environment.

## Response `200`

Successful request

- EnvVarValue
  - `value` string, required

## Other responses

- `400` — Invalid request parameters or body
- `401` — Unauthorized request
- `404` — Resource not found

---

[API](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api.md) · [All operations](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/winsenlabs/trigger-dev-v3-rest-api/revisions/737c498e605b/schema)
