---
title: "List folders"
method: GET
path: "/workspaces"
tags: ["Folders"]
---

# List folders

`GET /workspaces`

## Request

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

Lists the caller's folders. File counts are not included; use the single-folder endpoint for those.

## Query parameters

- `limit` integer
- `cursor` integer

## Response `200`

Page of folders

- FolderList
  - `data` Folder[], required
    - `id` string, uuid, required
    - `name` string, required
    - `slug` string, required: URL-safe identifier. Accepted anywhere a folder id is accepted. Not guaranteed unique.
    - `visibility` 'private' | 'public', required
    - `team_id` string, nullable, required: Set when the folder belongs to a team rather than a personal account.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable, required
    - `file_count` integer: Number of files in the folder. Only returned by create (always 0) and by get-one, not by the list endpoint.
  - `nextCursor` integer, nullable, required: Pass as `cursor` to fetch the next page. Null on the last page.

## Other responses

- `401`: Missing or invalid API key / JWT

## Changes

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

[Operation history](https://skmtc.dev/varg/apis/varg-api/changes/workspaces/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)
