Receive webhooks as email alerts

Review how to set up email notifications when managing rules

You can choose to specify an email address as a notification method for a rule. Then, if rule conditions are met and an alert is triggered, the email address will receive a notification.

The alert is also visible on the Portal's raised alerts page.

You can add email addresses while creating a new rule, or update the email and notification details for an existing rule at any time. Learn more about creating and managing rules using our Portal here, using our API here, and more about rule types here.

Set up email alerts using the Portal

  1. In the Codat Portal, navigate to Monitor > Alerting rules > Create new rule.
  2. In the Create new rule modal, specify the following:
    • Rule type to determine which event will trigger a notification,
    • Company to specify the company you want to monitor, or select All companies to make all companies trigger this rule,
    • Email addresses to notify with a comma-separated list of email addresses that should receive the alert.
  3. Save your changes.
New rule creation modal in the Codat PortalNew rule creation modal in the Codat Portal

New rule creation modal in the Codat Portal

Set up email alerts using the API

  1. Use Codat's Create rule endpoint and complete the following parameters:
    • companyId to specify the company you want to monitor or omit this to apply the rule to all companies,
    • type of rule that you would like to set up using its exact naming,
    • Complete the emails notifier with an array of email addresses that will receive notifications.
  2. Send the request to create the rule.
{
  "companyId": "4444b724-91b6-4e63-8f8e-9f01888162b",
  "type": "DataConnectionStatusChanged",
  "notifiers": {
    "emails": [
      "[email protected], [email protected]"
    ],
  }
}