Bildirim işleyicileri

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler Ayrıntılar Açıklama
page Opsiyonel Tam sayı Sonuç almak istediğiniz sayfa numarası. Varsayılan 1'dir.
results_per_page Opsiyonel Tam sayı Sayfa başına kaç sonuç istediğiniz. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Varsayılan olarak 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-07-27 05:54:32" } ], "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}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-07-27 05:54:32" } }
POST https://tistos.com/api/notification-handlers
Parametreler Ayrıntılar Açıklama
name Gerekli Dize -
type Gerekli Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email Opsiyonel Dize Ne zaman mevcut: type = email E-posta
webhook Opsiyonel Dize Ne zaman mevcut: type = webhook Webhook URL
slack Opsiyonel Dize Ne zaman mevcut: type = slack Slack webhook URL
discord Opsiyonel Dize Ne zaman mevcut: type = discord Discord webhook URL
telegram Opsiyonel Dize Ne zaman mevcut: type = telegram Telegram API belirteci
telegram_chat_id Opsiyonel Dize Ne zaman mevcut: type = telegram Telegram Sohbet Kimliği
x_consumer_key Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_consumer_secret Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_access_token Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_access_token_secret Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
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]' \
{ "data": { "id": 1 } }
POST https://tistos.com/api/notification-handlers/{notification_handler_id}
Parametreler Ayrıntılar Açıklama
name Opsiyonel Dize -
type Opsiyonel Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email Opsiyonel Dize Ne zaman mevcut: type = email E-posta
webhook Opsiyonel Dize Ne zaman mevcut: type = webhook Webhook URL
slack Opsiyonel Dize Ne zaman mevcut: type = slack Slack webhook URL
discord Opsiyonel Dize Ne zaman mevcut: type = discord Discord webhook URL
telegram Opsiyonel Dize Ne zaman mevcut: type = telegram Telegram API belirteci
telegram_chat_id Opsiyonel Dize Ne zaman mevcut: type = telegram Telegram Sohbet Kimliği
x_consumer_key Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_consumer_secret Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_access_token Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
x_access_token_secret Opsiyonel Dize Ne zaman mevcut: type = x Telegram API belirteci
is_enabled Opsiyonel 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' \
{ "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}' \