Skip to main content
GET
从文档获取分段

Authorizations

Authorization
string
header
required

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401unauthorized)。

Path Parameters

dataset_id
string<uuid>
required

知识库 ID。从 获取知识库列表 获取。

document_id
string<uuid>
required

文档 ID。从 获取知识库的文档列表 获取。

Query Parameters

page
integer
default:1

页码。

Required range: x >= 1
limit
integer
default:20

每页的项目数量。服务器上限为 100

Required range: x >= 1
status
string[]

按索引状态筛选分段,例如 completedindexingerror

keyword
string

搜索关键词。

Response

分段列表。

data
object[]

分段列表。

doc_form
string

该文档使用的分块模式。

total
integer

匹配的分段总数。

has_more
boolean

下一页是否还有更多项目。

limit
integer

每页条目数。

page
integer

当前页码。

Last modified on July 17, 2026