지식 베이스
Create knowledge base
Call the file upload endpoint first to obtain the knowledge base file path.
POST
/openapi/knowledge/create요청
매개변수
Authorizationstring필수헤더 · Authentication token
요청 본문
namestring필수
Knowledge base name
filesobject[]필수
File list
[].filePathstring필수
Uploaded file path
[].dataRowNuminteger
Row where the body content starts
[].indexColumnNuminteger[]
List of columns to index
[].separatorstring
Text separators (multiple values allowed, separated by spaces)
[].chunkSizeinteger
Maximum characters per chunk
응답
200 OK
knowledge_codestring필수
Knowledge base code
샘플 코드
curl -X POST 'https://openapi.voicefox.ai/openapi/knowledge/create' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"files": [
{
"filePath": "string",
"dataRowNum": 0,
"indexColumnNum": [
0
],
"separator": "string",
"chunkSize": 0
}
]
}'응답 예시
{
"knowledge_code": "string"
}