触发自动化 webhook

Changed on

为一个具有 webhook 触发器的自定义自动化排队一次运行,而不必等待该触发器配置的事件。适用于从 CI/CD 流水线、发布脚本或任何其他已经发送事件的系统运行自动化。只能触发配置了 webhook 触发器的自定义自动化;使用其他触发器的自动化会返回 404 响应。

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

post/v2/workflow/{projectId}/{workflowSchemaId}/webhook

Request

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

Path parameters

projectIdstring required

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

workflowSchemaIdstring required

要触发的自动化的 ID。可以从控制台自动化页面上该自动化的设置面板复制。

Response

自动化运行已成功加入队列。

successboolean

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

runIdstring

已排队的自动化运行的 ID。会出现在自动化设置的 Runs 选项卡中。

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status