---
title: "文档列表"
method: GET
path: "/llm-application/open/document"
tags: ["知识库 API"]
---

# 文档列表

`GET /llm-application/open/document`

获取指定知识库下的文档列表。点击 **Try it** 按钮可快速试用。

## Query parameters

- `knowledge_id` string, required
- `page` integer
- `size` integer
- `word` string

## Response `200`

请求成功

- KnowledgeDocumentListResponse
  - `data` object
    - `list` KnowledgeDocumentItem[]
      - `id` string — 文档id
      - `knowledge_type` integer — 文档切片类型
      - `custom_separator` string[] — 自定义分隔符
      - `sentence_size` integer — 切片字数
      - `length` integer — 文档长度
      - `word_num` integer — 字数
      - `name` string — 文档名称
      - `url` string — 文档URL
      - `embedding_stat` integer — 向量化状态
      - `failInfo` KnowledgeDocumentFailInfo
        - `embedding_code` integer — 向量化失败状态码
        - `embedding_msg` string — 向量化失败信息
    - `total` integer — 总数
  - `code` integer — 状态码
  - `message` string — 返回信息
  - `timestamp` integer — 时间戳

## Other responses

- `default` — 请求失败

---

[API](https://skmtc.net/bigmodel/apis/zhipu-ai-api.md) · [All operations](https://skmtc.net/bigmodel/apis/zhipu-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigmodel/zhipu-ai-api/revisions/37de2d7b73de/schema)
