អ្នកគ្រប់គ្រងការជូនដំណឹង
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}' \
| ប៉ារ៉ាម៉ែត្រ | ព័ត៌មានលម្អិត | សេចក្ដីពិពណ៌នា |
|---|---|---|
| search | ជ្រើសរើសបាន ខ្សែអក្សរ | ខ្សែអក្សរការស្វែងរក។ |
| search_by | ជ្រើសរើសបាន ខ្សែអក្សរ | តើអ្នកកំពុងស្វែងរកតាមវិស័យអ្វី។ តម្លៃដែលអនុញ្ញាតគឺ: name. |
| is_enabled | ជ្រើសរើសបាន Boolean | |
| type | ជ្រើសរើសបាន ខ្សែអក្សរ | តើអ្នកកំពុងស្វែងរកតាមវិស័យអ្វី។ តម្លៃដែលអនុញ្ញាតគឺ: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | ជ្រើសរើសបាន ខ្សែអក្សរ | តម្លៃដែលអនុញ្ញាត: datetime, last_datetime |
| datetime_start | ជ្រើសរើសបាន ខ្សែអក្សរ | ត្រងលទ្ធផលចាប់ពីកាលបរិច្ឆេទ និងម៉ោងនេះ។ ទម្រង់ Y-m-d H:i:s។ |
| datetime_end | ជ្រើសរើសបាន ខ្សែអក្សរ | ត្រងលទ្ធផលរហូតដល់កាលបរិច្ឆេទ និងម៉ោងនេះ។ ទម្រង់ Y-m-d H:i:s។ |
| order_by | ជ្រើសរើសបាន ខ្សែអក្សរ | តើតំបន់ណាដែលត្រូវបញ្ជាទិញលទ្ធផលដោយ។ តម្លៃដែលអនុញ្ញាតគឺ: notification_handler_id, datetime, last_datetime, name។ |
| order_type | ជ្រើសរើសបាន ខ្សែអក្សរ | ការបញ្ជាទិញនៃលទ្ធផល។ តម្លៃដែលអនុញ្ញាតគឺ: ASC សម្រាប់ការបញ្ជាទិញកើនឡើង និង DESC សម្រាប់ការបញ្ជាទិញកើនចុះ។ |
| search | ជ្រើសរើសបាន ខ្សែអក្សរ | ខ្សែអក្សរការស្វែងរក។ |
| search_by | ជ្រើសរើសបាន ខ្សែអក្សរ | តើអ្នកកំពុងស្វែងរកតាមវិស័យអ្វី។ តម្លៃដែលអនុញ្ញាតគឺ: name. |
| is_enabled | ជ្រើសរើសបាន Boolean | |
| type | ជ្រើសរើសបាន ខ្សែអក្សរ | តើអ្នកកំពុងស្វែងរកតាមវិស័យអ្វី។ តម្លៃដែលអនុញ្ញាតគឺ: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | ជ្រើសរើសបាន ខ្សែអក្សរ | តម្លៃដែលអនុញ្ញាត: datetime, last_datetime |
| datetime_start | ជ្រើសរើសបាន ខ្សែអក្សរ | ត្រងលទ្ធផលចាប់ពីកាលបរិច្ឆេទ និងម៉ោងនេះ។ ទម្រង់ Y-m-d H:i:s។ |
| datetime_end | ជ្រើសរើសបាន ខ្សែអក្សរ | ត្រងលទ្ធផលរហូតដល់កាលបរិច្ឆេទ និងម៉ោងនេះ។ ទម្រង់ Y-m-d H:i:s។ |
| order_by | ជ្រើសរើសបាន ខ្សែអក្សរ | តើតំបន់ណាដែលត្រូវបញ្ជាទិញលទ្ធផលដោយ។ តម្លៃដែលអនុញ្ញាតគឺ: notification_handler_id, datetime, last_datetime, name។ |
| order_type | ជ្រើសរើសបាន ខ្សែអក្សរ | ការបញ្ជាទិញនៃលទ្ធផល។ តម្លៃដែលអនុញ្ញាតគឺ: ASC សម្រាប់ការបញ្ជាទិញកើនឡើង និង DESC សម្រាប់ការបញ្ជាទិញកើនចុះ។ |
| 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-07-18 12:45:20",
}
],
"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": "2026-07-18 12:45:20",
}
}
POST https://tistos.com/api/notification-handlers
| ប៉ារ៉ាម៉ែត្រ | ព័ត៌មានលម្អិត | សេចក្ដីពិពណ៌នា |
|---|---|---|
| name | ត្រូវការពីរ ខ្សែអក្សរ | - |
| type | ត្រូវការពីរ ខ្សែអក្សរ | តម្លៃដែលអនុញ្ញាត: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat |
| ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = email អ៊ីមែល | |
| webhook | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = webhook URL webhook |
| slack | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = slack URL webhook Slack |
| discord | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = discord URL webhook Discord |
| telegram | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = telegram លេខសំងាត់ API របស់ Telegram |
| telegram_chat_id | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = telegram លេខសម្គាល់ជជែក Telegram |
| microsoft_teams | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = microsoft_teams URL webhook Microsoft Teams |
| google_chat | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = google_chat URL webhook Google Chat |
| x_consumer_key | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_consumer_secret | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_access_token | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_access_token_secret | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
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, x, google_chat |
| ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = email អ៊ីមែល | |
| webhook | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = webhook URL webhook |
| slack | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = slack URL webhook Slack |
| discord | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = discord URL webhook Discord |
| telegram | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = telegram លេខសំងាត់ API របស់ Telegram |
| telegram_chat_id | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = telegram លេខសម្គាល់ជជែក Telegram |
| microsoft_teams | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = microsoft_teams URL webhook Microsoft Teams |
| google_chat | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = google_chat URL webhook Google Chat |
| x_consumer_key | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_consumer_secret | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_access_token | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| x_access_token_secret | ជ្រើសរើសបាន ខ្សែអក្សរ | អាចប្រើបាននៅពេល: type = x លេខសំងាត់ API របស់ Telegram |
| is_enabled | ជ្រើសរើសបាន Boolean | - |
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}' \