מטפלי התראות
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-08 13:26:26",
}
],
"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-08 13:26:26",
}
}
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 כתובת URL של Webhook |
| slack | אופציונלי מחרוזת | זמין כאשר: type = slack כתובת URL של Slack webhook |
| discord | אופציונלי מחרוזת | זמין כאשר: type = discord כתובת URL של Discord webhook |
| telegram | אופציונלי מחרוזת | זמין כאשר: type = telegram טוקן API של Telegram |
| telegram_chat_id | אופציונלי מחרוזת | זמין כאשר: type = telegram מזהה צ'אט ב-Telegram |
| microsoft_teams | אופציונלי מחרוזת | זמין כאשר: type = microsoft_teams כתובת URL של Microsoft Teams webhook |
| google_chat | אופציונלי מחרוזת | זמין כאשר: type = google_chat כתובת URL של Google chat webhook |
| x_consumer_key | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_consumer_secret | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_access_token | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_access_token_secret | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
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 כתובת URL של Webhook |
| slack | אופציונלי מחרוזת | זמין כאשר: type = slack כתובת URL של Slack webhook |
| discord | אופציונלי מחרוזת | זמין כאשר: type = discord כתובת URL של Discord webhook |
| telegram | אופציונלי מחרוזת | זמין כאשר: type = telegram טוקן API של Telegram |
| telegram_chat_id | אופציונלי מחרוזת | זמין כאשר: type = telegram מזהה צ'אט ב-Telegram |
| microsoft_teams | אופציונלי מחרוזת | זמין כאשר: type = microsoft_teams כתובת URL של Microsoft Teams webhook |
| google_chat | אופציונלי מחרוזת | זמין כאשר: type = google_chat כתובת URL של Google chat webhook |
| x_consumer_key | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_consumer_secret | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_access_token | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| x_access_token_secret | אופציונלי מחרוזת | זמין כאשר: type = x טוקן API של Telegram |
| 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}' \