Webhook Node

发起外部 HTTP 请求的节点。

配置字段

字段类型说明
urlstring请求地址
methodstring请求方法
queryParamsMap<String, String>查询参数
headersMap<String, String>请求头
bodyObject请求体
timeoutObject超时时间
retryRetryPolicyDTO重试策略
outputMappingMap<String, String>输出映射
authTypestring认证类型
authUsernamestring认证用户名
authPasswordstring认证密码
authTokenstring认证 Token
authApiKeystringAPI Key
authApiKeyHeaderstringAPI Key 请求头名
outputSchemastring输出 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