Обработващи известия

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--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:20:07",
        }
    ],
    "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-10-16 11:20:07",
    }
}
POST https://tistos.com/api/notification-handlers
Параметри Детайли Описание
name Задължително Низ -
type Задължително Низ Разрешени стойности: email , webhook , slack , discord , telegram , microsoft_teams
email По избор Низ Наличен когато: type = email Имейл
webhook По избор Низ Наличен когато: type = webhook URL на webhook
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]' \
{
    "data": {
        "id": 1
    }
}
POST https://tistos.com/api/notification-handlers/{notification_handler_id}
Параметри Детайли Описание
name По избор Низ -
type По избор Низ Разрешени стойности: email , webhook , slack , discord , telegram , microsoft_teams
email По избор Низ Наличен когато: type = email Имейл
webhook По избор Низ Наличен когато: type = webhook URL на webhook
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' \
{
    "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}' \