To use webhooks, you need to set up a webhook endpoint URL in your application that can receive POST requests from Cobalt. This URL should be publicly accessible and use HTTPS for security. You can set up multiple webhook urls (eg. one for development and one for production) and Cobalt will send the same webhook event to each url.
To register a new webhook one POST to /v1/webhook
Example request:
Example response:
To retrieve your current webhook configuration GET /v1/webhook
Example request:
Example response:
To remove a webhook url DELETE /v1/webhook/:id
Example request:
Example response:
To rotate your webhook secret key POST /v1/webhook/rotate-secret
Example response:
To use webhooks, you need to set up a webhook endpoint URL in your application that can receive POST requests from Cobalt. This URL should be publicly accessible and use HTTPS for security. You can set up multiple webhook urls (eg. one for development and one for production) and Cobalt will send the same webhook event to each url.
To register a new webhook one POST to /v1/webhook
Example request:
Example response:
To retrieve your current webhook configuration GET /v1/webhook
Example request:
Example response:
To remove a webhook url DELETE /v1/webhook/:id
Example request:
Example response:
To rotate your webhook secret key POST /v1/webhook/rotate-secret
Example response: