> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 查询变更详情

> 按变更 ID，或按集成与变更键，返回单个变更及其全部事件。

## 限制说明

| 项目 | 说明 |
| - | - |
| 速率限制 | 每个账户 **1,000 次/分钟**；**50 次/秒** |
| 权限要求 | 无 —— 持有有效的 `app_key` 即可调用 |

## 使用说明

* 传 `change_id`，或同时传 `integration_id` 与 `change_key`；否则返回 `InvalidParameter`。传了 `change_id` 时忽略另外两个参数。
* 与 `POST /change/list` 不同，详情接口没有时间窗口：任意日期的变更都能读取。
* `events` 包含该变更的全部事件，按时间从早到晚排列。`next_statuses` 列出 `POST /change/update` 可以把该变更流转到的状态。
* `notify_target` 是该变更通知发往的群组；变更表单没有为其协作空间绑定群组时为 `null`。
* 变更不存在时返回 `InvalidParameter`。公开协作空间中的变更、以及未关联协作空间的变更，所有成员都能读取；私有协作空间中的变更只有账户所有者、管理员、该空间的创建者和其所属团队的成员能读取，否则返回 `AccessDenied`。


## OpenAPI

````yaml /api-reference/on-call.openapi.zh.json post /change/info
openapi: 3.1.0
info:
  title: Flashduty 开放 API
  description: >-
    Flashduty 事件管理平台的公开 HTTP API —— 覆盖故障、通知模板、协作空间、值班排班、监控、RUM、以及平台管理。每次调用都需在
    query 中携带 `app_key`，该 key 在 Flashduty 控制台 我的 → APP Key 中创建（也可放在请求头
    `Fd-App-Key` 中）。所有响应使用统一结构：成功时为 `{ request_id, data }`，失败时为 `{ request_id,
    error }`。
  version: 1.0.0
servers:
  - url: https://api.flashcat.cloud
    description: Flashduty Open API
security:
  - AppKeyAuth: []
tags:
  - name: On-call/故障管理
    description: ''
  - name: On-call/协作空间
    description: ''
  - name: On-call/告警管理
    description: 查询、查看和处理告警，管理卡片视图与告警处理规则。
  - name: On-call/集成中心
    description: ''
  - name: On-call/IM 集成
    description: IM 集成相关查询，例如查看哪些集成开启了作战室。
  - name: On-call/值班排班
    description: ''
  - name: On-call/许可管理
    description: ''
  - name: On-call/日历管理
    description: ''
  - name: On-call/通知模板
    description: ''
  - name: On-call/标签增强
    description: 自定义字段、富化规则及数据映射（映射规则、映射数据、映射 API）管理。
  - name: On-call/分析看板
    description: ''
  - name: On-call/状态页
    description: ''
  - name: On-call/变更管理
    description: ''
  - name: On-call/专属集成
    description: 管理各协作空间的专属告警集成。
paths:
  /change/info:
    post:
      tags:
        - On-call/变更管理
      summary: 查询变更详情
      description: 按变更 ID，或按集成与变更键，返回单个变更及其全部事件。
      operationId: change-read-info
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangeInfoRequest'
            example:
              change_id: 664a1b2c3d4e5f6a7b8c9d0e
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/ChangeInfo'
              example:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                data:
                  change_id: 664a1b2c3d4e5f6a7b8c9d0e
                  account_id: 10001
                  channel_id: 5001
                  channel_name: Production
                  channel_status: enabled
                  integration_id: 362
                  integration_name: 控制台
                  title: Upgrade payment-service to v3.2.0
                  description: >-
                    Rolling upgrade of payment-service in the production
                    cluster.
                  change_key: CHG-20261126-7Q2K
                  change_status: Processing
                  start_time: 1764140400
                  actual_start_time: 1764147700
                  last_time: 1764147700
                  end_time: 0
                  labels:
                    service: payment-service
                    env: prod
                  link: https://ci.example.com/pipelines/4821
                  planned_start_time: 1764147600
                  planned_end_time: 1764151200
                  operator: alice@example.com
                  impact: Payments may be retried for up to 30 seconds per pod.
                  backout_plan: Roll back the deployment to v3.1.4.
                  checklist:
                    - text: Notify the support team
                      done: true
                      by: Alice Chen
                      at: 1764147650
                    - text: Verify error rate after rollout
                      done: false
                  fields:
                    risk_level: medium
                  can_edit: true
                  is_console: true
                  next_statuses:
                    - Done
                    - Failed
                  creator:
                    type: member
                    id: 2000001
                    name: Alice Chen
                  events:
                    - event_id: 664a1b2c3d4e5f6a7b8c9d0f
                      account_id: 10001
                      channel_id: 5001
                      integration_id: 362
                      title: Upgrade payment-service to v3.2.0
                      description: >-
                        Rolling upgrade of payment-service in the production
                        cluster.
                      change_key: CHG-20261126-7Q2K
                      change_status: Processing
                      link: https://ci.example.com/pipelines/4821
                      planned_start_time: 1764147600
                      planned_end_time: 1764151200
                      operator: alice@example.com
                      impact: Payments may be retried for up to 30 seconds per pod.
                      backout_plan: Roll back the deployment to v3.1.4.
                      checklist:
                        - text: Notify the support team
                          done: true
                          by: Alice Chen
                          at: 1764147650
                        - text: Verify error rate after rollout
                          done: false
                      fields:
                        risk_level: medium
                      actor:
                        type: member
                        id: 2000001
                        name: Alice Chen
                      diff:
                        change_status:
                          before: Planned
                          after: Processing
                      event_time: 1764147700
                      labels:
                        service: payment-service
                        env: prod
                      created_at: 1764147700
                      updated_at: 1764147700
                  notify_target:
                    type: im_app
                    integration_id: 4102
                    chat_id: oc_0f1e2d3c4b5a69788796a5b4c3d2e1f0
                    chat_name: Release announcements
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    ChangeInfoRequest:
      type: object
      description: 指定一个变更：按 `change_id`，或按 `integration_id` 加 `change_key`。
      properties:
        change_id:
          type: string
          pattern: ^[0-9a-fA-F]{24}$
          description: 变更 ID，24 位十六进制字符串。
        integration_id:
          type: integer
          format: int64
          minimum: 1
          description: 上报该变更的集成；与 `change_key` 一起使用。
        change_key:
          type: string
          description: 该集成下的变更键；与 `integration_id` 一起使用。
    SuccessEnvelope:
      type: object
      description: >-
        成功响应结构。2xx 响应中 `request_id` 标识本次调用（同时出现在 `Flashcat-Request-Id`
        响应头中），`data` 为接口业务 payload。失败响应使用不同结构，参见 `ErrorResponse`。
      properties:
        request_id:
          type: string
          description: 本次请求的唯一 ID，也会在 Flashcat-Request-Id 响应头中返回。反馈问题时请一并附上。
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
        data:
          description: 接口返回的数据，格式见各接口的 200 响应。没有返回数据的接口会返回 `{}` 或完全不带 `data`。
      required:
        - request_id
    ChangeInfo:
      description: 变更详情：变更本身、全部事件，以及通知发往的群组。
      allOf:
        - $ref: '#/components/schemas/ChangeItem'
        - type: object
          required:
            - notify_target
          properties:
            events:
              type: array
              items:
                $ref: '#/components/schemas/ChangeEventItem'
              description: 该变更的全部事件，按时间从早到晚排列。
            notify_target:
              oneOf:
                - $ref: '#/components/schemas/ChangeNotifyTarget'
                - type: 'null'
              description: 该变更通知发往的群组：变更表单中第一条与变更所在协作空间匹配的通知策略。没有匹配时为 `null`。
    ChangeItem:
      type: object
      properties:
        change_id:
          type: string
          description: 变更 ID，MongoDB ObjectID 十六进制字符串。
        account_id:
          type: integer
          description: 变更所属账户。
          format: int64
        channel_id:
          type: integer
          description: 变更所属协作通道。
          format: int64
        channel_name:
          type: string
          description: 协作空间名称；变更未关联到现有协作空间时为空字符串。
        channel_status:
          type: string
          description: 协作空间状态：`enabled` 或 `disabled`；变更未关联到现有协作空间时为空字符串。
          enum:
            - enabled
            - disabled
            - ''
        integration_id:
          type: integer
          description: 上报该变更的集成。
          format: int64
        integration_name:
          type: string
          description: 上报集成的名称。
        title:
          type: string
          description: 变更标题。
        description:
          type: string
          description: 变更描述。
        change_key:
          type: string
          description: 用于聚合同一变更下事件的稳定键。
        change_status:
          type: string
          description: |-
            变更的当前生命周期状态。
            | 取值 | 含义 |
            |---|---|
            | `Planned` | 已计划，未开始。 |
            | `Ready` | 就绪，待执行。 |
            | `Processing` | 执行中。 |
            | `Canceled` | 已取消。 |
            | `Done` | 已完成。 |
            | `Failed` | 失败。 |
          enum:
            - Planned
            - Ready
            - Processing
            - Canceled
            - Done
            - Failed
        start_time:
          type: integer
          format: int64
          description: 变更开始时的 Unix 时间戳（秒）。
        actual_start_time:
          type: integer
          format: int64
          description: >-
            变更实际开始时间，Unix
            时间戳（秒）：其事件中最早一条处于已开始状态（`Processing`、`Done`、`Failed`）的事件时间；从未开始时为
            `0`。`start_time` 是首次写入时间，对计划中的变更远早于实际执行。
        last_time:
          type: integer
          format: int64
          description: 变更最近活动的 Unix 时间戳（秒）。
        end_time:
          type: integer
          format: int64
          description: 变更结束时的 Unix 时间戳（秒）。
        labels:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
          description: 变更附带的键值标签；没有标签时为 `null`。
        link:
          type: string
          description: 指向源变更记录的外部链接。
        planned_start_time:
          type: integer
          format: int64
          description: 计划开始时间，Unix 时间戳（秒）；未填写计划时为 `0`。
        planned_end_time:
          type: integer
          format: int64
          description: 计划结束时间，Unix 时间戳（秒）；未填写计划时为 `0`，且不会早于 `planned_start_time`。
        operator:
          type: string
          description: 变更执行人，成员邮箱或自由文本姓名；未填写时为空字符串。
        impact:
          type: string
          description: 变更影响，Markdown 文本；未填写时为空字符串。
        backout_plan:
          type: string
          description: 变更回滚方案，Markdown 文本；未填写时为空字符串。
        checklist:
          type: array
          items:
            $ref: '#/components/schemas/ChangeChecklistItem'
          description: 变更的执行清单；控制台编辑会整体替换，推送只要携带了清单也会整体替换。没有清单时为空数组。
        fields:
          type: object
          additionalProperties: true
          description: 账号自定义变更字段的取值，按字段名索引；未填写时为空对象。
        can_edit:
          type: boolean
          description: >-
            调用方是否有权编辑该变更：管理员可编辑全部变更，普通成员只能编辑自己所在协作空间的变更，未关联协作空间（`channel_id` 为
            0）的变更对成员只读。
        is_console:
          type: boolean
          description: 该变更是否由账号内置的控制台集成写入（而非外部集成推送）。
        next_statuses:
          type: array
          items:
            type: string
            enum:
              - Planned
              - Ready
              - Processing
              - Canceled
              - Done
              - Failed
            description: 该变更可以流转到的状态。
          description: >-
            控制台写入时可从当前状态流转到的状态。`Canceled` 不能再流转，此时不返回该字段；`Done` 和 `Failed`
            可重新打开为 `Processing`。仅 `POST /change/info` 返回该字段，列表接口不返回。
        creator:
          oneOf:
            - $ref: '#/components/schemas/ChangeActor'
            - type: 'null'
          description: 变更第一条事件的写入方；变更没有事件或写入方无法解析时为 `null`。
        events:
          type: array
          items:
            $ref: '#/components/schemas/ChangeEventItem'
          description: 构成该变更的、由集成上报的原始变更事件。仅在 `include_events` 为 `true` 时返回。
      required:
        - change_id
        - account_id
        - channel_id
        - channel_name
        - channel_status
        - integration_id
        - integration_name
        - title
        - description
        - change_key
        - change_status
        - start_time
        - actual_start_time
        - last_time
        - end_time
        - labels
        - link
        - planned_start_time
        - planned_end_time
        - operator
        - impact
        - backout_plan
        - checklist
        - fields
        - can_edit
        - is_console
        - creator
    ChangeEventItem:
      type: object
      properties:
        event_id:
          type: string
          description: 变更事件 ID，MongoDB ObjectID 十六进制字符串。
        account_id:
          type: integer
          description: 变更事件所属账户。
          format: int64
        channel_id:
          type: integer
          description: 变更事件所属协作通道。
          format: int64
        integration_id:
          type: integer
          description: 上报该变更事件的集成。
          format: int64
        title:
          type: string
          description: 变更事件标题。
        description:
          type: string
          description: 变更事件描述。
        change_key:
          type: string
          description: 用于聚合同一变更下事件的稳定键。
        change_status:
          type: string
          description: |-
            变更事件的生命周期状态。由变更事件源按执行进度上报。
            | 值 | 含义 |
            |---|---|
            | `Planned` | 已计划，尚未开始。 |
            | `Ready` | 已就绪，待执行。 |
            | `Processing` | 正在执行。 |
            | `Canceled` | 已取消。 |
            | `Done` | 已完成。 |
            | `Failed` | 失败。 |
          enum:
            - Planned
            - Ready
            - Processing
            - Canceled
            - Done
            - Failed
        link:
          type: string
          description: 指向源变更记录的外部链接。
        planned_start_time:
          type: integer
          format: int64
          description: 该事件携带的计划开始时间，Unix 时间戳（秒）；事件未设置时为 `0`。
        planned_end_time:
          type: integer
          format: int64
          description: 该事件携带的计划结束时间，Unix 时间戳（秒）；事件未设置时为 `0`。
        operator:
          type: string
          description: 该事件携带的执行人；事件未设置时为空字符串。
        impact:
          type: string
          description: 该事件携带的变更影响，Markdown 文本；事件未设置时为空字符串。
        backout_plan:
          type: string
          description: 该事件携带的回滚方案，Markdown 文本；事件未设置时为空字符串。
        checklist:
          type: array
          items:
            $ref: '#/components/schemas/ChangeChecklistItem'
          description: 该事件携带的清单；非空列表（即使是空数组）会整体替换变更已存储的清单。
        fields:
          type: object
          additionalProperties: true
          description: 该事件携带的自定义字段取值，按字段名索引；按字段名合并进变更已存储的取值。
        actor:
          oneOf:
            - $ref: '#/components/schemas/ChangeActor'
            - type: 'null'
          description: 写入该事件的成员或集成；ID 无法解析时为 `null`。
        diff:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ChangeDiff'
          description: 该事件改动的字段，按字段名给出变化前后的值；事件未改动任何字段时不返回。
        event_time:
          type: integer
          format: int64
          description: 变更事件发生时的 Unix 时间戳（秒）。
        labels:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
          description: 附加到变更事件上的键值标签。
        created_at:
          type: integer
          format: int64
          description: 变更事件创建时的 Unix 时间戳（秒）。
        updated_at:
          type: integer
          format: int64
          description: 变更事件最近更新时的 Unix 时间戳（秒）。
        deleted_at:
          type: integer
          format: int64
          description: 变更事件的删除时间，Unix 时间戳（秒）。未删除时不返回该字段。
      required:
        - event_id
        - account_id
        - channel_id
        - integration_id
        - title
        - description
        - change_key
        - change_status
        - link
        - planned_start_time
        - planned_end_time
        - operator
        - impact
        - backout_plan
        - checklist
        - fields
        - actor
        - event_time
        - labels
        - created_at
        - updated_at
    ChangeNotifyTarget:
      type: object
      description: 变更表单中绑定的通知群组。不返回 Webhook 地址和令牌。
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - im_app
            - webhook
          description: |-
            群组的接入方式。
            | 取值 | 含义 |
            |---|---|
            | `im_app` | IM 应用集成中的一个群聊。 |
            | `webhook` | 群机器人或自定义 Webhook。 |
        integration_id:
          type: integer
          format: int64
          description: '`im_app` 群组所用的 IM 应用集成；其他类型不返回。'
        chat_id:
          type: string
          description: '`im_app` 群组的群聊 ID，或 Telegram 机器人的会话；未设置时不返回。'
        chat_name:
          type: string
          description: 群聊名称；未设置时不返回。
        webhook_type:
          type: string
          description: >-
            `webhook` 群组的机器人类型：`feishu`、`dingtalk`、`wecom`、`slack`、`telegram` 或
            `zoom`；自定义 Webhook 为 `generic` 或不返回。
    ErrorResponse:
      type: object
      description: 错误响应结构。`error` 必填，`data` 不存在。
      properties:
        request_id:
          type: string
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          description: 本次请求的唯一追踪 ID（trace ID），反馈问题时请提供该值以便检索日志。
        error:
          $ref: '#/components/schemas/DutyError'
      required:
        - request_id
        - error
    ChangeChecklistItem:
      type: object
      description: 变更执行清单中的一项。
      required:
        - text
      properties:
        text:
          type: string
          description: 清单项内容。
        done:
          type: boolean
          description: 该项是否已勾选完成。
        by:
          type: string
          description: 勾选该项的成员名称；未勾选时不返回。
        at:
          type: integer
          format: int64
          description: 勾选时间，Unix 时间戳（秒）；未勾选时不返回。
    ChangeActor:
      type: object
      description: 写入该变更的成员或集成。
      required:
        - type
        - id
        - name
      properties:
        type:
          type: string
          enum:
            - member
            - integration
          description: 写入方类型：`member` 表示控制台写入，`integration` 表示推送写入。
        id:
          type: integer
          format: int64
          description: 与 `type` 对应的成员 ID 或集成 ID。
        name:
          type: string
          description: 成员展示名或集成名称；ID 无法解析时为空字符串。
    ChangeDiff:
      type: object
      description: 变更事件中某个字段变化前后的值。
      required:
        - before
        - after
      properties:
        before:
          type: string
          description: 事件发生前的值。
        after:
          type: string
          description: 事件发生后的值。
    DutyError:
      type: object
      description: 响应结构中的错误 payload，仅在非 2xx 响应时出现。
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            按响应语言（query 参数 `locale` / `lang` 或请求头
            `Accept-Language`）返回的错误描述，可能包含出错的字段名，请不要解析它。
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
    ErrorCode:
      type: string
      description: >-
        错误码。所有失败响应都会把 `error.code` 设为下列稳定字符串之一，请以它而不是 HTTP 状态码做判断。


        | 错误码 | HTTP | 含义 |

        |---|---|---|

        | `OK` | 200 | 保留值，失败的请求不会返回。 |

        | `InvalidParameter` | 400 | 参数缺失、类型错误或未通过校验，`message` 通常会指出字段名。 |

        | `BadRequest` | 400 | 请求违反业务规则或与对象当前状态冲突，`message` 会说明原因。 |

        | `InvalidContentType` | 400 | 请求体没有以 `application/json` 发送。 |

        | `ResourceNotFound` | 400 | 引用的对象在本账户中不存在或已删除。注意 HTTP 状态码是 400 而不是 404。
        |

        | `NoLicense` | 400 | 账户套餐不包含该功能、套餐配额已用完、套餐已过期或额度不足。 |

        | `ReferenceExist` | 400 | 对象仍被其他对象引用，无法删除。 |

        | `Unauthorized` | 401 | APP Key 缺失、无效或已删除。 |

        | `BalanceNotEnough` | 402 | 仅用于控制台计费流程，Open API 接口不会返回。 |

        | `AccessDenied` | 403 | APP Key 的权限范围或创建者角色不允许该操作或该对象。 |

        | `RouteNotFound` | 404 | 没有与该 HTTP 方法和路径匹配的接口。 |

        | `MethodNotAllowed` | 405 | 路径存在，但不支持该 HTTP 方法。 |

        | `UndonedOrderExist` | 409 | 仅用于控制台计费流程，Open API 接口不会返回。 |

        | `EntityTooLarge` | 413 | 请求体超出大小限制。 |

        | `RequestLocked` | 423 | 仅用于控制台登录保护，Open API 接口不会返回。 |

        | `RequestVerifyRequired` | 428 | 仅用于控制台验证码流程，Open API 接口不会返回。 |

        | `DangerousOperation` | 428 | 仅用于控制台高风险操作的 MFA 校验，Open API 接口不会返回。 |

        | `RequestTooFrequently` | 429 | 触发频率限制；请等待响应头
        `Flashcat-Request-Rate-Limit-Delay` 给出的秒数后再重试。 |

        | `InternalError` | 500 | 服务端意外错误；请退避后重试，反馈问题时附上 `request_id`。 |

        | `ServiceUnavailable` | 503 | 后端依赖过载或不可用，请退避后重试。 |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - EntityTooLarge
        - RequestLocked
        - RequestVerifyRequired
        - DangerousOperation
        - RequestTooFrequently
        - InternalError
        - ServiceUnavailable
      x-enumDescriptions:
        OK: 保留值，失败的请求不会返回。
        InvalidParameter: 参数缺失、类型错误或未通过校验，`message` 通常会指出字段名。
        BadRequest: 请求违反业务规则或与对象当前状态冲突，`message` 会说明原因。
        InvalidContentType: 请求体没有以 `application/json` 发送。
        ResourceNotFound: 引用的对象在本账户中不存在或已删除。注意 HTTP 状态码是 400 而不是 404。
        NoLicense: 账户套餐不包含该功能、套餐配额已用完、套餐已过期或额度不足。
        ReferenceExist: 对象仍被其他对象引用，无法删除。
        Unauthorized: APP Key 缺失、无效或已删除。
        BalanceNotEnough: 仅用于控制台计费流程，Open API 接口不会返回。
        AccessDenied: APP Key 的权限范围或创建者角色不允许该操作或该对象。
        RouteNotFound: 没有与该 HTTP 方法和路径匹配的接口。
        MethodNotAllowed: 路径存在，但不支持该 HTTP 方法。
        UndonedOrderExist: 仅用于控制台计费流程，Open API 接口不会返回。
        EntityTooLarge: 请求体超出大小限制。
        RequestLocked: 仅用于控制台登录保护，Open API 接口不会返回。
        RequestVerifyRequired: 仅用于控制台验证码流程，Open API 接口不会返回。
        DangerousOperation: 仅用于控制台高风险操作的 MFA 校验，Open API 接口不会返回。
        RequestTooFrequently: 触发频率限制；请等待响应头 `Flashcat-Request-Rate-Limit-Delay` 给出的秒数后再重试。
        InternalError: 服务端意外错误；请退避后重试，反馈问题时附上 `request_id`。
        ServiceUnavailable: 后端依赖过载或不可用，请退避后重试。
      example: InvalidParameter
  responses:
    BadRequest:
      description: 请求非法 — 通常是参数缺失或格式不正确。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingParameter:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InvalidParameter
                  message: The specified parameter is not valid.
    Unauthorized:
      description: app_key 缺失或无效。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingAppKey:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: Unauthorized
                  message: You are unauthorized.
    Forbidden:
      description: app_key 有效，但其权限范围或创建者角色不允许该操作或该对象。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            noEditPermission:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: AccessDenied
                  message: Access Denied.
    TooManyRequests:
      description: 触发频率限制。请等待响应头 `Flashcat-Request-Rate-Limit-Delay` 给出的秒数后重试。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
      headers:
        Flashcat-Request-Rate-Limit-Delay:
          description: 距当前限流窗口重置的秒数。请求被网关全局保护限流拒绝时不返回该响应头。
          schema:
            type: integer
            minimum: 0
    ServerError:
      description: 服务端未预期错误。反馈问题时请携带 request_id。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: app_key
      description: >-
        在 Flashduty 控制台 我的 → APP Key 中创建的 APP Key。可通过 query 参数 `app_key` 或请求头
        `Fd-App-Key` 传入。实际可访问范围是该 APP Key 的权限范围与创建者当前角色权限的交集，请妥善保管。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.