cURL
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>" } ] }
Create a folder to organize knowledge base documents.
API key for programmatic access
Request body for POST /knowledge-base/folder endpoint. Creates a folder to organize knowledge base documents.
The name of the folder.
1
If set, the created folder will be placed inside the given parent folder.
Successful Response
Response model for all document creation endpoints (URL, text, file). Returns the created document's ID, name, and folder path.
The ID of the created document
The name of the created document
The folder path segments leading to this entity, from root to parent folder.
Show child attributes