सूचना ह्यान्डलरहरू
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 14:35:22",
}
],
"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 14:35:22",
}
}
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 |
| slack | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = slack स्ल्याक वेबहुक URL |
| discord | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = discord डिस्कर्ड वेबहुक URL |
| telegram | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = telegram टेलिग्राम API टोकन |
| telegram_chat_id | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = telegram टेलिग्राम च्याट ID |
| microsoft_teams | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = microsoft_teams माइक्रोसफ्ट टिम्स वेबहुक URL |
| google_chat | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = google_chat गुगल च्याट वेबहुक URL |
| x_consumer_key | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_consumer_secret | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_access_token | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_access_token_secret | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
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 |
| slack | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = slack स्ल्याक वेबहुक URL |
| discord | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = discord डिस्कर्ड वेबहुक URL |
| telegram | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = telegram टेलिग्राम API टोकन |
| telegram_chat_id | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = telegram टेलिग्राम च्याट ID |
| microsoft_teams | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = microsoft_teams माइक्रोसफ्ट टिम्स वेबहुक URL |
| google_chat | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = google_chat गुगल च्याट वेबहुक URL |
| x_consumer_key | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_consumer_secret | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_access_token | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| x_access_token_secret | वैकल्पिक स्ट्रिङ | उपलब्ध जब: type = x टेलिग्राम API टोकन |
| 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}' \