Skip to main content
This endpoint returns all alerts that are currently marked as active. Alerts are displayed on the website to inform visitors about important information or announcements.

Endpoint

GET /api/alerts/active

Response

Returns an array of active alert objects.
alerts
array
Array of active alert objects
id
number
Unique alert identifier
title
string
Alert title
text
string
Alert message content
active
boolean
Whether the alert is currently active (always true for this endpoint)
createdAt
timestamp
When the alert was created
Only alerts with active: true are returned by this endpoint. Alerts are typically displayed as banners or notifications on the website to communicate important information to visitors.

Example

Request

curl https://kommtkevinonline.de/api/alerts/active

Response

[
  {
    "id": 1,
    "title": "Stream schedule update",
    "text": "Next stream will be on Friday at 8 PM!",
    "active": true,
    "createdAt": "2026-03-01T10:00:00.000Z"
  },
  {
    "id": 3,
    "title": "Special event",
    "text": "Join us for a special charity stream this weekend!",
    "active": true,
    "createdAt": "2026-03-02T15:30:00.000Z"
  }
]

Response (no active alerts)

[]

Build docs developers (and LLMs) love