---
title: "Create Demo Alert"
method: POST
path: "/api/v1/auth/preferences/onboarding/demo-alert"
tags: ["user-preferences"]
---

# Create Demo Alert

`POST /api/v1/auth/preferences/onboarding/demo-alert`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/preferences/onboarding/demo-alert`
- Auth: none declared

Create a demo alert for onboarding walkthrough.

TECH-778: Creates a simulated freshness alert so users can see what an
alert looks like during the alerts onboarding chapter. The alert appears
in the UI but doesn't trigger any actual notifications.

The alert is marked as a demo alert in context_data for later cleanup.

Returns:
    Demo alert info (id, title, severity) or existing alert if already created.

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
