Bildiriş idarəediciləri
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}' \
| Parametrlər | Detallar | Təsvir |
|---|---|---|
| page | Istəyə bağlı Tam ədəd | Nəticələri istədiyiniz səhifə nömrəsi. Standart olaraq 1. |
| results_per_page | Istəyə bağlı Tam ədəd | Hər səhifədə neçə nəticə istəyirsiniz. İcazə verilən dəyərlər: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standart olaraq 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
| Parametrlər | Detallar | Təsvir |
|---|---|---|
| name | Tələb olunur Sətir | - |
| type | Tələb olunur Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Istəyə bağlı Sətir | Mövcud olduqda: type = email E-poctu | |
| webhook | Istəyə bağlı Sətir | Mövcud olduqda: type = webhook Webhook URL |
| slack | Istəyə bağlı Sətir | Mövcud olduqda: type = slack Slack webhook URL |
| discord | Istəyə bağlı Sətir | Mövcud olduqda: type = discord Discord webhook URL |
| telegram | Istəyə bağlı Sətir | Mövcud olduqda: type = telegram Telegram API Token |
| telegram_chat_id | Istəyə bağlı Sətir | Mövcud olduqda: type = telegram Telegram Chat ID |
| microsoft_teams | Istəyə bağlı Sətir | Mövcud olduqda: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Istəyə bağlı Sətir | Mövcud olduqda: type = google_chat Google chat webhook URL |
| x_consumer_key | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_consumer_secret | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_access_token | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_access_token_secret | Istəyə bağlı Sətir | Mövcud olduqda: 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' \
--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}
| Parametrlər | Detallar | Təsvir |
|---|---|---|
| name | Istəyə bağlı Sətir | - |
| type | Istəyə bağlı Sətir | İcazə verilən dəyərlər: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Istəyə bağlı Sətir | Mövcud olduqda: type = email E-poctu | |
| webhook | Istəyə bağlı Sətir | Mövcud olduqda: type = webhook Webhook URL |
| slack | Istəyə bağlı Sətir | Mövcud olduqda: type = slack Slack webhook URL |
| discord | Istəyə bağlı Sətir | Mövcud olduqda: type = discord Discord webhook URL |
| telegram | Istəyə bağlı Sətir | Mövcud olduqda: type = telegram Telegram API Token |
| telegram_chat_id | Istəyə bağlı Sətir | Mövcud olduqda: type = telegram Telegram Chat ID |
| microsoft_teams | Istəyə bağlı Sətir | Mövcud olduqda: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Istəyə bağlı Sətir | Mövcud olduqda: type = google_chat Google chat webhook URL |
| x_consumer_key | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_consumer_secret | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_access_token | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| x_access_token_secret | Istəyə bağlı Sətir | Mövcud olduqda: type = x Telegram API Token |
| is_enabled | Istəyə bağlı Məntiqi | - |
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}' \