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

# Get a folder

`GET /workspaces/{id}`

## Request

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

Returns one folder, including its `file_count`.

## Path parameters

- `id` string, required

## Response `200`

The folder

- FolderEnvelope
  - `workspace` Folder, required: A folder that groups files. Folders are shared with the dashboard, so a folder created through the API appears in the web app.
    - `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.

## 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/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)
