Bildiriş işləyiciləri
GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
page | İstəyə bağlı Tam ədəd | Nəticələri istədiyiniz səhifə nömrəsi. Varsayılan 1 -dir. |
results_per_page | İstəyə bağlı Tam ədəd | Səhifədə neçə nəticə istədiyinizi seçin. İcazə verilən dəyərlər: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Varsayılan olaraq 25 dir. |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:07:04", } ], "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}' \
--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-10-16 11:07:04", } }
POST https://tistos.com/api/notification-handlers
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | Tələb olunur Sətir | - |
type | Tələb olunur Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams |
İstəyə bağlı Sətir | Mövcuddur: type = email E-poçt | |
webhook | İstəyə bağlı Sətir | Mövcuddur: type = webhook Webhook URL |
slack | İstəyə bağlı Sətir | Mövcuddur: type = slack Slack webhook URL |
discord | İstəyə bağlı Sətir | Mövcuddur: type = discord Discord webhook URL |
telegram | İstəyə bağlı Sətir | Mövcuddur: type = telegram Telegram API Token |
telegram_chat_id | İstəyə bağlı Sətir | Mövcuddur: type = telegram Telegram Söhbət ID-si |
microsoft_teams | İstəyə bağlı Sətir | Mövcuddur: type = microsoft_teams Microsoft Teams webhook URL |
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]' \
--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}
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | İstəyə bağlı Sətir | - |
type | İstəyə bağlı Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams |
İstəyə bağlı Sətir | Mövcuddur: type = email E-poçt | |
webhook | İstəyə bağlı Sətir | Mövcuddur: type = webhook Webhook URL |
slack | İstəyə bağlı Sətir | Mövcuddur: type = slack Slack webhook URL |
discord | İstəyə bağlı Sətir | Mövcuddur: type = discord Discord webhook URL |
telegram | İstəyə bağlı Sətir | Mövcuddur: type = telegram Telegram API Token |
telegram_chat_id | İstəyə bağlı Sətir | Mövcuddur: type = telegram Telegram Söhbət ID-si |
microsoft_teams | İstəyə bağlı Sətir | Mövcuddur: type = microsoft_teams Microsoft Teams webhook URL |
is_enabled | İstəyə bağlı 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' \
--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}' \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \