POST
/
webhooks
/
{workflowName}
/
trigger
触发 workflow webhook
curl --request POST \
  --url https://wfapi.yuhe.space/webhooks/{workflowName}/trigger \
  --header 'Content-Type: application/json' \
  --header 'x-workflow-webhook-secret: <api-key>' \
  --data '
{
  "event": {
    "text": "hello"
  }
}
'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {}
}

Authorizations

x-workflow-webhook-secret
string
header
required

Webhook Secret。

Path Parameters

workflowName
string
required

Body

application/json

The body is of type object.

Response

202 - application/json

Webhook 已接受并触发。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required