දැනුම්දීම් හසුකරුවන්
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:54:32",
}
],
"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:54:32",
}
}
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 ටෙලිග්රෑම් චැට් හැඳුනුම්පත |
| 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 ටෙලිග්රෑම් චැට් හැඳුනුම්පත |
| 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}' \