Хабарландыру өңдеушілері
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}' \
Параметрлер | Толығырақ | Сипаттама |
---|---|---|
page | Міндетті емес Бүтін сан | Сіз нәтижелерді алғыңыз келетін бет нөмірі. Әдепкі бойынша 1 . |
results_per_page | Міндетті емес Бүтін сан | Бір бетте қанша нәтиже көрсеткіңіз келеді. Рұқсат етілген мәндер: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Әдепкі бойынша 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:16:30", } ], "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:16:30", } }
POST https://tistos.com/api/notification-handlers
Параметрлер | Толығырақ | Сипаттама |
---|---|---|
name | Қажет Жолақ | - |
type | Қажет Жолақ | Рұқсат етілген мәндер: email , webhook , slack , discord , telegram , microsoft_teams |
Міндетті емес Жолақ | Қол жетімді болғанда: type = email Электрондық пошта | |
webhook | Міндетті емес Жолақ | Қол жетімді болғанда: type = webhook Webhook URL |
slack | Міндетті емес Жолақ | Қол жетімді болғанда: type = slack Slack webhook URL |
discord | Міндетті емес Жолақ | Қол жетімді болғанда: type = discord Discord webhook URL |
telegram | Міндетті емес Жолақ | Қол жетімді болғанда: type = telegram Telegram API токені |
telegram_chat_id | Міндетті емес Жолақ | Қол жетімді болғанда: type = telegram Telegram чат идентификаторы |
microsoft_teams | Міндетті емес Жолақ | Қол жетімді болғанда: 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}
Параметрлер | Толығырақ | Сипаттама |
---|---|---|
name | Міндетті емес Жолақ | - |
type | Міндетті емес Жолақ | Рұқсат етілген мәндер: email , webhook , slack , discord , telegram , microsoft_teams |
Міндетті емес Жолақ | Қол жетімді болғанда: type = email Электрондық пошта | |
webhook | Міндетті емес Жолақ | Қол жетімді болғанда: type = webhook Webhook URL |
slack | Міндетті емес Жолақ | Қол жетімді болғанда: type = slack Slack webhook URL |
discord | Міндетті емес Жолақ | Қол жетімді болғанда: type = discord Discord webhook URL |
telegram | Міндетті емес Жолақ | Қол жетімді болғанда: type = telegram Telegram API токені |
telegram_chat_id | Міндетті емес Жолақ | Қол жетімді болғанда: type = telegram Telegram чат идентификаторы |
microsoft_teams | Міндетті емес Жолақ | Қол жетімді болғанда: type = microsoft_teams Microsoft Teams webhook URL |
is_enabled | Міндетті емес Логикалық | - |
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}' \