Trajtuesit e njoftimeve
GET https://forsere.com/api/notification-handlers/
curl --request GET \
--url 'https://forsere.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://forsere.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametrat | Detajet | Përshkrim |
---|---|---|
page | Opsionale Integer | Numri i faqes nga e cila dëshironi rezultatet. Parazgjedhja është 1 . |
results_per_page | Opsionale Integer | Sa rezultate dëshironi për faqe. Vlerat e lejuara janë: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Vlera e paracaktuar është 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-08-04 19:01:18"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://forsere.com/api/notification-handlers?&page=1",
"last": "https://forsere.com/api/notification-handlers?&page=1",
"next": null,
"prev": null,
"self": "https://forsere.com/api/notification-handlers?&page=1"
}
}
GET https://forsere.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://forsere.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://forsere.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-08-04 19:01:18"
}
}
POST https://forsere.com/api/notification-handlers
Parametrat | Detajet | Përshkrim |
---|---|---|
name | E nevojshme Varësi | - |
type | E nevojshme Varësi | Vlerat e lejuara: email , webhook , slack , discord , telegram , microsoft_teams |
Opsionale Varësi | E disponueshme kur: type = email Email | |
webhook | Opsionale Varësi | E disponueshme kur: type = webhook URL-ja e Webhook |
slack | Opsionale Varësi | E disponueshme kur: type = slack URL-ja e webhook-ut të Slack |
discord | Opsionale Varësi | E disponueshme kur: type = discord URL e webhook-ut të Discord |
telegram | Opsionale Varësi | E disponueshme kur: type = telegram Telegram API Token |
telegram_chat_id | Opsionale Varësi | E disponueshme kur: type = telegram ID i Bisedës në Telegram |
x_consumer_key | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_consumer_secret | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_access_token | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_access_token_secret | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
curl --request POST \
--url 'https://forsere.com/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
--url 'https://forsere.com/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=[email protected]' \
{
"data": {
"id": 1
}
}
POST https://forsere.com/api/notification-handlers/{notification_handler_id}
Parametrat | Detajet | Përshkrim |
---|---|---|
name | Opsionale Varësi | - |
type | Opsionale Varësi | Vlerat e lejuara: email , webhook , slack , discord , telegram , microsoft_teams |
Opsionale Varësi | E disponueshme kur: type = email Email | |
webhook | Opsionale Varësi | E disponueshme kur: type = webhook URL-ja e Webhook |
slack | Opsionale Varësi | E disponueshme kur: type = slack URL-ja e webhook-ut të Slack |
discord | Opsionale Varësi | E disponueshme kur: type = discord URL e webhook-ut të Discord |
telegram | Opsionale Varësi | E disponueshme kur: type = telegram Telegram API Token |
telegram_chat_id | Opsionale Varësi | E disponueshme kur: type = telegram ID i Bisedës në Telegram |
x_consumer_key | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_consumer_secret | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_access_token | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
x_access_token_secret | Opsionale Varësi | E disponueshme kur: type = x Telegram API Token |
is_enabled | Opsionale Boolean | - |
curl --request POST \
--url 'https://forsere.com/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://forsere.com/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://forsere.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://forsere.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://forsere.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \