Environments

POSTCreate an environment

Create a project environment for isolated feature-flag configuration

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

Create an environment

Creates an environment under an existing project for a deployment target such as development or production. Use this endpoint before configuring flags or per-environment targeting for that environment.

The request accepts an environment key and display name. Environment keys are unique within a project, so each environment must use a distinct key.

Authentication

Authorizationbearerrequired

Server API key (srv_). See Authentication.

Path Parameters

projectIdstringrequired

Project ID