---
title: "List the files in the task's file space [read]"
method: GET
path: "/tasks/{id}/files"
tags: ["tasks"]
---

# List the files in the task's file space \[read\]

`GET /tasks/{id}/files`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/tasks/{id}/files`
- Auth: HTTP bearer

The folder every session of the task has at `/workspace/task/`: a handoff session and a helper see the same files as the session that wrote them. Current files only, by path. Answers 503 `not_migrated` until the platform's task file tables are in place.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `files` TaskFile[], required
    - `path` string, required
    - `size_bytes` integer, required
    - `sha256` string, required
    - `updated_at` string, date-time, required
    - `updated_by_session` string, nullable, required: The session that last wrote it; null when a person or developer did

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - added the optional property `error/request_id` to the response with the `default` status

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/tasks/:id/files/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
