---
title: "Create component alert"
method: POST
path: "/pipeline/{pipeline_id}/{component_kind}/{component_id}/alert"
tags: ["Alerting"]
---

# Create component alert

`POST /pipeline/{pipeline_id}/{component_kind}/{component_id}/alert`

## Request

- Base URL: `https://api.mezmo.com/v3`
- URL: `https://api.mezmo.com/v3/pipeline/{pipeline_id}/{component_kind}/{component_id}/alert`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/mezmo/apis/pipeline-api/docs/pipeline/:pipeline_id/:component_kind/:component_id/alert/post.ts> (a function with typed inputs; its response is checked against the schema)

Create an alert attached to a pipeline component

## Path parameters

- `pipeline_id` string, uuid, required
- `component_kind` 'source' | 'transform', required
- `component_id` string, uuid, required

## Request body

- object
  - `inputs` string[], required
  - `alert_config` object
    - `general` object, required
    - `evaluation` object, required
    - `alert_payload` object, required
  - `component_alert_type` 'node_alert' | 'surge_detection_alert', required

## Response `200`

Default Response

---

[API](https://skmtc.dev/mezmo/apis/pipeline-api.md) - [All operations](https://skmtc.dev/mezmo/apis/pipeline-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mezmo/apis/pipeline-api/revisions/fb2535545d90?raw)
