Authorizations
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.
Body
Any desired information about the new env_var object
The type of the object the environment variable is scoped for
organization, project, function The id of the object the environment variable is scoped for
The name of the environment variable
The value of the environment variable. Will be encrypted at rest.
Response
Returns the new env_var object
Unique identifier for the environment variable
The type of the object the environment variable is scoped for
organization, project, function The id of the object the environment variable is scoped for
The name of the environment variable
Date of environment variable creation
Date the environment variable was last used