Obsługa powiadomień

GET https://monitweb.pl/api/notification-handlers/
curl --request GET \
--url 'https://monitweb.pl/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parameters Szczegóły Opis
page Optional Integer The page number that you want results from. Defaults to 1.
results_per_page Optional Integer How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-05-21 01:09:59" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://monitweb.pl/api/notification-handlers?&page=1", "last": "https://monitweb.pl/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://monitweb.pl/api/notification-handlers?&page=1" } }
GET https://monitweb.pl/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://monitweb.pl/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": "2025-05-21 01:09:59" } }
POST https://monitweb.pl/api/notification-handlers
Parameters Szczegóły Opis
name Required String -
type Required String Dozwolone wartości: email , twilio
email Optional String Dostępne, gdy: type = email E-mail
webhook Optional String Dostępne, gdy: type = webhook URL webhooka
slack Optional String Dostępne, gdy: type = slack Adres URL webhooka Slack
discord Optional String Dostępne, gdy: type = discord Adres URL webhooka Discord
telegram Optional String Dostępne, gdy: type = telegram Token API Telegram
telegram_chat_id Optional String Dostępne, gdy: type = telegram Identyfikator czatu Telegram
x_consumer_key Optional String Dostępne, gdy: type = x Token API Telegram
x_consumer_secret Optional String Dostępne, gdy: type = x Token API Telegram
x_access_token Optional String Dostępne, gdy: type = x Token API Telegram
x_access_token_secret Optional String Dostępne, gdy: type = x Token API Telegram
twilio Optional String Dostępne, gdy: type = twilio Numer telefonu
curl --request POST \
--url 'https://monitweb.pl/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://monitweb.pl/api/notification-handlers/{notification_handler_id}
Parameters Szczegóły Opis
name Optional String -
type Optional String Dozwolone wartości: email , twilio
email Optional String Dostępne, gdy: type = email E-mail
webhook Optional String Dostępne, gdy: type = webhook URL webhooka
slack Optional String Dostępne, gdy: type = slack Adres URL webhooka Slack
discord Optional String Dostępne, gdy: type = discord Adres URL webhooka Discord
telegram Optional String Dostępne, gdy: type = telegram Token API Telegram
telegram_chat_id Optional String Dostępne, gdy: type = telegram Identyfikator czatu Telegram
x_consumer_key Optional String Dostępne, gdy: type = x Token API Telegram
x_consumer_secret Optional String Dostępne, gdy: type = x Token API Telegram
x_access_token Optional String Dostępne, gdy: type = x Token API Telegram
x_access_token_secret Optional String Dostępne, gdy: type = x Token API Telegram
twilio Optional String Dostępne, gdy: type = twilio Numer telefonu
is_enabled Optional Boolean -
curl --request POST \
--url 'https://monitweb.pl/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://monitweb.pl/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://monitweb.pl/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \