Obsługa powiadomień

GET https://clicke.me/api/notification-handlers/
curl --request GET \
--url 'https://clicke.me/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametry Szczegóły Opis
page Opcjonalny Całkowita liczba Numer strony, z której chcesz uzyskać wyniki. Domyślnie 1.
results_per_page Opcjonalny Całkowita liczba Ile wyników chcesz na stronę. Dozwolone wartości to: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Domyślnie 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-12-07 12:49:53" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://clicke.me/api/notification-handlers?&page=1", "last": "https://clicke.me/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://clicke.me/api/notification-handlers?&page=1" } }
GET https://clicke.me/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://clicke.me/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-12-07 12:49:53" } }
POST https://clicke.me/api/notification-handlers
Parametry Szczegóły Opis
name Wymagane String -
type Wymagane String Dopuszczalne wartości: email , webhook , slack , discord , telegram , microsoft_teams
email Opcjonalny String Dostępne kiedy: type = email Email
webhook Opcjonalny String Dostępne kiedy: type = webhook Webhook URL
slack Opcjonalny String Dostępne kiedy: type = slack Slack webhook URL
discord Opcjonalny String Dostępne kiedy: type = discord Discord webhook URL
telegram Opcjonalny String Dostępne kiedy: type = telegram Telegram API Token
telegram_chat_id Opcjonalny String Dostępne kiedy: type = telegram Telegram Chat ID
x_consumer_key Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_consumer_secret Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_access_token Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_access_token_secret Opcjonalny String Dostępne kiedy: type = x Telegram API Token
curl --request POST \
--url 'https://clicke.me/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://clicke.me/api/notification-handlers/{notification_handler_id}
Parametry Szczegóły Opis
name Opcjonalny String -
type Opcjonalny String Dopuszczalne wartości: email , webhook , slack , discord , telegram , microsoft_teams
email Opcjonalny String Dostępne kiedy: type = email Email
webhook Opcjonalny String Dostępne kiedy: type = webhook Webhook URL
slack Opcjonalny String Dostępne kiedy: type = slack Slack webhook URL
discord Opcjonalny String Dostępne kiedy: type = discord Discord webhook URL
telegram Opcjonalny String Dostępne kiedy: type = telegram Telegram API Token
telegram_chat_id Opcjonalny String Dostępne kiedy: type = telegram Telegram Chat ID
x_consumer_key Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_consumer_secret Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_access_token Opcjonalny String Dostępne kiedy: type = x Telegram API Token
x_access_token_secret Opcjonalny String Dostępne kiedy: type = x Telegram API Token
is_enabled Opcjonalny Boolean -
curl --request POST \
--url 'https://clicke.me/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://clicke.me/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://clicke.me/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \