ਨੋਟੀਫਿਕੇਸ਼ਨ ਹੈਂਡਲਰ
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:31:15",
}
],
"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:31:15",
}
}
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}' \