Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
environments
curl -X POST https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments \
  -H "Authorization: Bearer <server_key>" \
  -H "Content-Type: application/json" \
  -d '{ "name": "QA", "slug": "qa", "color": "#8b5cf6" }'
{
  "id": "env_04hx...",
  "orgId": "org_01hx...",
  "projectId": "proj_01hx...",
  "name": "QA",
  "slug": "qa",
  "color": "#8b5cf6",
  "protected": false,
  "createdAt": "2024-04-01T09:00:00.000Z"
}
When a new environment is created, a disabled v1 config is automatically created for every existing flag in the project. Environment deletion is not yet available via the API. A future DELETE /projects/{projectId}/environments/{envId}?force=true endpoint is planned — it will require the environment to have zero active flags before proceeding. Until then, contact support to delete an environment.

Path parameters

projectId
string
required

Body

name
string
required
Display name.
slug
string
required
Must match ^[a-z0-9-]+$. Unique within the project.
color
string
Hex color for the dashboard UI, e.g. #6366f1. Defaults to #6366f1.
curl -X POST https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments \
  -H "Authorization: Bearer <server_key>" \
  -H "Content-Type: application/json" \
  -d '{ "name": "QA", "slug": "qa", "color": "#8b5cf6" }'
{
  "id": "env_04hx...",
  "orgId": "org_01hx...",
  "projectId": "proj_01hx...",
  "name": "QA",
  "slug": "qa",
  "color": "#8b5cf6",
  "protected": false,
  "createdAt": "2024-04-01T09:00:00.000Z"
}