Learn how to subscribe to Kadoa webhook events and receive real-time notifications about workflow events.
Kadoa webhooks allow you to receive real-time notifications when specific events occur, such as when a workflow finishes or data changes. By subscribing to webhook events, you can automate actions based on these notifications, like triggering another action in your application.
To subscribe to Kadoa webhook events, follow these steps:
/v4/webhook-subscriptions
endpoint with the following JSON payload:Replace "https://your-webhook-url.com/kadoa-events"
with the URL where you want to receive the webhook events.
The events
array should contain the list of events you want to subscribe to. You can fetch the list of available events by making a GET request to the events endpoint.
When a subscribed event occurs, Kadoa will send a POST request to the specified webhookUrl
with the event payload. The payload will include information about the event, such as the workflowId
and any relevant data.
Here’s an example of how to handle webhook events in an Express.js application:
In this example, when a POST request is received at the /kadoa-events
endpoint, the event payload is logged, and you can add your own logic to process the event and perform any necessary actions.
To unsubscribe from webhook events, make a DELETE request to the unsubscribe endpoint, using the ID of the subscription you want to remove.
200 OK
status code to acknowledge receipt of the webhook event.