---
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

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
