ตัวจัดการการแจ้งเตือน

GET https://bitpeak.ru/api/notification-handlers/
curl --request GET \
--url 'https://bitpeak.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-12-08 15:39:48",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://bitpeak.ru/api/notification-handlers?page=1",
        "last": "https://bitpeak.ru/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://bitpeak.ru/api/notification-handlers?page=1"
    }
}
GET https://bitpeak.ru/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://bitpeak.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-12-08 15:39:48",
    }
}
POST https://bitpeak.ru/api/notification-handlers
พารามิเตอร์ รายละเอียด คำอธิบาย
name จำเป็นต้องมี สตริง -
type จำเป็นต้องมี สตริง ค่าที่อนุญาต: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification
email ตัวเลือก สตริง ใช้งานได้เมื่อ: type = 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
curl --request POST \
--url 'https://bitpeak.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://bitpeak.ru/api/notification-handlers/{notification_handler_id}
พารามิเตอร์ รายละเอียด คำอธิบาย
name ตัวเลือก สตริง -
type ตัวเลือก สตริง ค่าที่อนุญาต: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification
email ตัวเลือก สตริง ใช้งานได้เมื่อ: type = 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
is_enabled ตัวเลือก บูลีน -
curl --request POST \
--url 'https://bitpeak.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://bitpeak.ru/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://bitpeak.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \