नोटिफिकेशन हैंडलर्स

GET https://dmpilot.ru/api/notification-handlers/
curl --request GET \
--url 'https://dmpilot.ru/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": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-06-07 02:12:27" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://dmpilot.ru/api/notification-handlers?&page=1", "last": "https://dmpilot.ru/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://dmpilot.ru/api/notification-handlers?&page=1" } }
GET https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-06-07 02:12:27" } }
POST https://dmpilot.ru/api/notification-handlers
पैरामीटर्स विवरण विवरण
name आवश्यक स्ट्रिंग -
type आवश्यक स्ट्रिंग अनुमत मान: email , webhook , slack , discord , telegram , microsoft_teams
email वैकल्पिक स्ट्रिंग उपलब्ध जब: type = email ईमेल
webhook वैकल्पिक स्ट्रिंग उपलब्ध जब: type = webhook वेबहुक URL
slack वैकल्पिक स्ट्रिंग उपलब्ध जब: type = slack Slack वेबहुक URL
discord वैकल्पिक स्ट्रिंग उपलब्ध जब: type = discord Discord वेबहुक URL
telegram वैकल्पिक स्ट्रिंग उपलब्ध जब: type = telegram Telegram API टोकन
telegram_chat_id वैकल्पिक स्ट्रिंग उपलब्ध जब: type = telegram Telegram चैट 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://dmpilot.ru/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{ "data": { "id": 1 } }
POST https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
पैरामीटर्स विवरण विवरण
name वैकल्पिक स्ट्रिंग -
type वैकल्पिक स्ट्रिंग अनुमत मान: email , webhook , slack , discord , telegram , microsoft_teams
email वैकल्पिक स्ट्रिंग उपलब्ध जब: type = email ईमेल
webhook वैकल्पिक स्ट्रिंग उपलब्ध जब: type = webhook वेबहुक URL
slack वैकल्पिक स्ट्रिंग उपलब्ध जब: type = slack Slack वेबहुक URL
discord वैकल्पिक स्ट्रिंग उपलब्ध जब: type = discord Discord वेबहुक URL
telegram वैकल्पिक स्ट्रिंग उपलब्ध जब: type = telegram Telegram API टोकन
telegram_chat_id वैकल्पिक स्ट्रिंग उपलब्ध जब: type = telegram Telegram चैट 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 वैकल्पिक बूलियन -
curl --request POST \
--url 'https://dmpilot.ru/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://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \