معالجات الإشعارات

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:54:31" } ], "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:54:31" } }
POST https://tistos.com/api/notification-handlers
المعلمات تفاصيل وصف
name مطلوب سلسلة -
type مطلوب سلسلة القيم المسموح بها: email , webhook , slack , discord , telegram , microsoft_teams
email اختياري سلسلة متوفر عندما: type = email البريد الإلكتروني
webhook اختياري سلسلة متوفر عندما: type = webhook رابط Webhook
slack اختياري سلسلة متوفر عندما: type = slack رابط Slack webhook
discord اختياري سلسلة متوفر عندما: type = discord رابط Discord webhook
telegram اختياري سلسلة متوفر عندما: type = telegram رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
telegram_chat_id اختياري سلسلة متوفر عندما: type = telegram معرّف دردشة Telegram
x_consumer_key اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_consumer_secret اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_access_token اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_access_token_secret اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ 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]' \
{ "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
slack اختياري سلسلة متوفر عندما: type = slack رابط Slack webhook
discord اختياري سلسلة متوفر عندما: type = discord رابط Discord webhook
telegram اختياري سلسلة متوفر عندما: type = telegram رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
telegram_chat_id اختياري سلسلة متوفر عندما: type = telegram معرّف دردشة Telegram
x_consumer_key اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_consumer_secret اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_access_token اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ Telegram
x_access_token_secret اختياري سلسلة متوفر عندما: type = x رمز واجهة برمجة التطبيقات الخاصة بـ 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' \
{ "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}' \