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

Benachrichtigungs-Handler

GET https://www.freshcore.de/api/notification-handlers/
curl --request GET \
--url 'https://www.freshcore.de/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Details Beschreibung
page Optional Ganzzahl Die Seitennummer, von der Sie Ergebnisse möchten. Standardmäßig 1.
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 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.freshcore.de/api/notification-handlers?&page=1", "last": "https://www.freshcore.de/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://www.freshcore.de/api/notification-handlers?&page=1" } }
GET https://www.freshcore.de/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://www.freshcore.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://www.freshcore.de/api/notification-handlers
Parameter Details Beschreibung
name Erforderlich Zeichenkette -
type Erforderlich Zeichenkette Erlaubte Werte: email , webhook , twilio , push_subscriber_id
email Optional Zeichenkette Verfügbar wann: type = email E-Mail
webhook Optional Zeichenkette Verfügbar wann: type = webhook Webhook-URL
slack Optional Zeichenkette Verfügbar wann: type = slack Slack Webhook-URL
discord Optional Zeichenkette Verfügbar wann: type = discord Discord Webhook-URL
telegram Optional Zeichenkette Verfügbar wann: type = telegram Telegram API-Token
telegram_chat_id Optional Zeichenkette Verfügbar wann: type = telegram Telegram Chat-ID
x_consumer_key Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_consumer_secret Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_access_token Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_access_token_secret Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
twilio Optional Zeichenkette Verfügbar wann: type = twilio Telefonnummer
curl --request POST \
--url 'https://www.freshcore.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.freshcore.de/api/notification-handlers/{notification_handler_id}
Parameter Details Beschreibung
name Optional Zeichenkette -
type Optional Zeichenkette Erlaubte Werte: email , webhook , twilio , push_subscriber_id
email Optional Zeichenkette Verfügbar wann: type = email E-Mail
webhook Optional Zeichenkette Verfügbar wann: type = webhook Webhook-URL
slack Optional Zeichenkette Verfügbar wann: type = slack Slack Webhook-URL
discord Optional Zeichenkette Verfügbar wann: type = discord Discord Webhook-URL
telegram Optional Zeichenkette Verfügbar wann: type = telegram Telegram API-Token
telegram_chat_id Optional Zeichenkette Verfügbar wann: type = telegram Telegram Chat-ID
x_consumer_key Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_consumer_secret Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_access_token Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
x_access_token_secret Optional Zeichenkette Verfügbar wann: type = x Telegram API-Token
twilio Optional Zeichenkette Verfügbar wann: type = twilio Telefonnummer
is_enabled Optional Boolescher Wert -
curl --request POST \
--url 'https://www.freshcore.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.freshcore.de/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://www.freshcore.de/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \