Хабарландыру өңдеушілері
GET https://bitpeak.ru/api/notification-handlers/
curl --request GET \
--url 'https://bitpeak.ru/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--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:29:14",
}
],
"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}' \
--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:29:14",
}
}
POST https://bitpeak.ru/api/notification-handlers
| Параметрлер | Толығырақ | Сипаттама |
|---|---|---|
| name | Міндетті Жол | - |
| type | Міндетті Жол | Рұқсат етілген мәндер: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Қосымша Жол | Қолжетімді болған кезде: type = email Электрондық пошта | |
| webhook | Қосымша Жол | Қолжетімді болған кезде: type = webhook Webhook URL |
| slack | Қосымша Жол | Қолжетімді болған кезде: type = slack Slack webhook URL |
| discord | Қосымша Жол | Қолжетімді болған кезде: type = discord Discord webhook URL |
| telegram | Қосымша Жол | Қолжетімді болған кезде: type = telegram Telegram API Токені |
| telegram_chat_id | Қосымша Жол | Қолжетімді болған кезде: type = telegram Telegram Чат ID |
| microsoft_teams | Қосымша Жол | Қолжетімді болған кезде: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Қосымша Жол | Қолжетімді болған кезде: type = google_chat Google чат webhook URL |
| x_consumer_key | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_consumer_secret | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_access_token | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_access_token_secret | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
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' \
--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 |
| Қосымша Жол | Қолжетімді болған кезде: type = email Электрондық пошта | |
| webhook | Қосымша Жол | Қолжетімді болған кезде: type = webhook Webhook URL |
| slack | Қосымша Жол | Қолжетімді болған кезде: type = slack Slack webhook URL |
| discord | Қосымша Жол | Қолжетімді болған кезде: type = discord Discord webhook URL |
| telegram | Қосымша Жол | Қолжетімді болған кезде: type = telegram Telegram API Токені |
| telegram_chat_id | Қосымша Жол | Қолжетімді болған кезде: type = telegram Telegram Чат ID |
| microsoft_teams | Қосымша Жол | Қолжетімді болған кезде: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Қосымша Жол | Қолжетімді болған кезде: type = google_chat Google чат webhook URL |
| x_consumer_key | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_consumer_secret | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_access_token | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| x_access_token_secret | Қосымша Жол | Қолжетімді болған кезде: type = x Telegram API Токені |
| 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' \
--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}' \
--url 'https://bitpeak.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \