触发 Autopilot webhook

Changed on

启动一次按照请求体中 prompt 执行的 Autopilot 运行。适用于从 CI/CD 流水线、发布脚本或内部工具中让 Autopilot 更新你的文档。

使用具有写入权限的组织 API 密钥进行身份验证。

post/v2/autopilot/{projectId}/webhook

Request

  • Base URL
    https://api.mintlify.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

你的项目 ID。可在控制台的 API keys 页面复制。

Request body

promptstring required

给 Autopilot 的指令,例如发生了哪些变化以及需要在文档中更新什么。

Response

Autopilot 运行已成功加入队列。

successboolean

运行加入队列时始终为 true。

runIdstring

已加入队列的 Autopilot 运行的 ID。

Changes