Ծանուցման կառավարիչներ

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/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-16 11:15:27",
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://tistos.com/api/notification-handlers?page=1",
        "last": "https://tistos.com/api/notification-handlers?page=1",
        "next": null,
        "prev": null,
        "self": "https://tistos.com/api/notification-handlers?page=1"
    }
}
GET https://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://tistos.com/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-16 11:15:27",
    }
}
POST https://tistos.com/api/notification-handlers
Պարամետրեր Մանրամասներ Նկարագրություն
name Պահանջվում է Տող -
type Պահանջվում է Տող Թույլատրված արժեքներ: email , webhook , slack , discord , telegram , microsoft_teams
email ընտրովի Տող Available when: type = email Էլեկտրոնային փոստ
webhook ընտրովի Տող Available when: type = webhook Webhook URL
slack ընտրովի Տող Available when: type = slack Slack webhook URL
discord ընտրովի Տող Available when: type = discord Discord webhook URL
telegram ընտրովի Տող Available when: type = telegram Telegram API նշան
telegram_chat_id ընտրովի Տող Available when: type = telegram Telegram չաթի ID
microsoft_teams ընտրովի Տող Available when: type = microsoft_teams Microsoft Teams webhook URL
curl --request POST \
--url 'https://tistos.com/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://tistos.com/api/notification-handlers/{notification_handler_id}
Պարամետրեր Մանրամասներ Նկարագրություն
name ընտրովի Տող -
type ընտրովի Տող Թույլատրված արժեքներ: email , webhook , slack , discord , telegram , microsoft_teams
email ընտրովի Տող Available when: type = email Էլեկտրոնային փոստ
webhook ընտրովի Տող Available when: type = webhook Webhook URL
slack ընտրովի Տող Available when: type = slack Slack webhook URL
discord ընտրովի Տող Available when: type = discord Discord webhook URL
telegram ընտրովի Տող Available when: type = telegram Telegram API նշան
telegram_chat_id ընտրովի Տող Available when: type = telegram Telegram չաթի ID
microsoft_teams ընտրովի Տող Available when: type = microsoft_teams Microsoft Teams webhook URL
is_enabled ընտրովի Բուլյան -
curl --request POST \
--url 'https://tistos.com/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://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \