Environments

GETList environments

Retrieve the environments configured for a FlagForge project

GET/v1/projects/{projectId}/environments
List environments
curl --request GET \
  --url 'http://localhost:4000/v1/projects/{projectId}/environments' \
  --header 'Authorization: Bearer <token>'
200
application/json
{}

List environments

Use this endpoint to retrieve the environments configured for a specific FlagForge project. Call it when you need to discover the deployment targets available for environment-specific flag configuration and targeting.

The response returns the environments in a data array. Each environment includes its identifier, project identifier, key, name, and creation timestamp. If the project does not exist, the API returns a 404 error envelope.

Authentication

Authorizationbearerrequired

Server API key (srv_). See Authentication.

Path Parameters

projectIdstringrequired

Project ID