This method allows you to list all environment variables for a project.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```
/projects/<permalink>/environment_variables
```

* Replace `<permalink>` with the permalink of the project.

## HTTP Method

```
GET
```

## Example cURL request

```bash
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user your-email@example.com:your-api-key \
-X GET \
https://your-account.deployhq.com/projects/your-project/environment_variables
```

## Example response

```json
[
  {
    "identifier": 123,
    "name": "DATABASE_URL",
    "masked_value": "••••••••",
    "locked": false,
    "build_pipeline": true,
    "created_at": "2025-01-27T12:00:00.000Z",
    "updated_at": "2025-01-27T12:00:00.000Z",
    "url": "https://test.deployhq.com/projects/my-project/environment_variables/123"
  },
  {
    "identifier": 124,
    "name": "API_KEY",
    "masked_value": "••••••••",
    "locked": true,
    "build_pipeline": true,
    "created_at": "2025-01-27T12:05:00.000Z",
    "updated_at": "2025-01-27T12:05:00.000Z",
    "url": "https://test.deployhq.com/projects/my-project/environment_variables/124"
  }
]
```

## Response Fields

* `identifier` - The unique ID of the environment variable
* `name` - The variable name
* `masked_value` - The encrypted value (always shown as ••••••••)
* `locked` - Whether the variable is locked and immutable
* `build_pipeline` - Whether the variable is available in the Build Pipeline
* `created_at` - When the variable was created
* `updated_at` - When the variable was last updated
