Spracovatelia oznámení
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}' \
Parametre | Podrobnosti | Popis |
---|---|---|
page | Voliteľné Celé číslo | Číslo stránky, z ktorej chcete výsledky. Predvolene na 1 . |
results_per_page | Voliteľné Celé číslo | Koľko výsledkov chcete na stránku. Povolené hodnoty sú: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predvolené je 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:58", } ], "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:06:58", } }
POST https://tistos.com/api/notification-handlers
Parametre | Podrobnosti | Popis |
---|---|---|
name | Povinné Reťazec | - |
type | Povinné Reťazec | Povolené hodnoty: email , webhook , slack , discord , telegram , microsoft_teams |
Voliteľné Reťazec | Dostupné, keď: type = email E-mail | |
webhook | Voliteľné Reťazec | Dostupné, keď: type = webhook URL webhook |
slack | Voliteľné Reťazec | Dostupné, keď: type = slack Slack webhook URL |
discord | Voliteľné Reťazec | Dostupné, keď: type = discord Discord webhook URL |
telegram | Voliteľné Reťazec | Dostupné, keď: type = telegram Token API pre Telegram |
telegram_chat_id | Voliteľné Reťazec | Dostupné, keď: type = telegram ID chatu Telegram |
microsoft_teams | Voliteľné Reťazec | Dostupné, keď: 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}
Parametre | Podrobnosti | Popis |
---|---|---|
name | Voliteľné Reťazec | - |
type | Voliteľné Reťazec | Povolené hodnoty: email , webhook , slack , discord , telegram , microsoft_teams |
Voliteľné Reťazec | Dostupné, keď: type = email E-mail | |
webhook | Voliteľné Reťazec | Dostupné, keď: type = webhook URL webhook |
slack | Voliteľné Reťazec | Dostupné, keď: type = slack Slack webhook URL |
discord | Voliteľné Reťazec | Dostupné, keď: type = discord Discord webhook URL |
telegram | Voliteľné Reťazec | Dostupné, keď: type = telegram Token API pre Telegram |
telegram_chat_id | Voliteľné Reťazec | Dostupné, keď: type = telegram ID chatu Telegram |
microsoft_teams | Voliteľné Reťazec | Dostupné, keď: type = microsoft_teams Microsoft Teams webhook URL |
is_enabled | Voliteľné Logická hodnota | - |
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}' \