შეტყობინებების დამმუშავებლები
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-05 14:24:41",
}
],
"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:24:41",
}
}
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 Slack ვებჰუკის URL |
| discord | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = discord Discord ვებჰუკის URL |
| telegram | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = telegram Telegram API ტოკენი |
| telegram_chat_id | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = telegram Telegram ჩატის ID |
| microsoft_teams | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = microsoft_teams Microsoft Teams ვებჰუკის URL |
| google_chat | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = google_chat Google chat ვებჰუკის URL |
| x_consumer_key | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_consumer_secret | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_access_token | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_access_token_secret | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram 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 Slack ვებჰუკის URL |
| discord | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = discord Discord ვებჰუკის URL |
| telegram | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = telegram Telegram API ტოკენი |
| telegram_chat_id | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = telegram Telegram ჩატის ID |
| microsoft_teams | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = microsoft_teams Microsoft Teams ვებჰუკის URL |
| google_chat | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = google_chat Google chat ვებჰუკის URL |
| x_consumer_key | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_consumer_secret | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_access_token | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram API ტოკენი |
| x_access_token_secret | არასავალდებულო სტრიქონი | ხელმისაწვდომია როცა: type = x Telegram 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}' \