អ្នកចាត់ចែងការជូនដំណឹង

GET https://h3h3.site/api/notification-handlers/
curl --request GET \
--url 'https://h3h3.site/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-07 20:21:22",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://h3h3.site/api/notification-handlers?page=1",
        "last": "https://h3h3.site/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://h3h3.site/api/notification-handlers?page=1"
    }
}
GET https://h3h3.site/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://h3h3.site/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-07 20:21:22",
    }
}
POST https://h3h3.site/api/notification-handlers
ប៉ារ៉ាម៉ែត្រ ព័ត៌មានលម្អិត ការពិពណ៌នា
name ទាមទារ សូត្រ -
type ទាមទារ សូត្រ តម្លៃដែលអនុញ្ញាត៖ email , webhook , slack , discord , telegram , microsoft_teams , twilio_call , x , google_chat , internal_notification
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
microsoft_teams ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = microsoft_teams Microsoft Teams webhook URL
google_chat ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = google_chat Google chat webhook URL
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
twilio_call ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = twilio_call Phone number
curl --request POST \
--url 'https://h3h3.site/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://h3h3.site/api/notification-handlers/{notification_handler_id}
ប៉ារ៉ាម៉ែត្រ ព័ត៌មានលម្អិត ការពិពណ៌នា
name ស្រេចចិត្ត សូត្រ -
type ស្រេចចិត្ត សូត្រ តម្លៃដែលអនុញ្ញាត៖ email , webhook , slack , discord , telegram , microsoft_teams , twilio_call , x , google_chat , internal_notification
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
microsoft_teams ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = microsoft_teams Microsoft Teams webhook URL
google_chat ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = google_chat Google chat webhook URL
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
twilio_call ស្រេចចិត្ត សូត្រ មាននៅពេល៖ type = twilio_call Phone number
is_enabled ស្រេចចិត្ត ប៊ូលីន -
curl --request POST \
--url 'https://h3h3.site/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://h3h3.site/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://h3h3.site/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \