Subscribe to Webhook[beta]
This section shows how to subscribe to the webhook that emits the information of the dags that have completed
Create Subscription
This method is used to subscribe to the the async api task status webhook. This subscription enables users to get the status of the DAG run as soon as it completes its execution. This API can be used to attach the endpointUrl to the webhook so that the completion notification gets pushed to this endpointUrl
Request body
Key | Value |
---|---|
userId | Id of the user under which the subscription should be created |
event | Type of event the subscription should be made |
endpointUrl | Url to which the webhook notification should be pushed to |
Response
Response Object
Key | Description |
---|---|
subscriptionId | Subscription ID generated for the consumer subscribing to the webhook |
Sample Webhook Notification
Get Subscription
This method is used to get either the entire list of subscriptions of a user or the details of a specific subscription. Both of these details can be fetched using the following API's
Request for getting all subscriptions
Sample Response
Request for getting specific subscription
Sample Response
Response Object
Key | Description |
---|---|
event | Type of process event |
userId | Id of the user under which the subscription is created |
subscriptionId | Id of the subscription |
endpointUrl | Url to which the webhook notification is pushed |
Delete Webhook
The Delete Webhook API can be used to terminate existing subscriptions
Sample request
Sample response
Response Object
Key | Value |
---|---|
msg | Message indicating the status of deletion |
subscriptionId | Id of the subscription that has been deleted |
Last updated