---
title: "Create Source Alert"
method: POST
path: "/alerts/ingestion"
---

# Create Source Alert

`POST /alerts/ingestion`

## Headers

- `Authorization` string, nullable
- `X-User-Id` string, nullable

## Cookies

- `session_id` string, nullable

## Request body

- SourceAlertConfigInput
  - `event_name` string, required
  - `duration` string, duration, required
  - `threshold` integer

## Response `200`

Successful Response

- SourceAlertSchema
  - `id` integer, required
  - `created_at` string, date-time, required
  - `alert_config` SourceAlertConfigOutput, required
    - `event_name` string, required
    - `duration` integer, required
    - `threshold` integer
  - `last_checked_at` string, date-time, nullable, required
  - `is_firing_since` string, date-time, nullable, required
  - `last_sent_at` string, date-time, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/runconverge/apis/fastapi.md) · [All operations](https://skmtc.dev/runconverge/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runconverge/fastapi/revisions/1452e350bd1d/schema)
