Обработчики уведомлений
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:15:26", } ], "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:15:26", } }
POST https://tistos.com/api/notification-handlers
Параметры | Детали | Описание |
---|---|---|
name | Обязательно Строка | - |
type | Обязательно Строка | Допустимые значения: email , webhook , slack , discord , telegram , microsoft_teams |
Необязательный Строка | Доступно когда: type = email Электронная почта | |
webhook | Необязательный Строка | Доступно когда: type = webhook URL webhook |
slack | Необязательный Строка | Доступно когда: type = slack Slack webhook URL |
discord | Необязательный Строка | Доступно когда: type = discord Discord webhook URL |
telegram | Необязательный Строка | Доступно когда: type = telegram Токен API Telegram |
telegram_chat_id | Необязательный Строка | Доступно когда: type = telegram ID чата Telegram |
microsoft_teams | Необязательный Строка | Доступно когда: type = microsoft_teams URL вебхука Microsoft Teams |
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 URL webhook |
slack | Необязательный Строка | Доступно когда: type = slack Slack webhook URL |
discord | Необязательный Строка | Доступно когда: type = discord Discord webhook URL |
telegram | Необязательный Строка | Доступно когда: type = telegram Токен API Telegram |
telegram_chat_id | Необязательный Строка | Доступно когда: type = telegram ID чата Telegram |
microsoft_teams | Необязательный Строка | Доступно когда: type = microsoft_teams URL вебхука Microsoft Teams |
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}' \