Webhooks
Subscribe to events
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: <x-api-key>' \
--data '{
"webhook_events": [
{}
]
}'
{
"webhook_url": "https://mysite.com/cobalt/webhook",
"webhook_events": [
"connected-created",
"workflow-completed"
]
}
This api subscribes user to Cobalt webhook events.
Request description
Body Parameters
webhook_events
array
requiredWebhooks events to subscribe. Accepted values are, connected-created
, connection-deleted
, workflow-completed
, workflow-errored
.
Response description
200
500
webhook_url
string
Registered webhook url
webhook_events
array
Subscribed events.
curl --request POST \
--url https://api.gocobalt.io/api/v2/public/webhook/subscribe \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"webhook_events": [
{}
]
}'
{
"webhook_url": "https://mysite.com/cobalt/webhook",
"webhook_events": [
"connected-created",
"workflow-completed"
]
}