---
title: "Create workspace folder"
method: POST
path: "/api/workspace/folders"
tags: ["workspace"]
---

# Create workspace folder

`POST /api/workspace/folders`

## Request body

- WorkspaceFolderCreateRequest
  - `name` string, required
  - `icon` string, nullable

## Response `201`

Successful Response

- WorkspaceFolder — Pydantic model for UserWorkspaceFolder, safe for RPC transport.
  - `id` string, required
  - `workspace_id` string, required
  - `name` string, required
  - `icon` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `file_count` integer

## Other responses

- `401` — Authentication required
- `409` — A folder with this name already exists
- `422` — Validation Error

## Changes

- **2026-07-01** `8b9989912718` — 1 info
  - endpoint added
- **2026-04-30** `8c84efcb3afb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/workspace/folders/post.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/revisions/5dc375899754/schema)
