POST
Create a new directory (folder)
Request · Response · Guide: Folders
Directories can be nested by providing a parentId to create subdirectories. The system enforces a maximum directory depth limit (configurable via system settings, default is 1 level).Request Body Parameters:
  • name (required): The name of the directory
  • description (optional): A description for the directory
  • parentId (optional): The ID of the parent directory to create a subdirectory. If not provided, the directory will be created at the root level
Response:The response includes the created directory object with:
  • Basic information: id, name, description, status
  • Hierarchy information: parentId, depth
  • Metadata: userId, organizationId, workspaceId, createdBy, lastModifiedBy, etc.
  • Timestamps: createdAt, updatedAt
Notes:
  • The directory is created with status: “active” by default
  • The authenticated user becomes the owner of the directory
  • Directory depth is automatically calculated based on parent hierarchy

Authorizations

x-api-key
string
header
required

API key for authentication

Headers

Idempotency-Key
string

Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.

Body

application/json
name
string
required

Directory name

Example:

"Directory 1"

description
string

Directory description

Example:

"Description"

parentId
string

Parent directory id

Example:

"649e2d2d2d2d2d2d2d2d2d2d"

isActive
boolean
default:true

Is active

Example:

true

Response

The directory is created

success
boolean
directory
object