---
title: "Get environment by ID"
method: GET
path: "/environment/{environmentId}"
tags: ["Environment Main Calls"]
---

# Get environment by ID

`GET /environment/{environmentId}`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/environment/{environmentId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/environment/:environmentId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `environmentId` string, uuid, required

## Response `200`

Get environment by ID

- Environment
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time
  - `name` string, required: name is case insensitive
  - `organization` ReferenceObject, required
    - `id` string, uuid, required
  - `project` ReferenceObject, required
    - `id` string, uuid, required
  - `last_updated_by` string, uuid: uuid of the user that made the last update
  - `cloud_provider` object, required
    - `provider` string
    - `cluster` string
  - `mode` 'DEVELOPMENT' | 'PREVIEW' | 'PRODUCTION' | 'STAGING', required
  - `cluster_id` string, uuid, required
  - `cluster_name` string, string

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
