获取文档详情
开发中
GET
/v1/knowledge-bases/{{index_id}}/documents/{{doc_id}}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.listenai.com/v1/knowledge-bases/{{index_id}}/documents/{{doc_id}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
data
object
必需
user_id
string
必需
index_id
string
必需
doc_name
string
必需
doc_id
string
必需
doc_url
string
必需
text_splitter
object
必需
content_length
integer
必需
status
integer
必需
created_at
string
必需
executed_at
string
必需
executed_id
string
必需
executed_note
string
必需
message
string
必需
示例
{
"data": {
"user_id": "16",
"index_id": "xxx",
"doc_name": "智能说明书.txt",
"doc_id": "xxx",
"doc_url": "https://cdn.iflyos.cn/xxx/智能说明书.txt",
"text_splitter": {
"method": "token",
"options": {
"chunk_size": 256,
"chunk_overlap": 20
}
},
"content_length": 9880,
"status": 1,
"created_at": "2023-08-16T06:49:55.820Z",
"executed_at": "2023-08-16T06:49:55.820Z",
"executed_id": "xxx",
"executed_note": ""
},
"message": "成功"
}
修改于 2023-09-06 04:41:33