---
title: "List env_vars"
method: GET
path: "/v1/env_var"
tags: ["EnvVars"]
---

# List env_vars

`GET /v1/env_var`

List out all env_vars. The env_vars are sorted by creation date, with the most recently-created env_vars coming first

## Query parameters

- `limit` integer, nullable — Limit the number of objects to return
- `ids` union — Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
  - string, uuid
  - string[]
- `env_var_name` string — Name of the env_var to search for
- `object_type` 'organization' | 'project' | 'function' — The type of the object the environment variable is scoped for
- `object_id` string, uuid — The id of the object the environment variable is scoped for

## Response `200`

Returns a list of env_var objects

- object
  - `objects` EnvVar[], required — A list of env_var objects
    - `id` string, uuid, required — Unique identifier for the environment variable
    - `object_type` 'organization' | 'project' | 'function', required — The type of the object the environment variable is scoped for
    - `object_id` string, uuid, required — The id of the object the environment variable is scoped for
    - `name` string, required — The name of the environment variable
    - `created` string, date-time, nullable — Date of environment variable creation
    - `used` string, date-time, nullable — Date the environment variable was last used

## Other responses

- `400` — The request was unacceptable, often due to missing a required parameter
- `401` — No valid API key provided
- `403` — The API key doesn’t have permissions to perform the request
- `429` — Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
- `500` — Something went wrong on Braintrust's end. (These are rare.)

---

[API](https://skmtc.net/braintrustdata/apis/braintrust-api.md) · [All operations](https://skmtc.net/braintrustdata/apis/braintrust-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/braintrustdata/braintrust-api/revisions/9d216c8243fe/schema)
