Handler für Benachrichtigungen

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