🎉 vox.ai 디스코드 커뮤니티가 새로 열렸어요! 참여하기 →
knowledge base 안에 text, webpage, file document를 생성합니다. document는 즉시 반환되며 처리는 비동기로 진행됩니다.
curl --request POST \
--url https://client-api.tryvox.co/v3/knowledges/{knowledge_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"document_type": "<string>",
"text": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledge_id": 123,
"name": "<string>",
"document_type": "file",
"status": "uploading",
"created_at": 123,
"upload_percentage": 50,
"token_count": 123,
"webpage_urls": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.tryvox.co/llms.txt
Use this file to discover all available pages before exploring further.
조직 API 키를 Authorization: Bearer <token> 형식으로 보냅니다.
GET /v3/knowledges에서 반환되는 숫자형 public knowledge ID입니다.
x >= 1document 생성 요청입니다. text와 webpage document는 JSON을 사용하고, file 업로드는 multipart form data를 사용합니다.
text 타입 document 생성 요청 (application/json).
name 은 공백 제외 1~255자. 정의되지 않은 필드를 보내면 400 (extra=forbid).
성공 응답
knowledge document 요약 응답입니다.
목록 조회와 생성 응답에서 공통으로 사용합니다.
knowledge document의 고유 식별자입니다.
상위 knowledge numeric public ID.
document 의 이름.
document 타입.
file, text, webpage document 처리 상태입니다. uploading에서 completed 또는 failed로 전이합니다.
uploading, completed, failed 리소스 생성 시각입니다. unix milliseconds 형식입니다.
업로드 진행률(%)입니다. status가 uploading일 때만 의미가 있습니다. 집계 전에는 null입니다.
0 <= x <= 100document 의 토큰 수. 처리 완료 전에는 null.
webpage document일 때만 값이 있습니다. 그 외에는 null입니다.
Was this page helpful?
curl --request POST \
--url https://client-api.tryvox.co/v3/knowledges/{knowledge_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"document_type": "<string>",
"text": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledge_id": 123,
"name": "<string>",
"document_type": "file",
"status": "uploading",
"created_at": 123,
"upload_percentage": 50,
"token_count": 123,
"webpage_urls": [
"<string>"
]
}