સૂચના હેન્ડલર્સ
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 13:46:06",
}
],
"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 13:46:06",
}
}
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}' \