Benachrichtigungsverarbeiter
GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter | Details | Beschreibung |
---|---|---|
page | Optional Ganze Zahl | Die Seitenzahl, von der du Ergebnisse erhalten möchtest. Standardmäßig auf 1 gesetzt. |
results_per_page | Optional Ganze Zahl | Wie viele Ergebnisse möchten Sie pro Seite sehen. Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardmäßig auf 25 gesetzt. |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:16:29", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://tistos.com/api/notification-handlers?page=1", "last": "https://tistos.com/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://tistos.com/api/notification-handlers?page=1" } }
GET https://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:16:29", } }
POST https://tistos.com/api/notification-handlers
Parameter | Details | Beschreibung |
---|---|---|
name | Erforderlich Zeichenkette | - |
type | Erforderlich Zeichenkette | Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams |
Optional Zeichenkette | Verfügbar, wenn: type = email E-Mail | |
webhook | Optional Zeichenkette | Verfügbar, wenn: type = webhook Webhook-URL |
slack | Optional Zeichenkette | Verfügbar, wenn: type = slack Slack-WebHook-URL |
discord | Optional Zeichenkette | Verfügbar, wenn: type = discord Discord-WebHook-URL |
telegram | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram API-Token |
telegram_chat_id | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram-Chat-ID |
microsoft_teams | Optional Zeichenkette | Verfügbar, wenn: type = microsoft_teams Microsoft Teams Webhook-URL |
curl --request POST \
--url 'https://tistos.com/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
--url 'https://tistos.com/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
{ "data": { "id": 1 } }
POST https://tistos.com/api/notification-handlers/{notification_handler_id}
Parameter | Details | Beschreibung |
---|---|---|
name | Optional Zeichenkette | - |
type | Optional Zeichenkette | Erlaubte Werte: email , webhook , slack , discord , telegram , microsoft_teams |
Optional Zeichenkette | Verfügbar, wenn: type = email E-Mail | |
webhook | Optional Zeichenkette | Verfügbar, wenn: type = webhook Webhook-URL |
slack | Optional Zeichenkette | Verfügbar, wenn: type = slack Slack-WebHook-URL |
discord | Optional Zeichenkette | Verfügbar, wenn: type = discord Discord-WebHook-URL |
telegram | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram API-Token |
telegram_chat_id | Optional Zeichenkette | Verfügbar, wenn: type = telegram Telegram-Chat-ID |
microsoft_teams | Optional Zeichenkette | Verfügbar, wenn: type = microsoft_teams Microsoft Teams Webhook-URL |
is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://tistos.com/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' \
--url 'https://tistos.com/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://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \