---
title: "Get Environment"
method: GET
path: "/v2/projects/{proj_id}/envs/{env_id}"
tags: ["Environments"]
---

# Get Environment

`GET /v2/projects/{proj_id}/envs/{env_id}`

Gets a single environment matching the given env_id, if such environment exists.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Response `200`

Successful Response

- EnvironmentReadWithEmailConfig
  - `key` string, required — A URL-friendly name of the environment (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the environment.
  - `id` string, uuid, required — Unique id of the environment
  - `organization_id` string, uuid, required — Unique id of the organization that the environment belongs to.
  - `project_id` string, uuid, required — Unique id of the project that the environment belongs to.
  - `created_at` string, date-time, required — Date and time when the environment was created (ISO_8601 format).
  - `updated_at` string, date-time, required — Date and time when the environment was last updated/modified (ISO_8601 format).
  - `avp_policy_store_id` string
  - `name` string, required — The name of the environment
  - `description` string — an optional longer description of the environment
  - `custom_branch_name` string — when using gitops feature, an optional branch name for the environment
  - `jwks` JwksConfig
    - `ttl` integer — JWKS cache TTL (in seconds)
    - `url` string — ...
    - `jwks` JwksObj
      - `keys` object[], required — The keys to match against the request headers
  - `settings` object — the settings for this environment
  - `email_configuration` string, uuid, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/permit/apis/permit-io-api.md) · [All operations](https://skmtc.net/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/permit/permit-io-api/versions/dd6be355a62e/schema)
