---
title: "Create a directory"
method: POST
path: "/directories"
tags: ["Files"]
---

# Create a directory

`POST /directories`

Create a directory and any necessary parent directories

## Request body

- object
  - `path` string, required — The directory path to create

## Response `200`

Directory created successfully

- object
  - `path` string — The created directory path
  - `created` boolean — Whether the directory was created

## Other responses

- `500` — Internal server error

## Changes

- **2025-10-23** `8b6c1dcdb513` — 1 info
  - endpoint added
- **2025-08-05** `f3a20bfa8bea` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/changes/directories/post.md)

---

[API](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api.md) · [All operations](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humanlayer/humanlayer-daemon-rest-api/revisions/02da8cb8aa12/schema)
