Bildirim Kanalları
GET https://linkhane.com/api/notification-handlers/
curl --request GET \
--url 'https://linkhane.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkhane.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| search | İsteğe bağlı Metin | Aranacak metin. |
| search_by | İsteğe bağlı Metin | Arama yapılacak alan. İzin verilen değerler: name. |
| is_enabled | İsteğe bağlı Mantıksal değer | |
| type | İsteğe bağlı Metin | Arama yapılacak alan. İzin verilen değerler: email, webhook, discord, telegram, internal_notification. |
| datetime_field | İsteğe bağlı Metin | İzin verilen değerler: datetime, last_datetime |
| datetime_start | İsteğe bağlı Metin | Bu tarih ve saatten itibaren sonuçları filtreler. Biçim: Y-m-d H:i:s. |
| datetime_end | İsteğe bağlı Metin | Bu tarih ve saate kadar sonuçları filtreler. Biçim: Y-m-d H:i:s. |
| order_by | İsteğe bağlı Metin | Sonuçların sıralanacağı alan. İzin verilen değerler: notification_handler_id, datetime, last_datetime, name. |
| order_type | İsteğe bağlı Metin | Sonuçların sıralama yönü. İzin verilen değerler: artan sıra için ASC, azalan sıra için DESC. |
| search | İsteğe bağlı Metin | Aranacak metin. |
| search_by | İsteğe bağlı Metin | Arama yapılacak alan. İzin verilen değerler: name. |
| is_enabled | İsteğe bağlı Mantıksal değer | |
| type | İsteğe bağlı Metin | Arama yapılacak alan. İzin verilen değerler: email, webhook, discord, telegram, internal_notification. |
| datetime_field | İsteğe bağlı Metin | İzin verilen değerler: datetime, last_datetime |
| datetime_start | İsteğe bağlı Metin | Bu tarih ve saatten itibaren sonuçları filtreler. Biçim: Y-m-d H:i:s. |
| datetime_end | İsteğe bağlı Metin | Bu tarih ve saate kadar sonuçları filtreler. Biçim: Y-m-d H:i:s. |
| order_by | İsteğe bağlı Metin | Sonuçların sıralanacağı alan. İzin verilen değerler: notification_handler_id, datetime, last_datetime, name. |
| order_type | İsteğe bağlı Metin | Sonuçların sıralama yönü. İzin verilen değerler: artan sıra için ASC, azalan sıra için DESC. |
| page | İsteğe bağlı Tam sayı | Sonuçlarını almak istediğiniz sayfanın numarası. Varsayılan: 1. |
| results_per_page | İsteğe bağlı Tam sayı | Sayfa başına istediğiniz sonuç sayısı. İzin verilen değerler: 10, 25, 50, 100, 250, 500, 1000. Varsayılan: 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-12-03 05:10:43"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"first": "https://linkhane.com/api/notification-handlers?page=1",
"last": "https://linkhane.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://linkhane.com/api/notification-handlers?page=1"
}
}
GET https://linkhane.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://linkhane.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkhane.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-12-03 05:10:43"
}
}
POST https://linkhane.com/api/notification-handlers
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| name | Zorunlu Metin | - |
| type | Zorunlu Metin | İzin verilen değerler: email, webhook, discord, telegram, internal_notification |
| İsteğe bağlı Metin | Şu durumda kullanılabilir: type = email E-posta | |
| webhook | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = webhook Webhook URL adresi |
| discord | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = discord Discord webhook URL adresi |
| telegram | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram API Erişim Anahtarı |
| telegram_chat_id | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram Sohbet ID |
curl --request POST \
--url 'https://linkhane.com/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://linkhane.com/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,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hello@example.com"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-12-03 05:10:43"
}
}
POST https://linkhane.com/api/notification-handlers/{notification_handler_id}
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| name | İsteğe bağlı Metin | - |
| type | İsteğe bağlı Metin | İzin verilen değerler: email, webhook, discord, telegram, internal_notification |
| İsteğe bağlı Metin | Şu durumda kullanılabilir: type = email E-posta | |
| webhook | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = webhook Webhook URL adresi |
| discord | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = discord Discord webhook URL adresi |
| telegram | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram API Erişim Anahtarı |
| telegram_chat_id | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram Sohbet ID |
| is_enabled | İsteğe bağlı Mantıksal değer | - |
curl --request POST \
--url 'https://linkhane.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://linkhane.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,
"user_id": 1,
"type": "email",
"name": "Example new name",
"settings": {
"email": "hello@example.com"
},
"is_enabled": 1,
"last_datetime": "2026-12-03 05:10:43",
"datetime": "2026-12-03 05:10:43"
}
}
DELETE https://linkhane.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://linkhane.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkhane.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \