Notification handlers

GET https://elnk.pro/api/notification-handlers/
curl --request GET \
--url 'https://elnk.pro/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-08-06 17:59:21" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://elnk.pro/api/notification-handlers?&page=1", "last": "https://elnk.pro/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://elnk.pro/api/notification-handlers?&page=1" } }
GET https://elnk.pro/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://elnk.pro/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-08-06 17:59:21" } }
POST https://elnk.pro/api/notification-handlers
প্যারামিটার বিস্তারিত বিবরণ
name আবশ্যক স্ট্রিং -
type আবশ্যক স্ট্রিং অনুমোদিত মানগুলি: email , webhook , slack , discord , telegram , microsoft_teams
email ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = email Email
webhook ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = webhook Webhook URL
slack ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = slack Slack webhook URL
discord ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = discord Discord webhook URL
telegram ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = telegram Telegram API Token
telegram_chat_id ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = telegram Telegram Chat ID
x_consumer_key ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_consumer_secret ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_access_token ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_access_token_secret ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
curl --request POST \
--url 'https://elnk.pro/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://elnk.pro/api/notification-handlers/{notification_handler_id}
প্যারামিটার বিস্তারিত বিবরণ
name ঐচ্ছিক স্ট্রিং -
type ঐচ্ছিক স্ট্রিং অনুমোদিত মানগুলি: email , webhook , slack , discord , telegram , microsoft_teams
email ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = email Email
webhook ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = webhook Webhook URL
slack ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = slack Slack webhook URL
discord ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = discord Discord webhook URL
telegram ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = telegram Telegram API Token
telegram_chat_id ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = telegram Telegram Chat ID
x_consumer_key ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_consumer_secret ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_access_token ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
x_access_token_secret ঐচ্ছিক স্ট্রিং যখন উপলব্ধ: type = x Telegram API Token
is_enabled ঐচ্ছিক বুলিয়ান -
curl --request POST \
--url 'https://elnk.pro/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://elnk.pro/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://elnk.pro/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \