---
title: "List workspace folders"
method: GET
path: "/api/workspace/folders"
tags: ["workspace"]
---

# List workspace folders

`GET /api/workspace/folders`

Every folder in the workspace, flat; nesting is read off ``parent_id``.

``file_count`` counts the files directly in each folder, not its subtree.

## Response `200`

Successful Response

- WorkspaceFolderListResponse
  - `folders` WorkspaceFolder[], required
    - `id` string, required
    - `workspace_id` string, required
    - `name` string, required
    - `icon` string, nullable
    - `parent_id` string, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `file_count` integer

## Other responses

- `401` — Authentication required

## Changes

- **2026-09-23** `7c34110a3072` — 1 info
  - added the optional property `folders/items/parent_id` to the response with the `200` status
- **2026-07-01** `8b9989912718` — 1 info
  - endpoint added
- **2026-04-30** `8c84efcb3afb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/workspace/folders/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/b84a51b99815?raw)
