---
title: "POST /api/home/workspace_files"
method: POST
path: "/api/home/workspace_files"
---

# POST /api/home/workspace_files

`POST /api/home/workspace_files`

## Request body

- WorkspaceFilesRequest
  - `includeMarkdown` boolean

## Response `200`

Get the files in the workspace

- WorkspaceFilesResponse
  - `fileCount` integer
  - `files` FileInfo[], required
    - `children` FileInfo[]
    - `id` string, required
    - `isDirectory` boolean, required
    - `isMarimoFile` boolean, required
    - `lastModified` number, nullable
    - `name` string, required
    - `opengraph` OpenGraphMetadata — OpenGraph-style metadata for a notebook. The `image` field may be either: - a relative path (typically under `__marimo__/`), or - an absolute HTTPS URL.
      - `description` string, nullable
      - `image` string, nullable
      - `title` string, nullable
    - `path` string, required
    - `size` integer, nullable
  - `hasMore` boolean
  - `root` string, required

## Changes

> 60 revisions in range; 3 could not be searched.

- **2026-07-24** `a6054d54dad6` — 1 info
  - added the optional property `files/items/size` to the response with the `200` status

[Change history](https://skmtc.dev/marimo-team/apis/marimo-api/changes/api/home/workspace_files/post.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-service-production.skmtc.workers.dev/v1/apis/marimo-team/marimo-api/revisions/a39082aac3ce/schema)
