DELETE
/
api
/
v2
/
public
/
webhook
/
:id
curl --request DELETE \
  --url https://api.gocobalt.io/api/v2/public/webhook/:id \
  --header 'x-api-key: <api-key>'
[
    {
        "is_enabled": true,
        "webhook_events": [
            "Connection Created",
            "Connection Deleted",
            "Workflow Completed",
            "Workflow Errored",
            "Connection Expired"
        ],
        "webhook_url": "https://webhook-test.com/558cf4700d31e6ded9b097ca09686439",
        "_id": "66e58b8d19becbeeea0bd11a",
        "createdAt": "2024-09-14T13:11:41.043Z",
        "webhook_type": "default"
    },
    {
        "is_enabled": false,
        "webhook_events": [
            "Connection Created",
            "Connection Deleted"
        ],
        "webhook_url": "https://webhookurl.com/newwebhook",
        "_id": "66e5963a51b0a208fecbca31",
        "createdAt": "2024-09-14T13:57:14.398Z",
        "webhook_type": "slack"
    }
]

This API deletes a registered Cobalt webhook.

Request description

Path Parameters

id
string
required

Unique ID of the webhook to be deleted.

Response description

is_enabled
boolean

Whether the webhook is active or not.

webhook_events
array

Webhook events subscribed.

created_At
string

Timestamp of webhook creation.

webhook_url
string

Webhook URL to listen to the events.

_id
string

Unique ID of the webhook.

webhook_type
string

The type of webhook. Accepted values are default and slack.

[
    {
        "is_enabled": true,
        "webhook_events": [
            "Connection Created",
            "Connection Deleted",
            "Workflow Completed",
            "Workflow Errored",
            "Connection Expired"
        ],
        "webhook_url": "https://webhook-test.com/558cf4700d31e6ded9b097ca09686439",
        "_id": "66e58b8d19becbeeea0bd11a",
        "createdAt": "2024-09-14T13:11:41.043Z",
        "webhook_type": "default"
    },
    {
        "is_enabled": false,
        "webhook_events": [
            "Connection Created",
            "Connection Deleted"
        ],
        "webhook_url": "https://webhookurl.com/newwebhook",
        "_id": "66e5963a51b0a208fecbca31",
        "createdAt": "2024-09-14T13:57:14.398Z",
        "webhook_type": "slack"
    }
]