---
title: "Create Workspace Directory"
method: POST
path: "/v1/files/directories"
tags: ["v1", "protected", "files"]
---

# Create Workspace Directory

`POST /v1/files/directories`

Persist an empty workspace folder as a trailing-slash object marker.

## Request body

- CreateWorkspaceDirectoryRequest
  - `path` string, required

## Response `201`

Successful Response

- WorkspaceDirectoryResponse
  - `path` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-17** `e641bee7f63d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/files/directories/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentarea/apis/agentarea-api/revisions/7eafe882ff77?raw)
