Obsługujące powiadomienia

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametry Szczegóły Opis
page Opcjonalny Całkowity Numer strony, z której chcesz uzyskać wyniki. Domyślnie 1.
results_per_page Opcjonalny Całkowity Ile wyników chcesz na stronę. Dozwolone wartości to: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Domyślnie 25.
{
    "data": [
        {
            "id": 1,
            "type": "email",
            "name": "Work email",
            "settings": {
                "email": "[email protected]"
            },
            "is_enabled": true,
            "last_datetime": null,
            "datetime": "2025-10-16 11:06:59",
        }
    ],
    "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:06:59",
    }
}
POST https://tistos.com/api/notification-handlers
Parametry Szczegóły Opis
name Wymagane Ciąg -
type Wymagane Ciąg Dozwolone wartości: email , webhook , slack , discord , telegram , microsoft_teams
email Opcjonalny Ciąg Dostępne kiedy: type = email E-mail
webhook Opcjonalny Ciąg Dostępne kiedy: type = webhook URL webhook
slack Opcjonalny Ciąg Dostępne kiedy: type = slack Adres URL webhook Slack
discord Opcjonalny Ciąg Dostępne kiedy: type = discord Adres URL webhook Discord
telegram Opcjonalny Ciąg Dostępne kiedy: type = telegram Token API Telegrama
telegram_chat_id Opcjonalny Ciąg Dostępne kiedy: type = telegram ID czatu Telegram
microsoft_teams Opcjonalny Ciąg Dostępne kiedy: type = microsoft_teams Adres URL webhook 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]' \
{
    "data": {
        "id": 1
    }
}
POST https://tistos.com/api/notification-handlers/{notification_handler_id}
Parametry Szczegóły Opis
name Opcjonalny Ciąg -
type Opcjonalny Ciąg Dozwolone wartości: email , webhook , slack , discord , telegram , microsoft_teams
email Opcjonalny Ciąg Dostępne kiedy: type = email E-mail
webhook Opcjonalny Ciąg Dostępne kiedy: type = webhook URL webhook
slack Opcjonalny Ciąg Dostępne kiedy: type = slack Adres URL webhook Slack
discord Opcjonalny Ciąg Dostępne kiedy: type = discord Adres URL webhook Discord
telegram Opcjonalny Ciąg Dostępne kiedy: type = telegram Token API Telegrama
telegram_chat_id Opcjonalny Ciąg Dostępne kiedy: type = telegram ID czatu Telegram
microsoft_teams Opcjonalny Ciąg Dostępne kiedy: type = microsoft_teams Adres URL webhook Microsoft Teams
is_enabled Opcjonalny 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}' \