---
title: "Get or create a project folder"
method: POST
path: "/workspaces/{workspaceId}/folders"
tags: ["Projects"]
---

# Get or create a project folder

`POST /workspaces/{workspaceId}/folders`

## Request

- Base URL: `https://app.flora.ai/api/v1`
- URL: `https://app.flora.ai/api/v1/workspaces/{workspaceId}/folders`
- Auth: HTTP bearer

Resolves the workspace's shared project folder with the given name, creating it if it does not exist yet. Idempotent: repeated calls with the same name return the same folder, with `created` marking whether this call made it. Shared folders only — private folders are neither matched nor created. Pair with POST /workspaces/{workspace_id}/folders/{folder_id}/projects to file new projects into the folder.

## Path parameters

- `workspaceId` string, required: Workspace identifier

## Request body

- object
  - `name` string, required: Folder name

## Response `200`

Folder returned (created or pre-existing).

- object
  - `folder_id` string, required: Project folder identifier
  - `name` string, required: Folder name
  - `workspace_id` string, required: Workspace identifier
  - `created` boolean, required: True when this call created the folder; false when it already existed

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `429`: 429
- `500`: 500
- `503`: 503

## Changes

- **2026-10-28** `a8351619f225`: 9 warning
  - added the new `not_configured` enum value to the `error/code` response property for the response status `400`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `401`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `402`
  - added the new `not_configured` enum value to the `error/code` response property for the response status `403`
  - …5 more
- **2026-10-16** `e54130373b10`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/changes/workspaces/:workspaceId/folders/post.md)

---

[API](https://skmtc.dev/florafauna-ai/apis/flora-ai-api.md) - [All operations](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/florafauna-ai/apis/flora-ai-api/revisions/87cfe2c4ac29?raw)
