Installiere unsere App 🪄 Klicken Sie auf das Symbol oben rechts in der Adressleiste.

Notification handlers

GET https://1lr.de/api/notification-handlers/
curl --request GET \
--url 'https://1lr.de/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Details Beschreibung
page Optional (Optional) Ganzzahl Die Seitenzahl, von der Sie Ergebnisse erhalten möchten. Standardmäßig ist sie 1.
results_per_page Optional (Optional) Ganzzahl Wie viele Ergebnisse möchten Sie pro Seite? Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standardmäßig ist es 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-05 00:56:39", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://1lr.de/api/notification-handlers?page=1", "last": "https://1lr.de/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://1lr.de/api/notification-handlers?page=1" } }
GET https://1lr.de/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://1lr.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-09-05 00:56:39", } }
POST https://1lr.de/api/notification-handlers
Parameter Details Beschreibung
name Erforderlich Zeichenkette -
type Erforderlich Zeichenkette Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams
email Optional (Optional) Zeichenkette Verfügbar, wenn: type = email Email
webhook Optional (Optional) Zeichenkette Verfügbar, wenn: type = webhook Webhook URL
slack Optional (Optional) Zeichenkette Verfügbar, wenn: type = slack Slack webhook URL
discord Optional (Optional) Zeichenkette Verfügbar, wenn: type = discord Discord webhook URL
telegram Optional (Optional) Zeichenkette Verfügbar, wenn: type = telegram Telegram API Token
telegram_chat_id Optional (Optional) Zeichenkette Verfügbar, wenn: type = telegram Telegram Chat ID
microsoft_teams Optional (Optional) Zeichenkette Verfügbar, wenn: type = microsoft_teams Microsoft Teams webhook URL
curl --request POST \
--url 'https://1lr.de/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{ "data": { "id": 1 } }
POST https://1lr.de/api/notification-handlers/{notification_handler_id}
Parameter Details Beschreibung
name Optional (Optional) Zeichenkette -
type Optional (Optional) Zeichenkette Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams
email Optional (Optional) Zeichenkette Verfügbar, wenn: type = email Email
webhook Optional (Optional) Zeichenkette Verfügbar, wenn: type = webhook Webhook URL
slack Optional (Optional) Zeichenkette Verfügbar, wenn: type = slack Slack webhook URL
discord Optional (Optional) Zeichenkette Verfügbar, wenn: type = discord Discord webhook URL
telegram Optional (Optional) Zeichenkette Verfügbar, wenn: type = telegram Telegram API Token
telegram_chat_id Optional (Optional) Zeichenkette Verfügbar, wenn: type = telegram Telegram Chat ID
microsoft_teams Optional (Optional) Zeichenkette Verfügbar, wenn: type = microsoft_teams Microsoft Teams webhook URL
is_enabled Optional (Optional) Boolean -
curl --request POST \
--url 'https://1lr.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example new name' \
--form 'is_enabled=1' \
{ "data": { "id": 1 } }
DELETE https://1lr.de/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://1lr.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \