v1

latestOpenAPI 3.0.02026-07-2612645160.3 KB
Assistant Documents

Create a new folder

Create a new knowledge base folder to organize documents.

post/api/documents/assistant/folders

Headers

x-api-keystring required

API key needed to authorize the request

Request body

namestring required

Folder name

iconstring

Optional icon/emoji for the folder

sort_ordernumber

Optional sort order (default: 0)

parent_folder_idstring

Optional parent folder ID for nested folders

Example request

{
  "name": "Product Documentation",
  "icon": "📚"
}

Response

Folder created successfully.

idstring
namestring
iconstring
sort_ordernumber
client_idstring
created_atstring

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Product Documentation",
  "icon": "📚",
  "created_at": "2024-01-15T10:00:00.000Z"
}