Creating custom webhooks

Integrate Cronitor with your own system by ingesting webhook events when your monitors fail and recover. Setting up a custom webhook is a quick and straight-forward process.

Configuring a webhook

  1. Your endpoint should accept an HTTP POST request and complete successfully in under 15 seconds.  The request body will be sent as a JSON-encoded string:

      {
        "id": "The unique tracking id of your monitor",
        "monitor": "Name of the monitor the alert is for",
        "description": "Why the alert was triggered",
        "rule": "Name of the rule that was violated"
      }
              
  2. Send alert events to this webhook by adding its URL to the "Webhook" recipients list on any monitor or notification list
  3. You're done