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

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-05 14:25:24",
        }
    ],
    "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-05 14:25:24",
    }
}
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}' \