POST
/
api
/
v2
/
public
/
webhook
/
unsubscribe
curl --request POST \
  --url https://api.gocobalt.io/api/v2/public/webhook/unsubscribe \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "webhook_event": "<string>"
}'
{
    "webhook_url": "https://mysite.com/cobalt/webhook",
    "webhook_events": [
           "Workflow Completed",
           "Workflow Errored"
    ]
}

This API is now deprecated.

This API unsubscribes user from a Cobalt webhook events.

Request description

Body Parameters

webhook_event
string
required

Webhooks event to unsubscribe. Accepted values are, connection-created, connection-deleted, workflow-completed, workflow-errored.

Response description

webhook_url
string

Registered webhook url

webhook_events
array

Subscribed events.

{
    "webhook_url": "https://mysite.com/cobalt/webhook",
    "webhook_events": [
           "Workflow Completed",
           "Workflow Errored"
    ]
}