QamaqQamaq
POST

ファイルをアップロード

/knowledge

ナレッジベースにファイルをアップロードします。ファイルはテキスト抽出とベクトル化のために自動的に処理されます。

リクエストボディ

multipart/form-data必須
{
file*:string (binary)

The file to upload

folder_id:string

Folder to upload to

description:string

File description

tags:string

Comma-separated tags

}

コード例

curl -X POST "https://api.qamaq.io/api/v1/knowledge" \
  -H "Authorization: Bearer qmq_your_api_key"

レスポンス

201File uploaded successfully

Response Body

{
id:string
name:string
status:string
message:string
}