---
title: "Retrieve environment"
method: GET
path: "/api/v1/environments/{id}"
tags: ["Environments"]
---

# Retrieve environment

`GET /api/v1/environments/{id}`

Returns one server-managed environment definition by id.

## Path parameters

- `id` string, required

## Response `200`

Environment definition

- Environment — Public server-managed environment definition.
  - `id` string, required
  - `revision` string, required — Stable revision used with `If-Match` for optimistic concurrency.
  - `provider` string, required — Sandbox provider kind. `local`, `docker`, and `daytona` are bundled with the server; any other value names a sandbox-driver plugin configured under `server.sandbox.providers.<kind>`.
  - `cwd` string, nullable — Local-provider command working directory for this environment. Docker and Daytona ignore this value.
  - `image` EnvironmentApiImageSettings, required — REST-safe environment image settings. Dockerfile sources are inline-only; local paths are rejected by the REST API.
    - `docker` string, nullable, required
    - `dockerfile` EnvironmentApiDockerfileSourceInline, required
      - `type` 'inline', required
      - `value` string, required
  - `resources` EnvironmentResourcesSettings, required
    - `cpu` integer, nullable, required
    - `memory` string, nullable, required
    - `disk` string, nullable, required
  - `network` EnvironmentNetworkSettings, required
    - `mode` 'allow_all' | 'block' | 'cidr_allow_list', required
    - `allow` string[], required
  - `lifecycle` EnvironmentLifecycleSettings, required
    - `preserve` boolean, required
    - `stop_on_terminal` boolean, required
    - `auto_stop` string, nullable, required
  - `labels` StringMap, required
  - `env` object, required

## Other responses

- `400` — Invalid environment id
- `404` — Environment not found
- `500` — Environment store operation failed

## Changes

- **2026-09-10** `478e995209e9` — 4 info
  - removed the `daytona` enum value from the `provider` response property for the response status `200`
  - removed the `docker` enum value from the `provider` response property for the response status `200`
  - removed the `local` enum value from the `provider` response property for the response status `200`
  - the `provider` response's property pattern `^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$` was added for the status `200`
- **2026-09-09** `64d7e2ed03af` — 3 warning, 1 info
  - added the new `daytona` enum value to the `provider` response property for the response status `200`
  - added the new `docker` enum value to the `provider` response property for the response status `200`
  - added the new `local` enum value to the `provider` response property for the response status `200`
  - the `provider` response's property pattern `^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$` was removed for the status `200`
- **2026-09-08** `9aaa5d3a64cc` — 4 info
  - removed the `daytona` enum value from the `provider` response property for the response status `200`
  - removed the `docker` enum value from the `provider` response property for the response status `200`
  - removed the `local` enum value from the `provider` response property for the response status `200`
  - the `provider` response's property pattern `^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$` was added for the status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/fabro-sh/apis/fabro-run-api/changes/api/v1/environments/:id/get.md)

---

[API](https://skmtc.dev/fabro-sh/apis/fabro-run-api.md) · [All operations](https://skmtc.dev/fabro-sh/apis/fabro-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fabro-sh/apis/fabro-run-api/revisions/1258a4cf33df?raw)
