सूचना व्यवस्थापक

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-07-27 05:50:30" } ], "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-07-27 05:50:30" } }
POST https://tistos.com/api/notification-handlers
पॅरामीटर्स तपशील वर्णन
name आवश्यक स्ट्रिंग -
type आवश्यक स्ट्रिंग परवानाधारित मूल्ये: email , webhook , slack , discord , telegram , microsoft_teams
email पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = email ईमेल
webhook पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = webhook Webhook URL
slack पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = slack Slack webhook URL
discord पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = discord Discord webhook URL
telegram पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = telegram Telegram API टोकन
telegram_chat_id पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = telegram Telegram चॅट आयडी
x_consumer_key पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_consumer_secret पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_access_token पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_access_token_secret पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
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 Webhook URL
slack पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = slack Slack webhook URL
discord पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = discord Discord webhook URL
telegram पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = telegram Telegram API टोकन
telegram_chat_id पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = telegram Telegram चॅट आयडी
x_consumer_key पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_consumer_secret पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_access_token पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
x_access_token_secret पर्यायी स्ट्रिंग उपलब्ध केव्हा: type = x Telegram API टोकन
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}' \