---
title: "Create a gallery folder"
method: POST
path: "/v1/projectId/{projectId}/gallery/folders"
tags: ["Gallery"]
---

# Create a gallery folder

`POST /v1/projectId/{projectId}/gallery/folders`

## Request

- Base URL: `https://api.bluefox.email`
- URL: `https://api.bluefox.email/v1/projectId/{projectId}/gallery/folders`
- Auth: HTTP bearer

Defaults to creating the folder at the top level of this project's own tree. Pass parentFolderId (your own or an account-wide shared folder's id) to nest it there instead.

## Path parameters

- `projectId` string, required

## Request body

- GalleryFolderInput
  - `name` string, required
  - `parentFolderId` string: An existing folder _id to nest the new folder under - either one from this project's own tree, or an account-wide shared folder. Omit to create it at the top level of this project's own tree.

## Response `201`

Created

- object
  - `status` integer
  - `result` GalleryFolder: Every project gets its own slice of the account-wide media gallery, plus read/write access to any account-wide shared folder (one with no project of its own) - but never another project's own private folders.
    - `_id` string
    - `name` string
    - `parentFolderId` string, nullable: The parent folder's _id, or null if this folder is at the top level (either this project's own top level, or an account-wide shared folder itself). The project's own top level is implicit and has no id of its own - it is never returned as a folder, only referenced by omitting parentFolderId. A shared folder, in contrast, is returned as a normal folder with a real id.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
- `403`: Missing or invalid API key
- `404`: Parent folder not found

---

[API](https://skmtc.dev/bluefox/apis/bluefox-email-public-api.md) · [All operations](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluefox/apis/bluefox-email-public-api/revisions/fa1a0a835c7f?raw)
