cURL
curl --request POST \ --url https://api.gocobalt.io/api/v2/public/webhook \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "webhook_url": "<string>", "webhook_events": [ "<string>" ], "is_enabled": true, "webhook_type": "<string>" }'
{ "is_enabled": false, "webhook_events": [ "Connection Created", "Connection Deleted", "Workflow Completed", "Workflow Errored", "Connection Expired" ], "webhook_url": "https://webhookurl.com", "_id": "66e31564c0287b4136f77ef8", "createdAt": "2024-09-12T16:23:00.587Z", "webhook_type": "slack" }
Connection Created
Connection Deleted
Workflow Completed
Workflow Errored
Connection Expired
default
slack