Skip to main content
POST
/
v1
/
folders
Create a new folder
curl --request POST \
  --url http://localhost:3000/v1/folders \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "parentId": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "parentId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key (sk...)

Body

application/json
name
string
required

Name of the folder

parentId
string | null

Optional parent folder ID

Response

Folder created successfully

id
string

Unique identifier for the folder

name
string

Name of the folder

parentId
string | null

ID of the parent folder, if any

createdAt
string<date-time>

Timestamp when the folder was created

updatedAt
string<date-time>

Timestamp when the folder was last updated