বিজ্ঞপ্তি হ্যান্ডলার
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:47", } ], "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:47", } }
POST https://tistos.com/api/notification-handlers
প্যারামিটারসমূহ | বিস্তারিত | বর্ণনা |
---|---|---|
name | প্রয়োজনীয় স্ট্রিং | - |
type | প্রয়োজনীয় স্ট্রিং | অনুমোদিত মান: email , webhook , slack , discord , telegram , microsoft_teams |
ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = email ইমেইল | |
webhook | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = webhook Webhook URL |
slack | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = slack Slack webhook URL |
discord | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = discord Discord webhook URL |
telegram | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = telegram Telegram API টোকেন |
telegram_chat_id | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = telegram Telegram চ্যাট আইডি |
microsoft_teams | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = microsoft_teams Microsoft Teams webhook URL |
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 URL |
slack | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = slack Slack webhook URL |
discord | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = discord Discord webhook URL |
telegram | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = telegram Telegram API টোকেন |
telegram_chat_id | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = telegram Telegram চ্যাট আইডি |
microsoft_teams | ঐচ্ছিক স্ট্রিং | কখন উপলব্ধ: type = microsoft_teams Microsoft Teams webhook URL |
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}' \