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

GET https://tool-fly.com/api/notification-handlers/
curl --request GET \
--url 'https://tool-fly.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-21 10:21:03" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://tool-fly.com/api/notification-handlers?&page=1", "last": "https://tool-fly.com/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://tool-fly.com/api/notification-handlers?&page=1" } }
GET https://tool-fly.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://tool-fly.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-21 10:21:03" } }
POST https://tool-fly.com/api/notification-handlers
المعاملات تفاصيل الوصف
name مطلوب سلسلة -
type مطلوب سلسلة القيم المسموحة: email , webhook , slack , discord , telegram , microsoft_teams
email اختياري سلسلة متاح عندما: type = email البريد الإلكتروني
webhook اختياري سلسلة متاح عندما: type = webhook رابط ويب هوك
slack اختياري سلسلة متاح عندما: type = slack رابط ويب هوك Slack
discord اختياري سلسلة متاح عندما: type = discord رابط ويب هوك Discord
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://tool-fly.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://tool-fly.com/api/notification-handlers/{notification_handler_id}
المعاملات تفاصيل الوصف
name اختياري سلسلة -
type اختياري سلسلة القيم المسموحة: email , webhook , slack , discord , telegram , microsoft_teams
email اختياري سلسلة متاح عندما: type = email البريد الإلكتروني
webhook اختياري سلسلة متاح عندما: type = webhook رابط ويب هوك
slack اختياري سلسلة متاح عندما: type = slack رابط ويب هوك Slack
discord اختياري سلسلة متاح عندما: type = discord رابط ويب هوك Discord
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://tool-fly.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://tool-fly.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://tool-fly.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \