Bildirishnoma ishlovchilari
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}' \
| Parametrlar | Tafsilotlar | Tavsif |
|---|---|---|
| page | Ixtiyoriy Butun son | Natijalarni olmoqchi bo'lgan sahifa raqami. Sukut bo'yicha 1. |
| results_per_page | Ixtiyoriy Butun son | Har bir sahifada nechta natija kerak. Ruxsat etilgan qiymatlar: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Sukut bo'yicha 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:25:37",
}
],
"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:25:37",
}
}
POST https://bitpeak.ru/api/notification-handlers
| Parametrlar | Tafsilotlar | Tavsif |
|---|---|---|
| name | Majburiy Satr | - |
| type | Majburiy Satr | Ruxsat etilgan qiymatlar: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Ixtiyoriy Satr | Mavjud bo'lganda: type = email Elektron pochta | |
| webhook | Ixtiyoriy Satr | Mavjud bo'lganda: type = webhook Vebgak URL manzili |
| slack | Ixtiyoriy Satr | Mavjud bo'lganda: type = slack Slack vebgak URL manzili |
| discord | Ixtiyoriy Satr | Mavjud bo'lganda: type = discord Discord vebgak URL manzili |
| telegram | Ixtiyoriy Satr | Mavjud bo'lganda: type = telegram Telegram API Token |
| telegram_chat_id | Ixtiyoriy Satr | Mavjud bo'lganda: type = telegram Telegram Chat ID |
| microsoft_teams | Ixtiyoriy Satr | Mavjud bo'lganda: type = microsoft_teams Microsoft Teams vebgak URL manzili |
| google_chat | Ixtiyoriy Satr | Mavjud bo'lganda: type = google_chat Google chat vebgak URL manzili |
| x_consumer_key | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_consumer_secret | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_access_token | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_access_token_secret | Ixtiyoriy Satr | Mavjud bo'lganda: 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}
| Parametrlar | Tafsilotlar | Tavsif |
|---|---|---|
| name | Ixtiyoriy Satr | - |
| type | Ixtiyoriy Satr | Ruxsat etilgan qiymatlar: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification |
| Ixtiyoriy Satr | Mavjud bo'lganda: type = email Elektron pochta | |
| webhook | Ixtiyoriy Satr | Mavjud bo'lganda: type = webhook Vebgak URL manzili |
| slack | Ixtiyoriy Satr | Mavjud bo'lganda: type = slack Slack vebgak URL manzili |
| discord | Ixtiyoriy Satr | Mavjud bo'lganda: type = discord Discord vebgak URL manzili |
| telegram | Ixtiyoriy Satr | Mavjud bo'lganda: type = telegram Telegram API Token |
| telegram_chat_id | Ixtiyoriy Satr | Mavjud bo'lganda: type = telegram Telegram Chat ID |
| microsoft_teams | Ixtiyoriy Satr | Mavjud bo'lganda: type = microsoft_teams Microsoft Teams vebgak URL manzili |
| google_chat | Ixtiyoriy Satr | Mavjud bo'lganda: type = google_chat Google chat vebgak URL manzili |
| x_consumer_key | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_consumer_secret | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_access_token | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| x_access_token_secret | Ixtiyoriy Satr | Mavjud bo'lganda: type = x Telegram API Token |
| is_enabled | Ixtiyoriy Mantiqiy | - |
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}' \