---
title: "handle get environments in family"
method: GET
path: "/api/v1/deploy/application/project/family/environments"
tags: ["api/v1/deploy", "application"]
---

# handle get environments in family

`GET /api/v1/deploy/application/project/family/environments`

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/deploy/controller.(*DeployController).HandleGetEnvironmentsInFamily`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func2`

---

## Headers

- `Accept` string

## Response `200`

OK

- EnvironmentsInFamilyResponse — EnvironmentsInFamilyResponse schema
  - `data` object
    - `environments` string[]
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/nixopus/apis/openapi/revisions/351ecc325873?raw)
