---
title: "文档详情"
method: GET
path: "/llm-application/open/document/{id}"
tags: ["知识库 API"]
---

# 文档详情

`GET /llm-application/open/document/{id}`

根据文档`ID`获取文档详情。点击 **Try it** 按钮可快速试用。

## Path parameters

- `id` string, required

## Response `200`

请求成功

- KnowledgeDocumentDetailResponse
  - `data` 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 — 向量化失败信息
  - `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)
