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

# List folders

`GET /api/v1/folders`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/folders`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns every active folder in the organization as a flat list with id, name, parent id, and path. Reconstruct the hierarchy from parentId, or address folders by path on the file endpoints.

## Response `200`

The organization's active folders.

- object
  - `folders` object[], required
    - `id` string, required
    - `name` string, required
    - `parentId` string, nullable, required: The parent folder's id, or null for a top-level folder.
    - `path` string, required: The folder's full path. Paths change on rename; store ids.

## Other responses

- `401`: Authentication is missing or invalid.
- `429`: Too many requests; retry after the indicated delay.

---

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