Webhooks - Anomaly Alerts (deprecated)
Eyer web hooks address: https://api.eyer.ai/v1/webhooks/subscriptions/.
Make sure you add a “Authorization” header to the request that contains your “apiTokenRead”
POST
Post with the following body format to subscribe to a web hook.
event field in body:
alert-create: receive only new / created alert notifications
alert-update: receive updates on alerts
alert-end
Body
{
"url": "https://webhook url",
"event": "alert-create"
}Response
{
"id": "67b2faad588cc43217a6f7c1",
"rsaKey": {
"public": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkeadfIIBCgKCAQEAt83TsugOturv9pR8ubnw\nO3+z+64T4CZENmH2ctxeq40LLFx9bd39j0ZKXC0i5bku3bHtNaTLyNLMAyC89Qfj\nBfNzL6sELke921iEwKz5SDyAP7CnuVQGB1sglMw4pte7nEmzsesaItbYnYQVv49Y\nAihnE+I1+PGeZLp5xf3JYr+yX+8CygggTztgWrvxqhULJu8LhbpzYTqfd78hvGEX\nRi7lSbPLIqq5x0WmyfETiOSPIPfkxyhq5vjSso10ImtW7xlUBEISAlnJfHX9ayxX\nqTjpq4dWgKAUV1CKkVCCnUJHgKvEIVqCG723wiJ+LfY2V3zBA2t7z+HIyZ8cdJ+E\nhwIDAQAB\n-----END PUBLIC KEY-----\n"
},
"xWebhookToken": "fc022554650823220649c713f2343eaf"GET
Will list all your active subscriptions (no body)
Response
{
"configuration": {
"xWebhookToken": "4f46bf14923d71ee0ddf06593170",
"rsaKey": {
"public": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQAMIIBCgKCAQEAuufANSwxMNyGuPzYJ3tu\nAbBAOg9QAEZbwehTuTIpUfDUs7c9PGPOq1tcYLke3OVtInye91Mn/8iZpwFNqHeW\ngWE3U4bFVX+KmZylOKazfmts2/ttcCRHJWyxq31rTq58vHYZ8fO9TS0H0GnqYks0\neq/+Tyw1Q2tfQy4fqOsHONFseJnvgCOnU2IZ6LGzA9mVhUhbLSVtwm16xI29fQYj\nTBQlI9d6/2+VEJCMl/7E4vF2lSCjTtLI1QMb2gohfzyrcM2jaUUtvCoXs+YT2iye\nfXAA+mm+EFK+alvq83IsZ5txZGsx/wsWH7XIgZ+kPXYYEf3oV1bdxda8KHDRiKK3\nvQIDAQAB\n-----END PUBLIC KEY-----\n"
}
},
"subscriptions": [
{
"id": "67b2fced348cc265b456f7c1",
"url": "https://example.url",
"created": "2025-02-17T09:00:29.560Z",
"event": "alert-create"
}
]
}DELETE
Will delete a subscription (no body)
URL: https://api.eyer.ai/v1/webhooks/subscriptions/<subsciption_id>
Response will be a 200 if the subscription was found and deleted
Example of alert update via webhook
{
"event_occured": "2025-08-05T09:37:00.000Z",
"event_type": "updated",
"id": "6891c658e5ddac8014bfff30",
"items": [
{
"metrics": [
{
"aggregation": "sum",
"id": "8228cdfe-f26e-5813-b8c0-4a5483d5c03b",
"metric_type": "Count",
"name": "azure_monitor_microsoft_web_sites_http_404",
"severity": "severe",
"severity_num": 3,
"started": "2025-08-05T09:14:00.000Z",
"updated": "2025-08-05T09:15:00.000Z"
},
{
"aggregation": "avg",
"id": "feea978b-4bd8-5c9f-ace9-d9cd02262798",
"metric_type": "Bytes",
"name": "azure_monitor_microsoft_web_sites_data_out",
"severity": "medium",
"severity_num": 2,
"started": "2025-08-05T09:15:00.000Z",
"updated": "2025-08-05T09:34:00.000Z"
},
{
"aggregation": "avg",
"id": "5a3c8b0d-e69c-5871-b1bb-8505f9b5ca41",
"metric_type": "Bytes",
"name": "azure_monitor_microsoft_web_sites_data_in",
"severity": "medium",
"severity_num": 2,
"started": "2025-08-05T09:15:00.000Z",
"updated": "2025-08-05T09:19:00.000Z"
},
{
"aggregation": "sum",
"id": "cfbd9b49-093b-53fe-8d45-940a0b5cd960",
"metric_type": "Count",
"name": "azure_monitor_microsoft_web_sites_http_2xx",
"severity": "severe",
"severity_num": 3,
"started": "2025-08-05T09:23:00.000Z",
"updated": "2025-08-05T09:37:00.000Z"
}
],
"node": {
"id": 19,
"name": "eyer-grafana-api",
"system": {
"id": 5,
"name": "eyer"
}
}
},
{
"metrics": [
{
"aggregation": "avg",
"id": "4e52ff5f-4959-5c24-a2da-4b64c1cc1210",
"metric_type": "Bytes",
"name": "azure_monitor_microsoft_web_serverfarms_data_out",
"severity": "medium",
"severity_num": 2,
"started": "2025-08-05T09:28:00.000Z",
"updated": "2025-08-05T09:32:00.000Z"
}
],
"node": {
"id": 12,
"name": "eyer-prod-appservice",
"system": {
"id": 5,
"name": "eyer-test"
}
}
}
],
"learning_status": 0,
"metrics_affected": 5,
"nodes_affected": 2,
"severity": "medium",
"severity_num": 2
}