---
title: "List environment variables"
method: GET
path: "/build-sources/{buildSourceId}/env-vars"
tags: ["Build Sources"]
---

# List environment variables

`GET /build-sources/{buildSourceId}/env-vars`

## Request

- Base URL: `https://api.render.com/v1`
- URL: `https://api.render.com/v1/build-sources/{buildSourceId}/env-vars`
- Auth: HTTP bearer

List all environment variables for the build source with the provided ID.

## Query parameters

- `cursor` string
- `limit` integer: Defaults to 20

## Response `200`

OK

- EnvVarWithCursor[]
  - `envVar` EnvVar, required
    - `key` string, required
    - `value` string, required
  - `cursor` string, required

## Other responses

- `401`: Authorization information is missing or invalid.
- `403`: You do not have permissions for the requested resource. If a scoped API token does not satisfy the endpoint's minimum scope requirements, the response has code insufficient_token_scope and its message lists all minimum required scopes. Broader scopes that include their permissions also satisfy the requirements. Passing this check does not guarantee access to the requested resource or to conditional operations.
- `404`: Unable to find the requested resource.
- `406`: Unable to generate preferred media types as specified by Accept request header.
- `410`: The requested resource is no longer available.
- `429`: Rate limit has been surpassed. Rate-limited endpoints also return `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` on successful responses so clients can track their remaining quota.
- `500`: An unexpected server error has occurred.
- `503`: Server currently unavailable.

## Changes

- **2026-11-03** `6ac5d3d47362`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/render/apis/render-public-api/changes/build-sources/:buildSourceId/env-vars/get.md)

---

[API](https://skmtc.dev/render/apis/render-public-api.md) - [All operations](https://skmtc.dev/render/apis/render-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/render/apis/render-public-api/revisions/6ac5d3d47362?raw)
