معالجات الإخطار
GET https://mbio.one/api/notification-handlers/
curl --request GET \
--url 'https://mbio.one/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mbio.one/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": "2026-11-23 13:06:38"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://mbio.one/api/notification-handlers?&page=1",
"last": "https://mbio.one/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://mbio.one/api/notification-handlers?&page=1"
}
}
GET https://mbio.one/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://mbio.one/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mbio.one/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": "2026-11-23 13:06:38"
}
}
POST https://mbio.one/api/notification-handlers
| حدود | التفاصيل | الوصف |
|---|---|---|
| name | مطلوب خيط | - |
| type | مطلوب خيط | القيم المسموح بها: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id |
| اختياري خيط | متاح عندما: type = email البريد الإلكتروني | |
| webhook | اختياري خيط | متاح عندما: type = webhook الرابط للويب هوك |
| slack | اختياري خيط | متاح عندما: type = slack الرابط الخاص بWebhook Slack |
| discord | اختياري خيط | متاح عندما: type = discord الرابط للخطاف على الويب للخلاف |
| telegram | اختياري خيط | متاح عندما: type = telegram رمز واجهة برمجة تطبيقات Telegram |
| telegram_chat_id | اختياري خيط | متاح عندما: type = 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://mbio.one/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://mbio.one/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://mbio.one/api/notification-handlers/{notification_handler_id}
| حدود | التفاصيل | الوصف |
|---|---|---|
| name | اختياري خيط | - |
| type | اختياري خيط | القيم المسموح بها: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id |
| اختياري خيط | متاح عندما: type = email البريد الإلكتروني | |
| webhook | اختياري خيط | متاح عندما: type = webhook الرابط للويب هوك |
| slack | اختياري خيط | متاح عندما: type = slack الرابط الخاص بWebhook Slack |
| discord | اختياري خيط | متاح عندما: type = discord الرابط للخطاف على الويب للخلاف |
| telegram | اختياري خيط | متاح عندما: type = telegram رمز واجهة برمجة تطبيقات Telegram |
| telegram_chat_id | اختياري خيط | متاح عندما: type = 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://mbio.one/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://mbio.one/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://mbio.one/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://mbio.one/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mbio.one/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \