Webhook Node
发起外部 HTTP 请求的节点。
配置字段
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 请求地址 |
method | string | 请求方法 |
queryParams | Map<String, String> | 查询参数 |
headers | Map<String, String> | 请求头 |
body | Object | 请求体 |
timeout | Object | 超时时间 |
retry | RetryPolicyDTO | 重试策略 |
outputMapping | Map<String, String> | 输出映射 |
authType | string | 认证类型 |
authUsername | string | 认证用户名 |
authPassword | string | 认证密码 |
authToken | string | 认证 Token |
authApiKey | string | API Key |
authApiKeyHeader | string | API Key 请求头名 |
outputSchema | string | 输出 schema 范围 |
示例
- id: notify
name: 通知外部系统
type: WEBHOOK
config:
_nodeConfigType: WEBHOOK
url: "https://example.com/webhook/order"
method: POST
headers:
Content-Type: application/json
body:
orderId: "{{orderId}}"
status: approved
timeout: 10000