file_key 批量解析文件内容为纯文本(同步返回)。支持有文本层的格式:pdf / docx / doc / pptx / xlsx / xls / csv / txt / md / html / json / xml。content。>50MB 文件跳过解析返回空 content。没抽到内容且可明确归因时带 reason 字段(unsupported_file_type / file_too_large / extract_failed)。跨工作区的 file_key 不出现在返回中。单次最多 20 个。Authorization: Bearer ********************{
"file_keys": [
"fk_xxx1",
"fk_xxx2"
]
}curl --location 'https://app.emooai.com/open-api/v1/data/files/extract-content' \
--header 'Emoo-User-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"file_keys": [
"fk_xxx1",
"fk_xxx2"
]
}'{
"code": 200,
"message": "success",
"data": [
{
"file_key": "fk_xxx1",
"content": "第一章 报告概述\n..."
},
{
"file_key": "fk_xxx2",
"content": "",
"reason": "unsupported_file_type"
},
{
"file_key": "fk_xxx3",
"content": ""
}
]
}