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