---
title: "Fetch Environment Revision"
method: GET
path: "/environments/revisions/{environment_revision_id}"
tags: ["Environments"]
---

# Fetch Environment Revision

`GET /environments/revisions/{environment_revision_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/environments/revisions/{environment_revision_id}`
- Auth: API key in header `Authorization`

## Path parameters

- `environment_revision_id` string, uuid, required

## Response `200`

Successful Response

- EnvironmentRevisionResponse
  - `support_id` string, nullable
  - `support_ts` string, date-time, nullable
  - `count` integer
  - `environment_revision` EnvironmentRevision
    - `environment_variant_id` string, uuid, nullable
    - `variant_id` string, uuid, nullable
    - `environment_id` string, uuid, nullable
    - `artifact_id` string, uuid, nullable
    - `author` string, uuid, nullable
    - `date` string, date-time, nullable
    - `message` string, nullable
    - `flags` object, nullable
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `version` string, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
    - `data` EnvironmentRevisionData: Per-app references for environment revision data. Keys are app-scoped identifiers (e.g., ``"pre.revision"``). Values are dicts of entity-type → Reference, providing full traceability:: { "pre.revision": { "application": Reference(id=..., slug=..., version=...), "application_variant": Reference(id=..., slug=..., version=...), "application_revision": Reference(id=..., slug=..., version=...), }, ... }
      - `references` object, nullable
  - `resolution_info` ResolutionInfo
    - `references_used` object[], required
    - `depth_reached` integer, required
    - `embeds_resolved` integer, required
    - `errors` string[]

## Other responses

- `422`: Validation Error

## Changes

- **2026-04-23** `925e8b901a26`: 2 info
  - added the optional property `support_id` to the response with the `200` status
  - added the optional property `support_ts` to the response with the `200` status
- **2026-04-18** `c469c2f6cdba`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/environments/revisions/:environment_revision_id/get.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) - [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/911adb12ae11?raw)
