> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Environment Variable

> Get an environment variable's value

Returns the value of a specific environment variable.

## Authentication

Requires a valid Bearer token.

## Path Parameters

<ParamField path="id" type="string" required>
  Project ID (UUID).
</ParamField>

<ParamField path="key" type="string" required>
  Environment variable name.
</ParamField>

## Response

<ResponseField name="key" type="string" required>
  Environment variable name.
</ResponseField>

<ResponseField name="value" type="string" required>
  Environment variable value.
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "key": "DATABASE_URL",
    "value": "postgresql://user:pass@host:5432/db"
  }
  ```
</ResponseExample>

## Errors

| Status | Description                                                |
| ------ | ---------------------------------------------------------- |
| `401`  | Unauthorized — missing or invalid token                    |
| `404`  | Not Found — project or environment variable does not exist |
