---
title: "List default environment variables"
method: GET
path: "/projects/{project_id}/list_default_environment_variables"
tags: ["Environment Variables"]
---

# List default environment variables

`GET /projects/{project_id}/list_default_environment_variables`

Lists all default environment variables for the specified project, with
optional filtering by name and deployment type.

## Path parameters

- `project_id` integer, required

## Query parameters

- `name` string, nullable
- `deploymentType` 'dev' | 'prod' | 'preview' | 'custom'

## Response `200`

- PaginatedDefaultEnvironmentVariablesResponse
  - `items` DefaultEnvironmentVariableResponse[], required
    - `name` string, required
    - `value` string, required
    - `deploymentTypes` DeploymentType[], required — The deployment types that this env var name + value apply to. Note that when filtering by a particular deployment type, all items in the result will have a single element in `deploymentType`.
  - `pagination` PaginationMetadata, required
    - `hasMore` boolean, required
    - `nextCursor` string, nullable

---

[API](https://skmtc.dev/convex/apis/convex-management-api.md) · [All operations](https://skmtc.dev/convex/apis/convex-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/convex/convex-management-api/revisions/3dd5e601c536/schema)
