---
title: "Read an Environment"
method: GET
path: "/environments/{environment_id}"
tags: ["Environments"]
---

# Read an Environment

`GET /environments/{environment_id}`

Get all the properties of a single Environment

## Path parameters

- `environment_id` integer, required

## Response `200`

Successfully retrieved the Environment

- Environment
  - `archived` boolean — Boolean representing whether the Environment is archived.
  - `created` string — Created time.
  - `datafile` Datafile
    - `id` integer — ID of Datafile.
    - `latest_file_size` integer — The current size in bytes of the Datafile.
    - `other_urls` string[] — List of other URLs where this Datafile is also available.
    - `revision` integer — Current revision number.
    - `sdk_key` string — Unique key to identify this specific Environment and Datafile programmatically in our SDKs.
    - `url` string, url — URL where this Datafile is available.
  - `description` string — A short description of the Environment.
  - `has_restricted_permissions` boolean — Boolean representing whether starting experiments should be restricted to publishers and above in this Environment.
  - `id` integer — ID of this Environment.
  - `is_primary` boolean — Boolean representing if this is the primary (default) Environment.
  - `key` string, required — Unique string identifier for this Environment within the Project.
  - `last_modified` string — Last modification time.
  - `name` string, required — Name of the Environment.
  - `priority` integer — Integer representing the priority of the Environment. This is used for ordering in the UI.
  - `project_id` integer, required — ID of the project of the Environment.

## Other responses

- `401` — Invalid credentials
- `403` — You do not have permission to access specified Environment
- `404` — Environment not found
- `default` — Unexpected error

---

[API](https://skmtc.dev/optimizely/apis/optimizely-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-api/revisions/5151fe6a2297/schema)
