---
title: "Log alerts"
method: POST
path: "/api/v1/webhook/alert/log"
tags: ["Webhook"]
---

# Log alerts

`POST /api/v1/webhook/alert/log`

Log alerts sent by alertmanager.

## Request body

- PayloadWebhookPayload
  - `alerts` PayloadAlert[]
    - `annotations` object
    - `endsAt` string
    - `generatorURL` string
    - `labels` object
    - `startsAt` string
    - `status` string
  - `commonAnnotations` object
  - `commonLabels` object
  - `externalURL` string
  - `groupKey` string
  - `groupLabels` object
  - `receiver` string
  - `status` string
  - `version` string

## Response `200`

OK

- object
  - `data` ResponseDashboardInfo, required
    - `appName` string, required
    - `configurableInfo` ResponseConfigurableInfo, required
      - `odcURL` string, required
    - `publicKey` string, required
    - `reportHost` string, required
    - `reportStatistics` boolean, required
    - `version` string, required
  - `message` string, required
  - `successful` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

> 28 revisions in range; 1 could not be searched.

- **2024-06-06** `0373584e7903` — 1 info
  - endpoint added
- **2024-02-27** `643ae3c8d824` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/oceanbase/apis/oceanbase-dashboard-api/changes/api/v1/webhook/alert/log/post.md)

---

[API](https://skmtc.dev/oceanbase/apis/oceanbase-dashboard-api.md) · [All operations](https://skmtc.dev/oceanbase/apis/oceanbase-dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oceanbase/oceanbase-dashboard-api/revisions/fa579fa6f72d/schema)
