Skip to main content
GET
/
v1
/
env_var
List env_vars
curl --request GET \
  --url https://api.braintrust.dev/v1/env_var \
  --header 'Authorization: Bearer <token>'
{
  "objects": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "object_type": "organization",
      "object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "used": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.

Query Parameters

limit
integer | null

Limit the number of objects to return

Required range: x >= 0
ids

Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times

env_var_name
string

Name of the env_var to search for

object_type
enum<string>

The type of the object the environment variable is scoped for

Available options:
organization,
project,
function
object_id
string<uuid>

The id of the object the environment variable is scoped for

Response

Returns a list of env_var objects

objects
object[]
required

A list of env_var objects