Bildirim işleyicileri

GET https://bee.ws/api/notification-handlers/
curl --request GET \
--url 'https://bee.ws/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler Ayrıntılar Açıklama
page İsteğe bağlı Tamsayı Sonuçları almak istediğiniz sayfa numarası. Varsayılanı 1.
results_per_page İsteğe bağlı Tamsayı Sayfa başına kaç sonuç istediğiniz. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Varsayılan 25 değeridir.
{
    "data": [
        {
            "id": 1,
            "type": "email",
            "name": "Work email",
            "settings": {
                "email": "hey@example.com"
            },
            "is_enabled": true,
            "last_datetime": null,
            "datetime": "2025-11-08 14:10:22",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://bee.ws/api/notification-handlers?page=1",
        "last": "https://bee.ws/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://bee.ws/api/notification-handlers?page=1"
    }
}
GET https://bee.ws/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://bee.ws/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-11-08 14:10:22",
    }
}
POST https://bee.ws/api/notification-handlers
Parametreler Ayrıntılar Açıklama
name Zorunlu Dize -
type Zorunlu Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = email Email
webhook İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = webhook Webhook URL
slack İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = slack Slack webhook URL
discord İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = discord Discord webhook URL
telegram İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = telegram Telegram API Token
telegram_chat_id İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = telegram Telegram Chat ID
microsoft_teams İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL
curl --request POST \
--url 'https://bee.ws/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://bee.ws/api/notification-handlers/{notification_handler_id}
Parametreler Ayrıntılar Açıklama
name İsteğe bağlı Dize -
type İsteğe bağlı Dize İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams
email İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = email Email
webhook İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = webhook Webhook URL
slack İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = slack Slack webhook URL
discord İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = discord Discord webhook URL
telegram İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = telegram Telegram API Token
telegram_chat_id İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = telegram Telegram Chat ID
microsoft_teams İsteğe bağlı Dize Şu durumlarda kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL
is_enabled İsteğe bağlı Mantıksal -
curl --request POST \
--url 'https://bee.ws/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://bee.ws/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://bee.ws/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \