---
title: "GET /api/files/roots"
method: GET
path: "/api/files/roots"
---

# GET /api/files/roots

`GET /api/files/roots`

## Request

- The document declares no server URL.
- Auth: none declared

## Response `200`

List roots shown in the file browser

- FileRootsResponse
  - `roots` FileRoot[], required
    - `isPrimary` boolean, required
    - `name` string, required
    - `path` string, required

## Changes

- **2026-09-03** `81ea6d40bd56`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/marimo-team/apis/marimo-api/changes/api/files/roots/get.md)

---

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