Notification handlers
GET https://heo.li/api/notification-handlers/
curl --request GET \
--url 'https://heo.li/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parameter | Rincian | Deskripsi |
|---|---|---|
| page | Opsional Integer | Nomor halaman yang Anda inginkan hasilnya. Defaultnya adalah 1. |
| results_per_page | Opsional Integer | Berapa banyak hasil yang Anda inginkan per halaman. Nilai yang diperbolehkan adalah: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaultnya adalah 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-10-30 06:02:37",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://heo.li/api/notification-handlers?page=1",
"last": "https://heo.li/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://heo.li/api/notification-handlers?page=1"
}
}
GET https://heo.li/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://heo.li/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/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-10-30 06:02:37",
}
}
POST https://heo.li/api/notification-handlers
| Parameter | Rincian | Deskripsi |
|---|---|---|
| name | Diperlukan String | - |
| type | Diperlukan String | Nilai yang diperbolehkan: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id |
| Opsional String | Tersedia ketika: type = email Email | |
| webhook | Opsional String | Tersedia ketika: type = webhook URL Webhook |
| slack | Opsional String | Tersedia ketika: type = slack URL webhook Slack |
| discord | Opsional String | Tersedia ketika: type = discord URL webhook Discord |
| telegram | Opsional String | Tersedia ketika: type = telegram Token API Telegram |
| telegram_chat_id | Opsional String | Tersedia ketika: type = telegram ID Obrolan Telegram |
| microsoft_teams | Opsional String | Tersedia ketika: type = microsoft_teams URL webhook Microsoft Teams |
| google_chat | Opsional String | Tersedia ketika: type = google_chat URL webhook Google Chat |
| x_consumer_key | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_consumer_secret | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_access_token | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_access_token_secret | Opsional String | Tersedia ketika: type = x Token API Telegram |
| push_subscriber_id | Opsional String | Tersedia ketika: type = push_subscriber_id Dorong pelanggan |
curl --request POST \
--url 'https://heo.li/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://heo.li/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://heo.li/api/notification-handlers/{notification_handler_id}
| Parameter | Rincian | Deskripsi |
|---|---|---|
| name | Opsional String | - |
| type | Opsional String | Nilai yang diperbolehkan: email , webhook , slack , discord , telegram , microsoft_teams , x , google_chat , internal_notification , push_subscriber_id |
| Opsional String | Tersedia ketika: type = email Email | |
| webhook | Opsional String | Tersedia ketika: type = webhook URL Webhook |
| slack | Opsional String | Tersedia ketika: type = slack URL webhook Slack |
| discord | Opsional String | Tersedia ketika: type = discord URL webhook Discord |
| telegram | Opsional String | Tersedia ketika: type = telegram Token API Telegram |
| telegram_chat_id | Opsional String | Tersedia ketika: type = telegram ID Obrolan Telegram |
| microsoft_teams | Opsional String | Tersedia ketika: type = microsoft_teams URL webhook Microsoft Teams |
| google_chat | Opsional String | Tersedia ketika: type = google_chat URL webhook Google Chat |
| x_consumer_key | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_consumer_secret | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_access_token | Opsional String | Tersedia ketika: type = x Token API Telegram |
| x_access_token_secret | Opsional String | Tersedia ketika: type = x Token API Telegram |
| push_subscriber_id | Opsional String | Tersedia ketika: type = push_subscriber_id Dorong pelanggan |
| is_enabled | Opsional Boolean | - |
curl --request POST \
--url 'https://heo.li/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://heo.li/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://heo.li/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://heo.li/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \