This method allows you to list all global environment variables for your account.

**Tip**: You can explore and test this endpoint interactively using our [OpenAPI documentation](https://api.deployhq.com/docs).

## URL

```text
/global_environment_variables
```

## HTTP Method

```http
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/global_environment_variables
```

## Example response

```json
[
  {
    "identifier": 123,
    "name": "SHARED_API_KEY",
    "masked_value": "••••••••",
    "locked": false,
    "build_pipeline": true,
    "created_at": "2025-01-27T12:00:00.000Z",
    "updated_at": "2025-01-27T12:00:00.000Z"
  },
  {
    "identifier": 124,
    "name": "GLOBAL_DATABASE_URL",
    "masked_value": "••••••••",
    "locked": true,
    "build_pipeline": true,
    "created_at": "2025-01-27T12:05:00.000Z",
    "updated_at": "2025-01-27T12:05:00.000Z"
  }
]
```

## Response Fields

* `identifier` - The unique ID of the environment variable
* `name` - The variable name
* `masked_value` - A masked representation of the stored value
* `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
