بەڕێوەبەرەکانی ئاگانامە
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:49:09",
}
],
"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:49:09",
}
}
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 |
| slack | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = slack بەستەری Slack webhook |
| discord | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = discord بەستەری Discord webhook |
| telegram | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = telegram نیشانەی APIی Telegram |
| telegram_chat_id | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = telegram ناسنامەی گفتوگۆی Telegram |
| microsoft_teams | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = microsoft_teams بەستەری Microsoft Teams webhook |
| google_chat | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = google_chat بەستەری 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 بەستەری Webhook |
| slack | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = slack بەستەری Slack webhook |
| discord | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = discord بەستەری Discord webhook |
| telegram | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = telegram نیشانەی APIی Telegram |
| telegram_chat_id | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = telegram ناسنامەی گفتوگۆی Telegram |
| microsoft_teams | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = microsoft_teams بەستەری Microsoft Teams webhook |
| google_chat | ئارەزوویی زنجیرە | بەردەستە کاتێک: type = google_chat بەستەری 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}' \