Skip to main content
GET
/
v1
/
projects
/
{projectId}
/
environments
curl https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments \
  -H "Authorization: Bearer <server_key>"

curl "https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments?slug=production" \
 -H "Authorization: Bearer <server_key>"

{
  "items": [
    {
      "id": "env_01hx...",
      "orgId": "org_01hx...",
      "projectId": "proj_01hx...",
      "name": "Production",
      "slug": "production",
      "color": "#ef4444",
      "protected": false,
      "createdAt": "2024-03-01T12:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "hasMore": false
}

Path parameters

projectId
string
required

Query parameters

limit
number
Page size. 1–100, default 50.
cursor
number
Timestamp cursor from a previous response’s nextCursor.
slug
string
Optional exact slug filter. When provided, results are constrained to at most one environment.
When slug is present:
  • cursor is not allowed (422 VALIDATION_ERROR)
  • limit is ignored and internally forced to 1
curl https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments \
  -H "Authorization: Bearer <server_key>"

curl "https://nest.feather.mupeni.dev/v1/projects/proj_01hx.../environments?slug=production" \
 -H "Authorization: Bearer <server_key>"

{
  "items": [
    {
      "id": "env_01hx...",
      "orgId": "org_01hx...",
      "projectId": "proj_01hx...",
      "name": "Production",
      "slug": "production",
      "color": "#ef4444",
      "protected": false,
      "createdAt": "2024-03-01T12:00:00.000Z"
    }
  ],
  "nextCursor": null,
  "hasMore": false
}