POST
/
v1
/
integrations
/
webhooks
/
subscribe
curl --request POST \
  --url https://api.hystruct.com/v1/integrations/webhooks/subscribe \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "workflowId": "<string>",
  "webhookUrl": "<string>",
  "events": [
    "<any>"
  ]
}'
{
  "message": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
workflowId
string
required

workflow ID

webhookUrl
string
required

Webhook URL

events
any[]
required

The events to subscribe to

Response

200
application/json

Successful response

message
string