Bildirim işleyicileri
GET https://enkapush.com/api/notification-handlers/
curl --request GET \
--url 'https://enkapush.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://enkapush.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parametreler | Detaylar | Açıklama |
|---|---|---|
| page | İsteğe bağlı Tamsayı | Sonuçları almak istediğiniz sayfa numarası. Varsayılan: 1. |
| results_per_page | İsteğe bağlı Tamsayı | Sayfa başına kaç sonuç istediğiniz. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Varsayılan: 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-11-02 11:04:49",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://enkapush.com/api/notification-handlers?page=1",
"last": "https://enkapush.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://enkapush.com/api/notification-handlers?page=1"
}
}
GET https://enkapush.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://enkapush.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://enkapush.com/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-11-02 11:04:49",
}
}
POST https://enkapush.com/api/notification-handlers
| Parametreler | Detaylar | Açıklama |
|---|---|---|
| name | Gerekli Metin | - |
| type | Gerekli Metin | İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams |
| İ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 |
| slack | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = slack Slack webhook URL |
| discord | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = discord Discord webhook URL |
| telegram | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram API Token |
| telegram_chat_id | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram Chat ID |
| microsoft_teams | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL |
curl --request POST \
--url 'https://enkapush.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://enkapush.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
}
}
POST https://enkapush.com/api/notification-handlers/{notification_handler_id}
| Parametreler | Detaylar | Açıklama |
|---|---|---|
| name | İsteğe bağlı Metin | - |
| type | İsteğe bağlı Metin | İzin verilen değerler: email , webhook , slack , discord , telegram , microsoft_teams |
| İ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 |
| slack | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = slack Slack webhook URL |
| discord | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = discord Discord webhook URL |
| telegram | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram API Token |
| telegram_chat_id | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = telegram Telegram Chat ID |
| microsoft_teams | İsteğe bağlı Metin | Şu durumda kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL |
| is_enabled | İsteğe bağlı Mantıksal | - |
curl --request POST \
--url 'https://enkapush.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://enkapush.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://enkapush.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://enkapush.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://enkapush.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \