Create and subscribe a new webhook
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>" }
workflow ID
Webhook URL
The events to subscribe to
Successful response