---
title: "获取部署状态"
method: GET
path: "/project/update-status/{statusId}"
language: "zh-Hans"
---

# 获取部署状态

`GET /project/update-status/{statusId}`

## Request

- Base URL: `https://api.mintlify.com/v1`
- URL: `https://api.mintlify.com/v1/project/update-status/{statusId}`
- Auth: HTTP bearer

通过状态 ID 获取部署更新的状态。

使用管理员 API 密钥进行身份验证。

## Path parameters

- `statusId` string, required

## Response `200`

更新的状态。

- object
  - `_id` string: 已触发更新项的状态 ID。
  - `projectId` string: 文档项目的 ID。
  - `createdAt` string: 具有指定 UTC 日期时间的 ISODate
  - `endedAt` string: 包含指定 UTC 日期时间的 ISODate
  - `status` 'queued' | 'in_progress' | 'success' | 'failure' | 'skipped': 更新状态。
  - `summary` string: 更新状态概览
  - `logs` string[]: 一组日志。
  - `subdomain` string: 正在更新的文档站点的子域。
  - `screenshot` string: 文档截图。
  - `screenshotLight` string: 文档截图。
  - `screenshotDark` string: 文档在深色模式下的截图。
  - `author` object, nullable: 此更新的作者。
    - `name` string: 作者的名称。
    - `avatarUrl` string: 作者头像的 URL。
    - `githubUserId` number: 作者的 GitHub 用户 ID。
  - `commit` object: 提交详情
    - `sha` string: 提交的 SHA 哈希值。
    - `ref` string: 该提交的 ref。
    - `message` string: 提交信息。
    - `filesChanged` object: 更改文件的详细信息。
      - `added` string[]: 已添加新文件。
      - `modified` string[]: 已被修改的现有文件。
      - `removed` string[]: 已删除的文件。
  - `source` 'internal' | 'github-app-installation' | 'api' | 'github' | 'dashboard' | 'gitlab' | 'onboarding': 更新触发器的来源。

## Other responses

- `401`: API 密钥缺失或无效、该更新属于你组织之外的项目，或者你的方案不包含 API 访问权限。
- `403`: 你的请求来自不在 API 密钥允许列表中的 IP 地址。
- `404`: 不存在具有此状态 ID 的更新。
- `429`: 你已超出速率限制：每个组织每 10 秒 20 个请求。
- `500`: 此更新所属的项目已不存在。

## Changes

- **2026-11-10** `e670268dd03a`: 1 warning
  - added the new `skipped` enum value to the `status` response property for the response status `200`
- **2026-10-30** `bf07d949aec9`: 5 info
  - 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 `404`
  - added the non-success response with the status `429`
  - …1 more
- **2026-03-27** `ab79ccdafe3e`: 1 warning
  - added the new `onboarding` enum value to the `source` response property for the response status `200`
- **2026-03-23** `2dfd81d8a868`: 2 breaking, 1 warning, 3 info
  - the response property `author` became nullable for the status `200`
  - the `author` response's property type changed from `string` to `object` for status `200`
  - added the new `gitlab` enum value to the `source` response property for the response status `200`
  - added the optional property `author/avatarUrl` to the response with the `200` status
  - …2 more

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-external-api/zh/changes/project/update-status/:statusId/get.md)

---

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