QamaqQamaq
GET

获取文件内容

/knowledge/{file_id}/content

返回文件的提取文本内容。

参数

路径参数

名称类型描述
file_id必填
string

The file ID

查询参数

名称类型描述
max_length
integer

Maximum content length to return

默认值: 10000

代码示例

curl -X GET "https://api.qamaq.io/api/v1/knowledge/{file_id}/content" \
  -H "Authorization: Bearer qmq_your_api_key"

响应

200File content

Response Body

{
id:string
name:string
content:string

Plain text content

content_type:string

Content type (text, markdown, extracted_text)

truncated:boolean
total_length:integer
}