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

This API is now deprecated.

This API subscribes user to Cobalt webhook events.

Request description

Body Parameters

webhook_events
array
required

Webhooks events to subscribe. 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"
    ]
}