Skip to main content
POST
/
v1
/
voiceai
/
knowledge-base
/
folder
Create Folder
curl --request POST \
  --url https://api.example.com/v1/voiceai/knowledge-base/folder \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "folder_path": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for programmatic access

Body

application/json

Request body for POST /knowledge-base/folder endpoint. Creates a folder to organize knowledge base documents.

name
string
required

The name of the folder.

Minimum string length: 1
parent_folder_id
string | null

If set, the created folder will be placed inside the given parent folder.

Response

Successful Response

Response model for all document creation endpoints (URL, text, file). Returns the created document's ID, name, and folder path.

id
string
required

The ID of the created document

name
string
required

The name of the created document

folder_path
KnowledgeBaseFolderPathSegmentResponseModel · object[]

The folder path segments leading to this entity, from root to parent folder.