---
title: "Read one saved version of an artifact file"
method: GET
path: "/api/v1/sessions/{sessionId}/artifact-versions/{version}"
tags: ["sessions"]
---

# Read one saved version of an artifact file

`GET /api/v1/sessions/{sessionId}/artifact-versions/{version}`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/sessions/{sessionId}/artifact-versions/{version}`
- Auth: none declared

## Path parameters

- `sessionId` string, required: Session identifier, e.g. project-1.
- `version` integer, required: Version number within the file's history.

## Query parameters

- `path` string: Artifact-directory-relative file path, as listed in the session's artifactFiles.

## Response `200`

OK

- ArtifactVersionResponse
  - `content` string, required: The version's UTF-8 text content, cut short when truncated is set.
  - `createdAt` string, date-time, required
  - `fileFingerprint` string, required: Hex SHA-256 of the version's content.
  - `harness` string: Best effort: the agent that was running the session when the version was recorded, which after an agent switch can differ from the agent that wrote it. Absent for older versions.
  - `path` string, required
  - `restoredFrom` integer: The version this one restored, when it is a restore.
  - `size` integer, required
  - `source` 'agent' | 'user', required: Who wrote the version: the agent, or the user through a save or restore.
  - `truncated` boolean: The content is only the first 256 KiB of the version. A restore still writes the whole version.
  - `version` integer, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 4 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `404`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `500`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-16** `289877ab84f4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/artifact-versions/:version/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
