cURL
curl --request POST \ --url https://api.example.com/api/documents/assistant/folders \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "name": "Product Documentation" } '
{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Product Documentation", "icon": "📚", "sort_order": 0, "client_id": "<string>", "created_at": "2024-01-15T10:00:00.000Z" }
Create a new knowledge base folder to organize documents.
API key needed to authorize the request
Folder details
Folder name
"Product Documentation"
Optional icon/emoji for the folder
"📚"
Optional sort order (default: 0)
0
Optional parent folder ID for nested folders
null
Folder created successfully.
"550e8400-e29b-41d4-a716-446655440000"
"2024-01-15T10:00:00.000Z"
Was this page helpful?