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

Benachrichtigungshandler

GET https://www.serverpruefung.de/api/notification-handler/
curl --request GET \
--url 'https://www.serverpruefung.de/api/notification-handler/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Details Beschreibung
page Optional Ganze Zahl Die Seitenzahl, von der Sie Ergebnisse erhalten möchten. Standardmäßig 1.
results_per_page Optional Ganze Zahl Wie viele Ergebnisse Sie pro Seite wünschen. Zulässige Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Der Standardwert ist 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://www.serverpruefung.de/api/notification-handler?&page=1", "last": "https://www.serverpruefung.de/api/notification-handler?&page=1", "next": null, "prev": null, "self": "https://www.serverpruefung.de/api/notification-handler?&page=1" } }
GET https://www.serverpruefung.de/api/notification-handler/{notification_handler_id}
curl --request GET \
--url 'https://www.serverpruefung.de/api/notification-handler/{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://www.serverpruefung.de/api/notification-handlers
Parameter Details Beschreibung
name Erforderlich Schnur -
type Erforderlich Schnur Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , push_subscriber_id
email Optional Schnur Verfügbar, wenn: type = email E-Mail
webhook Optional Schnur Verfügbar, wenn: type = webhook Webhook-URL
slack Optional Schnur Verfügbar, wenn: type = slack Slack-Webhook-URL
discord Optional Schnur Verfügbar, wenn: type = discord Discord webhook URL
telegram Optional Schnur Verfügbar, wenn: type = telegram Telegramm-API-Token
telegram_chat_id Optional Schnur Verfügbar, wenn: type = telegram Telegramm-Chat-ID
twilio Optional Schnur Verfügbar, wenn: type = twilio Telefonnummer
curl --request POST \
--url 'https://www.serverpruefung.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://www.serverpruefung.de/api/notification-handlers/{notification_handler_id}
Parameter Details Beschreibung
name Optional Schnur -
type Optional Schnur Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams , twilio , twilio_call , push_subscriber_id
email Optional Schnur Verfügbar, wenn: type = email E-Mail
webhook Optional Schnur Verfügbar, wenn: type = webhook Webhook-URL
slack Optional Schnur Verfügbar, wenn: type = slack Slack-Webhook-URL
discord Optional Schnur Verfügbar, wenn: type = discord Discord webhook URL
telegram Optional Schnur Verfügbar, wenn: type = telegram Telegramm-API-Token
telegram_chat_id Optional Schnur Verfügbar, wenn: type = telegram Telegramm-Chat-ID
twilio Optional Schnur Verfügbar, wenn: type = twilio Telefonnummer
is_enabled Optional Boolean -
curl --request POST \
--url 'https://www.serverpruefung.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://www.serverpruefung.de/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://www.serverpruefung.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \