---
title: "List files in a folder"
method: GET
path: "/workspaces/{id}/files"
tags: ["Folders"]
---

# List files in a folder

`GET /workspaces/{id}/files`

## Request

- Base URL: `https://api.varg.ai/v2`
- URL: `https://api.varg.ai/v2/workspaces/{id}/files`
- Auth: HTTP bearer

Lists the folder's files, most recently added first. This endpoint has no tool, kind, search or favorites filters; use `GET /files` with the `workspace` query parameter for those.

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `cursor` integer

## Response `200`

Page of files

- FolderFileList
  - `data` FolderFile[], required
    - `id` string
    - `url` string
    - `media_type` string
    - `size_bytes` integer
    - `hash` string, nullable
    - `metadata` object, nullable
    - `filename` string, nullable
    - `title` string, nullable
    - `subtitle` string, nullable
    - `thumbnail_url` string, nullable
    - `origin` 'upload' | 'generated'
    - `created_by` string, uuid, nullable: Id of the user who created the file, when known.
    - `tool` string, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time, nullable
  - `nextCursor` integer, nullable, required

## Other responses

- `401`: Missing or invalid API key / JWT
- `404`: Unknown folder (or not owned by the caller)

## Changes

- **2026-10-20** `43bcf5ea398d`: 1 info
  - endpoint added

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

---

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