> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "List environments"
description: "List environments"
api: "GET /api/v0/projects/{projectId}/environments"
gridGap: 30
---

<Aside full>

<RequestExample>

```bash lines=false
curl -X GET "https://api.example.com/api/v0/projects/<projectId>/environments"
```

</RequestExample>

</Aside>

<OpenAPIEndpoint {...{"method":"get","path":"/api/v0/projects/{projectId}/environments","summary":"List environments","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":[{"status":"200","description":"","schema":{"type":"object","required":["projectId","environments"],"properties":{"projectId":{"type":"string"},"environments":{"type":"array","items":{"type":"object","required":["id","projectId","name","slug","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{},"updatedAt":{}}}}}}},{"status":"404","description":"","schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}},{"status":"default","description":""}],"security":[],"servers":[]}} />

---

*Powered by [holocron.so](https://holocron.so)*
