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

GET https://app.qr-kode.no/api/notification-handlers/
curl --request GET \
--url 'https://app.qr-kode.no/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": "2026-02-09 12:57:48",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://app.qr-kode.no/api/notification-handlers?page=1",
        "last": "https://app.qr-kode.no/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://app.qr-kode.no/api/notification-handlers?page=1"
    }
}
GET https://app.qr-kode.no/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://app.qr-kode.no/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": "2026-02-09 12:57:48",
    }
}
POST https://app.qr-kode.no/api/notification-handlers
พารามิเตอร์ต่างๆ รายละเอียด คำอธิบาย
name จำเป็นต้องมีนะคะ สตริงค่ะ -
type จำเป็นต้องมีนะคะ สตริงค่ะ ค่าที่ใช้ได้คือ: email , webhook นะคะ
email ไม่จำเป็นก็ได้นะ สตริงค่ะ มีให้ใช้เมื่อ: type = email ครับ อีเมล
webhook ไม่จำเป็นก็ได้นะ สตริงค่ะ มีให้ใช้เมื่อ: type = webhook ครับ Webhook URL
curl --request POST \
--url 'https://app.qr-kode.no/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://app.qr-kode.no/api/notification-handlers/{notification_handler_id}
พารามิเตอร์ต่างๆ รายละเอียด คำอธิบาย
name ไม่จำเป็นก็ได้นะ สตริงค่ะ -
type ไม่จำเป็นก็ได้นะ สตริงค่ะ ค่าที่ใช้ได้คือ: email , webhook นะคะ
email ไม่จำเป็นก็ได้นะ สตริงค่ะ มีให้ใช้เมื่อ: type = email ครับ อีเมล
webhook ไม่จำเป็นก็ได้นะ สตริงค่ะ มีให้ใช้เมื่อ: type = webhook ครับ Webhook URL
is_enabled ไม่จำเป็นก็ได้นะ บูลีนค่ะ -
curl --request POST \
--url 'https://app.qr-kode.no/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://app.qr-kode.no/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://app.qr-kode.no/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \