QamaqQamaq
POST

Upload file

/knowledge

Uploads a file to the knowledge base. Files are automatically processed for text extraction and vectorization.

Request Body

multipart/form-datarequired
{
file*:string (binary)

The file to upload

folder_id:string

Folder to upload to

description:string

File description

tags:string

Comma-separated tags

}

Code Examples

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

Responses

201File uploaded successfully

Response Body

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