معالجات الإخطار
GET https://nootfy.com/api/notification-handlers/
curl --request GET \
--url 'https://nootfy.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
المتغيرات | التفاصيل | الوصف |
---|---|---|
page | إختياري رقم صحيح | رقم الصفحة التي تريد الحصول على النتائج منها. 1 . |
results_per_page | إختياري رقم صحيح | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Defaults to 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-03-13 11:13:50"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://nootfy.com/api/notification-handlers?&page=1",
"last": "https://nootfy.com/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://nootfy.com/api/notification-handlers?&page=1"
}
}
GET https://nootfy.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://nootfy.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.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-03-13 11:13:50"
}
}
POST https://nootfy.com/api/notification-handlers
المتغيرات | التفاصيل | الوصف |
---|---|---|
name | إجباري نص | - |
type | إجباري نص | القيم المسموح بها: email , webhook , slack , discord , telegram , microsoft_teams |
إختياري نص | متاح عندما: type = email البريد الإلكتروني | |
webhook | إختياري نص | متاح عندما: type = webhook رابط الـ WebHook |
slack | إختياري نص | متاح عندما: type = slack الـ WebHook |
discord | إختياري نص | متاح عندما: type = discord الـ WebHook |
telegram | إختياري نص | متاح عندما: type = telegram رمز Telegram Api |
telegram_chat_id | إختياري نص | متاح عندما: type = telegram تيليجرام Chat 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://nootfy.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://nootfy.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://nootfy.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 الـ WebHook |
discord | إختياري نص | متاح عندما: type = discord الـ WebHook |
telegram | إختياري نص | متاح عندما: type = telegram رمز Telegram Api |
telegram_chat_id | إختياري نص | متاح عندما: type = telegram تيليجرام Chat 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 | إختياري منطق (true - false) | - |
curl --request POST \
--url 'https://nootfy.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://nootfy.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://nootfy.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://nootfy.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://nootfy.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \