GET
获取文件内容
/knowledge/{file_id}/content返回文件的提取文本内容。
参数
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
file_id必填 | string | The file ID |
查询参数
| 名称 | 类型 | 描述 |
|---|---|---|
max_length | integer | Maximum content length to return 默认值: |
代码示例
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:stringname:stringcontent:stringPlain text content
content_type:stringContent type (text, markdown, extracted_text)
truncated:booleantotal_length:integer}