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

---
title: "Create environment"
description: "Create environment"
api: "POST /api/v0/projects/{projectId}/environments"
gridGap: 30
---

<Aside full>

<RequestExample>

```bash lines=false
curl -X POST "https://api.example.com/api/v0/projects/<projectId>/environments" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "slug": "string"
}'
```

</RequestExample>

</Aside>

<OpenAPIEndpoint {...{"method":"post","path":"/api/v0/projects/{projectId}/environments","summary":"Create environment","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"contentType":"application/json","schema":{"type":"object","required":["name","slug"],"properties":{"name":{"type":"string"},"slug":{"type":"string"}}}},"responses":[{"status":"200","description":"","schema":{"type":"object","required":["ok","id","name","slug","projectId"],"properties":{"ok":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"projectId":{"type":"string"}}}},{"status":"404","description":"","schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}},{"status":"default","description":""}],"security":[],"servers":[]}} />

---

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