To use webhooks in Cubu, you first need to configure the webhooks' location and security protocol and then enable webhooks for individual entities.
Go to Admin tools -> Settings -> Webhooks to enable and configure webhooks.
Webhooks Settings
Webhooks Settings
Enabled: Toggle this to enable or disable webhook calls across the organization. This setting overrides any local webhook configurations.
Base URL: The base API URL is common to all endpoints the external API provides.
Authorization: Select the method for authenticating webhook requests:
None: No authorization is required for webhook requests.
HMAC (recommended): Cubu generates a unique secret key to create a Message Authentication Code (MAC), ensuring the message’s integrity and authenticity. The MAC is sent in the Authorization header as HMAC <mac>.
Always protect your webhooks service by applying an authorization method and validating requests on the service side.