Skip to main content
POST
/
v1
/
workspaces
/
{id}
/
folders
Create a folder
curl --request POST \
  --url https://api.example.com/v1/workspaces/{id}/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "parentFolderId": "<string>"
}
'
{
  "depth": 123,
  "id": "<string>",
  "name": "<string>",
  "nbAssociatedContents": 123,
  "parentFolderId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.semji.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_. Generate one in Settings > API Keys.

Path Parameters

id
string
required

Workspace ID.

Body

application/json
name
string
required

Name of the folder.

Minimum string length: 1
parentFolderId
string | null

Parent folder ID (null or omitted = root).

Response

201 - application/json

Default Response

depth
integer
required

Nesting depth (0 = root).

id
string
required

Unique identifier of the folder.

name
string | null
required

Folder name.

nbAssociatedContents
integer
required

Number of contents in this folder.

parentFolderId
string | null
required

ID of the parent folder (null = root).