Skip to main content
Alerting & Response/Alert Channels & Integrations

ReceiveAlertmanagerWebhook

Receive alert notifications from Alertmanager webhook callbacks Auth: X-Webhook-Secret header (static secret, forwarded as gRPC metadata).

POST/api/v1/alerting/webhook/{receiver}

Operation ID

ReceiveAlertmanagerWebhook

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Alertmanager webhook

Auth Context

X-Webhook-Secret must contain the legacy Alertmanager webhook shared secret. It cannot be replaced by a user Bearer token or the packaged-vmalert secret.

X-Webhook-Secret
{alertmanager_webhook_secret}

Request Inputs

application/json

Path Parameters

  • receiver
    StringRequired

    Receiver name from Alertmanager configuration

Header Parameters

  • X-Webhook-Secret
    StringRequired

    Legacy Alertmanager webhook shared secret. Managed separately from the packaged-vmalert secret.

Body Fields

  • version
    String

    Alertmanager API version

    Example: 4

  • groupKey
    String

    Group key identifying the alert group

    Example: {}:{alertname=HighCPU}

  • truncatedAlerts
    Integer

    Number of alerts truncated from the payload

    Example: 20

    {"format":"int32"}

  • status
    String

    Group status: firing or resolved

    Example: firing

  • externalUrl
    String

    External URL of the Alertmanager instance

    Example: http://alertmanager:9093

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

  • received
    Integer

    Number of alerts received in the payload

    Example: 5

    {"format":"int32"}

  • created
    Integer

    Number of new alerts created

    Example: 3

    {"format":"int32"}

  • updated
    Integer

    Number of existing alerts updated

    Example: 1

    {"format":"int32"}

  • skipped
    Integer

    Number of duplicate alerts skipped

    Example: 1

    {"format":"int32"}

  • injected
    Integer

    Number of alerts injected into the pipeline

    Example: 4

    {"format":"int32"}

  • fallback
    Boolean

    Whether fallback processing was used

    Example: false

  • fallbackReason
    String

    Reason for fallback if applicable

    Example: primary channel unavailable

  • Change Time

    AddedRequest body fields generatorURLDeletedRequest body fields generatorUrl
    View API