コンテンツにスキップ

Upload files such as PDFs to be processed and added to the Knowledge Base as articles.

このコンテンツはまだ日本語訳がありません。

Upload files to be processed and added to the Knowledge Base as articles.

Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/file_upload_api/pdf

Upload a PDF file. The content is extracted and added as an article.

Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/file_upload_api/pdf \
-H 'Authorization: Bearer <API_TOKEN>' \
-F 'pdf_file=@document.pdf'

Response 200 OK

{
"status": "success",
"message": "File processed successfully.",
"article": {
"id": 1234,
"title": "document.pdf"
}
}
FieldDescription
status
string
Processing status
message
string
Human-readable result message
article
object
The created article
Scope: write_all

POST https://app.quickchat.ai/v1/api/knowledge_base/file_upload_api/

Upload a supported file (PDF, DOCX). The content is extracted and added as an article.

Terminal window
curl -X POST https://app.quickchat.ai/v1/api/knowledge_base/file_upload_api/ \
-H 'Authorization: Bearer <API_TOKEN>' \
-F 'file=@document.docx'

Response 200 OK — Same schema as Upload PDF.