---
title: "Receive Alertmanager Webhook"
method: POST
path: "/internal/alerts/webhook"
tags: ["internal"]
---

# Receive Alertmanager Webhook

`POST /internal/alerts/webhook`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/internal/alerts/webhook`
- Auth: none declared

Deliver alerts from a customer alert rule to the rule's notification channels.

Custom rules are loaded in the Mimir ruler with a ``mengi_rule_id`` label
(see services/alert_rule_sync); the platform Alertmanager routes every
alert carrying that label here. Alerts without it (platform alerts) are
ignored. Delivery failures are logged per channel and never fail the
whole batch, so one dead webhook does not block an email.

## Headers

- `x-service-token` string, nullable
- `authorization` string, nullable

## Request body

- AlertmanagerWebhook: The Alertmanager webhook_configs payload (fields we use).
  - `receiver` string, nullable
  - `status` string, nullable
  - `alerts` AlertmanagerAlert[]
    - `status` string
    - `labels` object
    - `annotations` object
    - `startsAt` string, nullable
    - `endsAt` string, nullable
    - `fingerprint` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
