Rukovatelji notifikacija
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}' \
| Parametri | Detalji | Opis |
|---|---|---|
| page | Opcionalno Cijeli broj | Broj stranice sa koje želite rezultate. Podrazumijevano je 1. |
| results_per_page | Opcionalno Cijeli broj | Koliko rezultata želite po stranici. Dozvoljene vrijednosti su: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Podrazumijevano je 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-12-06 16:01:04",
}
],
"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-06 16:01:04",
}
}
POST https://bitpeak.ru/api/notification-handlers
| Parametri | Detalji | Opis |
|---|---|---|
| name | Obavezno String | - |
| type | Obavezno String | Dozvoljene vrijednosti: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Opcionalno String | Dostupno kada: type = email E-pošta | |
| webhook | Opcionalno String | Dostupno kada: type = webhook Webhook URL |
| slack | Opcionalno String | Dostupno kada: type = slack Slack webhook URL |
| discord | Opcionalno String | Dostupno kada: type = discord Discord webhook URL |
| telegram | Opcionalno String | Dostupno kada: type = telegram Telegram API Token |
| telegram_chat_id | Opcionalno String | Dostupno kada: type = telegram Telegram Chat ID |
| microsoft_teams | Opcionalno String | Dostupno kada: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Opcionalno String | Dostupno kada: type = google_chat Google chat webhook URL |
| x_consumer_key | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_consumer_secret | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_access_token | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_access_token_secret | Opcionalno String | Dostupno kada: 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}
| Parametri | Detalji | Opis |
|---|---|---|
| name | Opcionalno String | - |
| type | Opcionalno String | Dozvoljene vrijednosti: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Opcionalno String | Dostupno kada: type = email E-pošta | |
| webhook | Opcionalno String | Dostupno kada: type = webhook Webhook URL |
| slack | Opcionalno String | Dostupno kada: type = slack Slack webhook URL |
| discord | Opcionalno String | Dostupno kada: type = discord Discord webhook URL |
| telegram | Opcionalno String | Dostupno kada: type = telegram Telegram API Token |
| telegram_chat_id | Opcionalno String | Dostupno kada: type = telegram Telegram Chat ID |
| microsoft_teams | Opcionalno String | Dostupno kada: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Opcionalno String | Dostupno kada: type = google_chat Google chat webhook URL |
| x_consumer_key | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_consumer_secret | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_access_token | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| x_access_token_secret | Opcionalno String | Dostupno kada: type = x Telegram API Token |
| is_enabled | Opcionalno Logička vrijednost | - |
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}' \