---
title: "List files on the project drive"
method: GET
path: "/v1/projects/{id}/drive"
tags: ["Project drive"]
---

# List files on the project drive

`GET /v1/projects/{id}/drive`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/projects/{id}/drive`
- Auth: HTTP bearer

The current files under `prefix` (default: all), in path order (byte order).

## Path parameters

- `id` string, uuid, required

## Query parameters

- `prefix` string
- `limit` integer
- `cursor` string

## Response `200`

Default Response

- object
  - `data` DriveFile[], required
    - `project_id` string, uuid, required: UUIDv7, lowercase canonical form.
    - `path` string, required: Relative to the project space root.
    - `sha256` string, required: This version’s bytes; GET …/drive/{path}?sha256=<this> reads exactly this version, also after the path changes.
    - `size` integer, required
    - `content_type` string, required
    - `conversation_id` string, nullable, required: The conversation whose agent wrote this version, when an agent did.
    - `created_at` string, date-time, required: RFC 3339 UTC timestamp with Z.
    - `current` boolean, required: This is the path’s current version (false: a later write or a delete superseded it).
  - `next_cursor` string, nullable, required: Pass it as `cursor` for the next page; null on the last.

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

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