सूचना ह्यान्डलरहरू

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:43:37" } ], "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:43:37" } }
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 च्याट ID
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 च्याट ID
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}' \