---
title: "Workspace File History"
method: GET
path: "/v1/workspaces/{workspace}/files/history"
tags: ["v1", "protected", "files"]
---

# Workspace File History

`GET /v1/workspaces/{workspace}/files/history`

Return the provenance trail for a workspace file, newest event first.

## Path parameters

- `workspace` string, required — Slug of the workspace the request acts in

## Query parameters

- `path` string, required

## Response `200`

Successful Response

- ArtifactHistoryResponse
  - `events` ArtifactEventResponse[], required
    - `action` string, required
    - `actor_type` string, required
    - `agent_id` string, nullable
    - `created_at` string, required
    - `created_by` string, required
    - `task_id` string, nullable
  - `path` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `d3ad8e1a3681` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/files/history/get.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentarea/apis/agentarea-api/revisions/286327d8bd86?raw)
