---
title: "获取页面内容"
method: POST
path: "/v1/page/{domain}"
language: "zh-Hans"
---

# 获取页面内容

`POST /v1/page/{domain}`

## Request

- Base URL: `https://api.mintlify.com/discovery`
- URL: `https://api.mintlify.com/discovery/v1/page/{domain}`
- Auth: HTTP bearer

通过路径检索特定文档页面的完整文本内容。在搜索之后使用此接口来获取匹配页面的完整内容。

使用 assistant API 密钥进行身份验证。页面内容请求不消耗额度。

## Path parameters

- `domain` string, required

## Request body

- object
  - `path` string, required: 要检索内容的页面路径或 slug。对应于 [Search documentation](/zh/api/assistant/search) 端点返回的 `path` 字段。
  - `groups` string[]: 你为其读取内容的用户所属的可选分组。如果省略 `groups`，你只能读取公开页面及其公开部分。在所有页面都需要身份验证的部署上，省略 `groups` 等同于传入空数组。空数组表示一个没有分组的已登录用户：你还可以读取对所有已登录用户开放的页面。传入分组时，你还可以读取仅限其中至少一个分组访问的页面。用户无法查看的 `<Visibility>` 部分会从页面中移除。Mintlify 不会验证分组成员身份，因此你的后端必须为每个用户选择分组。在包含公开页面的受密码保护部署上，传入空数组即可读取未标记为公开的页面。

## Response `200`

页面内容检索成功

- object
  - `path` string: 所请求的页面路径。
  - `content` string: 页面的完整文本内容。

## Other responses

- `400`: `path` 缺失或为空，或者 `groups` 不是字符串数组。响应体会描述具体错误。
- `401`: API 密钥缺失或无效。
- `403`: 你的 API 密钥无权访问此 domain、你的套餐不包含 assistant API 访问权限，或者你的请求来自不在 API 密钥允许列表中的 IP 地址。
- `404`: 该 domain 不存在文档站点、该站点没有搜索索引，或该路径下不存在页面。
- `429`: 你已超出每个组织每小时 10,000 个请求的速率限制。
- `500`: 发生了意外的服务器错误。请重试该请求。如果错误仍然存在，请联系支持团队。

## Changes

- **2026-10-30** `32c3b9d9e79d`: 5 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `429`
  - …1 more
- **2026-07-23** `98b9bd030d2c`: 1 info
  - added the new optional request property `groups`
- **2026-04-01** `ff82ed767938`: 1 breaking, 2 warning, 1 info
  - added the new required request property `path`
  - removed the request property `page`
  - removed the optional property `page` from the response with the `200` status
  - added the optional property `path` to the response with the `200` status
- **2026-04-01** `67000e1e9dbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/zh/changes/v1/page/:domain/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/zh.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/zh/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-assistant-api/zh/revisions/3f4639affb6e?raw)
