Skip to content
BleemeoBleemeo

Webhook

Free
Starter
Professional

Send alerts to any HTTP endpoint via webhook. Build custom integrations, trigger automation workflows, or connect Bleemeo to services that aren't directly supported.

1

Prepare Your Endpoint

Set up an HTTP endpoint that can receive POST requests. Your endpoint should:

  • Accept JSON payloads via HTTP POST
  • Return a 2xx status code to acknowledge receipt
  • Be accessible from Bleemeo’s servers
2

Create an Integration (Optional)

A default Webhook integration is already available. To create additional integrations:

  1. Go to the Integrations page
  2. Click Add Integration and select Webhook
  3. Give it a descriptive name
Webhook integration in Bleemeo
3

Configure Notification Rules

  1. Go to Notifications
  2. Create a new rule or edit an existing one
  3. In the Targets step, select your Webhook integration
  4. Enter the URL of your endpoint
Webhook notification rule

Bleemeo sends each notification as an HTTP POST request with a Content-Type: application/json header. The body is the event that triggered the notification, in the same format as the event endpoint of the API. Here is an example for a disk usage warning:

{
"id": "5f0c2a1e-7b3d-4c6a-9e2f-1d8b4a7c3e90",
"account": "2b6e9d14-3f7a-4c85-b1e0-6a9d2c4f8e31",
"agent": "c4a8e2f6-1b3d-4e7a-9c5f-8d2b6a0e4f17",
"metric": "7e1d4b8a-2c6f-4a9e-b3d0-5f8c1a7e2b46",
"metric_label": "disk_used_perc",
"status": 1,
"status_text": "WARNING",
"title": "web01.example.com - Filesystem space used in percent / is warning",
"text": "Current value: 80.51 % threshold (80.00 %) exceeded over last 5 minutes",
"happened_at": "2026-11-05T14:01:30Z",
"status_changed_at": null,
"previous_status_changed_at": null,
"number_status_change_last_hour": 0,
"thread_id": "5f0c2a1e-7b3d-4c6a-9e2f-1d8b4a7c3e90",
"thread_closed": false,
"repeatable": false,
"has_been_notified": true,
"has_acknowledge": {
"created_by": null,
"created_at": null
},
"has_snapshot": false,
"is_sandbox": false,
"event_page": null,
"linear_prediction": {
"80%": "2026-11-19",
"90%": "2026-12-02"
},
"same_events_daily": {
"2026-11-05T08:00:00+00:00": 1,
"2026-11-05T14:00:00+00:00": 1
},
"same_events_monthly": {
"2026-10-29T00:00:00+00:00": 1,
"2026-11-05T00:00:00+00:00": 2
},
"similar_label_events": {
"2026-11-04T00:00:00+00:00": 5,
"2026-11-05T00:00:00+00:00": 5
},
"similar_label_events_per_agent": {
"c4a8e2f6-1b3d-4e7a-9c5f-8d2b6a0e4f17": 3,
"9a3f7c1e-5d2b-4e8a-b6c0-2f4d8e1a7c53": 7
},
"common_kpi_metrics": {
"mttr": {"average": "518698.125", "median": "542345.0", "max": "1211510.0", "min": "4460.0", "nb_timedeltas": 16},
"mttf": {"average": "1965654.375", "median": "1863550.0", "max": "3437490.0", "min": "605840.0", "nb_timedeltas": 16},
"mtbf": {"average": "1446956.25", "median": "1543955.0", "max": "3022170.0", "min": "19500.0", "nb_timedeltas": 16}
},
"created_at": "2026-11-05T14:01:37.040833Z",
"created_by": null,
"modified_at": "2026-11-05T14:02:49.129195Z",
"modified_by": null
}

These fields describe the event itself and are the ones to rely on in an integration:

Field Description
id Unique ID of the event
account ID of the account
agent ID of the agent the event relates to, or null
metric ID of the metric whose status changed, or null for events not tied to a metric
metric_label Name of that metric, e.g. disk_used_perc or cpu_used
status Numeric status: 0 (OK), 1 (Warning), 2 (Critical), 3 (Unknown), 10 (Info)
status_text Status in text form: OK, WARNING, CRITICAL, UNKNOWN or INFO
title Alert summary, including the host and the metric
text Details about the alert, such as the current value and the threshold
happened_at When the event occurred
status_changed_at When the metric entered its current status
previous_status_changed_at When the metric entered its previous status
number_status_change_last_hour Number of status changes of the metric in the last hour; a high value means the metric is flapping
thread_id ID shared by all the events of the same incident, from the first alert to the return to OK. Use it to group notifications
thread_closed true once the incident is over: the metric is back to OK and no longer flapping
has_been_notified Whether notifications were sent for this event
has_acknowledge Who acknowledged the alert and when; both values are null when it is not acknowledged
created_at, modified_at When the event was recorded and last modified

The payload also carries statistics that the Bleemeo Panel shows on the event page. They are computed when the notification is sent, and are empty ({}) for events not tied to a metric:

Field Description
same_events_daily Events of the same metric over the last 24 hours, counted per hour
same_events_monthly Events of the same metric over the last 30 days, counted per day
similar_label_events Events of metrics with the same name (on any agent) over the last 30 days, counted per day
similar_label_events_per_agent Events of metrics with the same name over the last 30 days, counted per agent ID
common_kpi_metrics Mean time to recovery (mttr), between failures (mtbf) and to failure (mttf) of the metric, in seconds
linear_prediction For disk usage events, the predicted dates at which the disk reaches its warning threshold (80%), its critical threshold (90%) and full capacity (100%). Only dates within a year are included

Your endpoint also receives notifications that are not tied to a monitored object:

  • Test notifications, sent when you test the integration from the panel, have the title Test and the text This is a test notification.
  • On-call notifications, sent when an on-call shift starts or ends, have the title On-call shift started or On-call shift ended.

Neither refers to an existing agent or metric: do not rely on agent, metric or account being set when you process them.

  • Bleemeo waits up to 10 seconds for your endpoint to respond.
  • A response with a status code from 400 upwards, a connection error or a timeout counts as a failure. Bleemeo then retries the delivery twice, about 10 seconds apart.
  • On a 429 Too Many Requests response, Bleemeo waits for the delay given in the Retry-After header before retrying.
  • A notification that could not be delivered within about 90 seconds is dropped.
  • Secure your endpoint: Bleemeo does not sign the requests nor send credentials in a header. Use HTTPS and put a long, random secret in the URL (for example https://example.com/hooks/bleemeo/<secret>), then reject requests without it
  • Handle retries: a delivery can be retried after your endpoint processed it, for example when it answered too slowly, so make your endpoint idempotent by keying on the event id
  • Respond quickly: acknowledge the request first and do the slow processing in the background, to stay within the 10-second timeout
  • Log payloads: store incoming webhooks for debugging and audit purposes