Skip to main content
GET
/
v1
/
teams
/
{team_id}
/
environment_groups
/
{env_name}
cURL
curl --request GET \
--url https://api.baseten.co/v1/teams/{team_id}/environment_groups/{env_name} \
--header "Authorization: Bearer $BASETEN_API_KEY"
{
  "name": "<string>",
  "team_id": "<string>",
  "team_name": "<string>",
  "manage_access": {
    "is_restricted": true,
    "users": [
      {
        "user_id": "<string>",
        "email": "<string>",
        "name": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

team_id
string
required
env_name
string
required

Response

200 - application/json

A team-scoped grouping of same-named environments (e.g. "production", "staging").

Restricting an environment group limits who can manage the environment of that name across every model and chain in the team.

name
string
required

Name of the environment group, matching the environment name it governs.

Example:

"staging"

team_id
string
required

Unique identifier of the team the environment group belongs to.

team_name
string
required

Name of the team the environment group belongs to.

manage_access
EnvironmentGroupManageAccessV1 · object
required

Settings controlling who can manage this environment group.