---
title: "触发自动化 webhook"
method: POST
path: "/v2/workflow/{projectId}/{workflowSchemaId}/webhook"
language: "zh-Hans"
---

# 触发自动化 webhook

`POST /v2/workflow/{projectId}/{workflowSchemaId}/webhook`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v2/workflow/{projectId}/{workflowSchemaId}/webhook`
- Auth: HTTP bearer

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

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

## Path parameters

- `projectId` string, required
- `workflowSchemaId` string, required

## Response `202`

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

- object
  - `success` boolean: 运行成功加入队列时始终为 `true`。
  - `runId` string: 已排队的自动化运行的 ID。会出现在[自动化](https://app.mintlify.com/settings/project/automations?tab=runs)设置的 **Runs** 选项卡中。

## Other responses

- `400`: 自动化 ID 或项目 ID 格式无效。
- `401`: API 密钥缺失或无效，或者你的套餐不包含 API 访问权限或自动化功能。
- `402`: 本计费周期的 AI 额度已耗尽。请升级你的套餐或等待额度续期。
- `403`: 你的 API 密钥没有写入权限，或者你的请求来自不在 API 密钥允许列表中的 IP 地址。
- `404`: 项目不存在或不属于你的组织，或者该自动化不存在、未处于活动状态或未配置 webhook 触发器。
- `429`: 你已超出每个组织每 10 秒 10 次请求的速率限制。此限制由触发部署、触发自动化和自动化 webhook 端点共享。
- `500`: 由于意外的服务器错误，无法将自动化运行加入队列。
- `503`: 额度检查失败。请重试该请求。

## Changes

> 25 revisions in range; 2 not diffed.

- **2026-10-30** `8f632fe27713`: 3 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 `429`
- **2026-10-22** `cd4bcf8bdbae`: 5 info
  - added the non-success response with the status `500`
  - added the optional property `success` to the response with the `400` status
  - added the optional property `success` to the response with the `402` status
  - added the optional property `success` to the response with the `404` status
  - …1 more
- **2026-09-21** `9c8f445e0f4c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-admin-api/zh/changes/v2/workflow/:projectId/:workflowSchemaId/webhook/post.md)

---

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