---
title: "Get an environment"
method: GET
path: "/v1/environments/{environmentId}"
tags: ["environments"]
---

# Get an environment

`GET /v1/environments/{environmentId}`

Get an environment by ID

## Path parameters

- `environmentId` string, required — The ID of the environment

## Response `200`

The environment details

- object
  - `id` string, required
  - `name` string, required
  - `sourceBranch` string, nullable, required
  - `mcpServerUrl` string, required
  - `domains` string[], required
  - `createdAt` string, date-time, required
  - `projectId` string, required

## Other responses

- `400` — 400
- `404` — 404

## Changes

- **2026-08-11** `605de0884cc9` — 1 info
  - added the non-success response with the status `400`

[Change history](https://skmtc.dev/alpic/apis/alpic-api-2/changes/v1/environments/:environmentId/get.md)

---

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