Notification handlers

GET https://alarm.lt/api/notification-handlers/
curl --request GET \
--url 'https://alarm.lt/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametrai Details Description
page Neprivaloma Sveikasis skaičius Puslapio numeris, iš kurio norite gauti rezultatus. Numatytasis reikšmė yra 1.
results_per_page Neprivaloma Sveikasis skaičius Kiek rezultatų norite matyti puslapyje. Leidžiamos reikšmės yra: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Numatytasis variantas yra 25.
{
    "data": [
        {
            "id": 1,
            "type": "email",
            "name": "Work email",
            "settings": {
                "email": "hey@example.com"
            },
            "is_enabled": true,
            "last_datetime": null,
            "datetime": "2025-10-10 10:21:01",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://alarm.lt/api/notification-handlers?page=1",
        "last": "https://alarm.lt/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://alarm.lt/api/notification-handlers?page=1"
    }
}
GET https://alarm.lt/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://alarm.lt/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-10-10 10:21:01",
    }
}
POST https://alarm.lt/api/notification-handlers
Parametrai Details Description
name Reikalinga Eilutė -
type Reikalinga Eilutė Leidžiamos reikšmės: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp
email Neprivaloma Eilutė Available when: type = email Email
webhook Neprivaloma Eilutė Available when: type = webhook Webhook URL
slack Neprivaloma Eilutė Available when: type = slack Slack webhook URL
discord Neprivaloma Eilutė Available when: type = discord Discord webhook URL
telegram Neprivaloma Eilutė Available when: type = telegram Telegram API Token
telegram_chat_id Neprivaloma Eilutė Available when: type = telegram Telegram Chat ID
microsoft_teams Neprivaloma Eilutė Available when: type = microsoft_teams Microsoft Teams webhook URL
push_subscriber_id Neprivaloma Eilutė Available when: type = push_subscriber_id Push subscriber
whatsapp Neprivaloma Eilutė Available when: type = whatsapp Phone number
curl --request POST \
--url 'https://alarm.lt/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://alarm.lt/api/notification-handlers/{notification_handler_id}
Parametrai Details Description
name Neprivaloma Eilutė -
type Neprivaloma Eilutė Leidžiamos reikšmės: email , webhook , slack , discord , telegram , microsoft_teams , whatsapp
email Neprivaloma Eilutė Available when: type = email Email
webhook Neprivaloma Eilutė Available when: type = webhook Webhook URL
slack Neprivaloma Eilutė Available when: type = slack Slack webhook URL
discord Neprivaloma Eilutė Available when: type = discord Discord webhook URL
telegram Neprivaloma Eilutė Available when: type = telegram Telegram API Token
telegram_chat_id Neprivaloma Eilutė Available when: type = telegram Telegram Chat ID
microsoft_teams Neprivaloma Eilutė Available when: type = microsoft_teams Microsoft Teams webhook URL
push_subscriber_id Neprivaloma Eilutė Available when: type = push_subscriber_id Push subscriber
whatsapp Neprivaloma Eilutė Available when: type = whatsapp Phone number
is_enabled Neprivaloma Logiškas -
curl --request POST \
--url 'https://alarm.lt/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://alarm.lt/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://alarm.lt/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \