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

Benachrichtigungshandler

GET https://lyks.de/api/notification-handlers/
curl --request GET \
--url 'https://lyks.de/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Details Beschreibung
page Optional Ganzzahl Die Seitenzahl, von der Sie Ergebnisse erhalten mö
results_per_page Optional Ganzzahl Wie viele Ergebnisse möchten Sie pro Seite. Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standardmäßig auf 25
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2021-06-27 22:16:23" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://lyks.de/api/notification-handlers?&page=1", "last": "https://lyks.de/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://lyks.de/api/notification-handlers?&page=1" } }
GET https://lyks.de/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://lyks.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": "2021-06-27 22:16:23" } }
POST https://lyks.de/api/notification-handlers
Parameter Details Beschreibung
name Erforderlich String -
type Erforderlich String Zulässige Werte: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , push_subscriber_id
email Optional String Verfügbar wenn: type = email E-Mail
webhook Optional String Verfügbar wenn: type = webhook Webhook-URL
slack Optional String Verfügbar wenn: type = slack Slack Webhook URL
discord Optional String Verfügbar wenn: type = discord Discord Webhook URL
telegram Optional String Verfügbar wenn: type = telegram Telegram API-Token
telegram_chat_id Optional String Verfügbar wenn: type = telegram Telegram Chat ID
twilio Optional String Verfügbar wenn: type = twilio Telefonnummer
curl --request POST \
--url 'https://lyks.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://lyks.de/api/notification-handlers/{notification_handler_id}
Parameter Details Beschreibung
name Optional String -
type Optional String Zulässige Werte: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , push_subscriber_id
email Optional String Verfügbar wenn: type = email E-Mail
webhook Optional String Verfügbar wenn: type = webhook Webhook-URL
slack Optional String Verfügbar wenn: type = slack Slack Webhook URL
discord Optional String Verfügbar wenn: type = discord Discord Webhook URL
telegram Optional String Verfügbar wenn: type = telegram Telegram API-Token
telegram_chat_id Optional String Verfügbar wenn: type = telegram Telegram Chat ID
twilio Optional String Verfügbar wenn: type = twilio Telefonnummer
is_enabled Optional Boolescher -
curl --request POST \
--url 'https://lyks.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://lyks.de/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://lyks.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \