Апрацоўшчыкі апавяшчэнняў
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-07-27 05:42:20"
}
],
"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-07-27 05:42:20"
}
}
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 Ідэнтыфікатар чата Telegram |
x_consumer_key | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_consumer_secret | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_access_token | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_access_token_secret | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
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 Ідэнтыфікатар чата Telegram |
x_consumer_key | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_consumer_secret | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_access_token | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
x_access_token_secret | Неабавязковы Строка | Даступна, калі: type = x Токен API Telegram |
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}' \