Bildirimler
GET https://u.page/api/notification-handlers/
curl --request GET \
--url 'https://u.page/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| search | İsteğe bağlı Dize | Arama dizesi. |
| search_by | İsteğe bağlı Dize | Hangi alanda arama yapıyorsunuz. İzin verilen değerler: name. |
| is_enabled | İsteğe bağlı Boolean | |
| type | İsteğe bağlı Dize | Hangi alanda arama yapıyorsunuz. İzin verilen değerler: email, webhook, slack, discord, telegram, microsoft_teams. |
| datetime_field | İsteğe bağlı Dize | İzin verilen değerler: datetime, last_datetime |
| datetime_start | İsteğe bağlı Dize | Bu tarih saatinden itibaren sonuçları filtrele. Y-m-d H:i:s biçimi. |
| datetime_end | İsteğe bağlı Dize | Sonuçları bu tarihe kadar filtrele. Y-m-d H:i:s biçimi. |
| order_by | İsteğe bağlı Dize | Sonuçların hangi alana göre sipariş edileceği. İzin verilen değerler: notification_handler_id, datetime, last_datetime, name. |
| order_type | İsteğe bağlı Dize | Sonuçların sıralanması. İzin verilen değerler şunlardır: ASC artan sipariş için, DESC azalan sipariş için. |
| search | İsteğe bağlı Dize | Arama dizesi. |
| search_by | İsteğe bağlı Dize | Hangi alanda arama yapıyorsunuz. İzin verilen değerler: name. |
| is_enabled | İsteğe bağlı Boolean | |
| type | İsteğe bağlı Dize | Hangi alanda arama yapıyorsunuz. İzin verilen değerler: email, webhook, slack, discord, telegram, microsoft_teams. |
| datetime_field | İsteğe bağlı Dize | İzin verilen değerler: datetime, last_datetime |
| datetime_start | İsteğe bağlı Dize | Bu tarih saatinden itibaren sonuçları filtrele. Y-m-d H:i:s biçimi. |
| datetime_end | İsteğe bağlı Dize | Sonuçları bu tarihe kadar filtrele. Y-m-d H:i:s biçimi. |
| order_by | İsteğe bağlı Dize | Sonuçların hangi alana göre sipariş edileceği. İzin verilen değerler: notification_handler_id, datetime, last_datetime, name. |
| order_type | İsteğe bağlı Dize | Sonuçların sıralanması. İzin verilen değerler şunlardır: ASC artan sipariş için, DESC azalan sipariş için. |
| page | İsteğe bağlı Integer | Sonuçları istediğiniz sayfa numarası. Varsayılanlar için 1. |
| results_per_page | İsteğe bağlı Integer | Sayfa başına kaç sonuç istiyorsunuz. İzin verilen değerler: 10, 25, 50, 100, 250, 500, 1000. Varsayılanlar için 25. |
{
"data": [
{
"id": 1,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-26 16:11:42"
}
],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"first": "https://u.page/api/notification-handlers?page=1",
"last": "https://u.page/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://u.page/api/notification-handlers?page=1"
}
}
GET https://u.page/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://u.page/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-26 16:11:42"
}
}
POST https://u.page/api/notification-handlers
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| name | Gerekli Dize | - |
| type | Gerekli Dize | İzin verilen değerler: email, webhook, slack, discord, telegram, microsoft_teams |
| İsteğe bağlı Dize | Ne zaman kullanılabilir: type = email E-posta | |
| webhook | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = webhook Webhook URL'si |
| slack | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = slack Slack webhook URL'si |
| discord | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = discord Discord webhook URL'si |
| telegram | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = telegram Telegram API Token |
| telegram_chat_id | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = telegram Telgraf Sohbet Kimliği |
| microsoft_teams | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL'si |
curl --request POST \
--url 'https://u.page/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://u.page/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,
"user_id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": 1,
"last_datetime": null,
"datetime": "2026-11-26 16:11:42"
}
}
POST https://u.page/api/notification-handlers/{notification_handler_id}
| Parametreler | Ayrıntılar | Açıklama |
|---|---|---|
| name | İsteğe bağlı Dize | - |
| type | İsteğe bağlı Dize | İzin verilen değerler: email, webhook, slack, discord, telegram, microsoft_teams |
| İsteğe bağlı Dize | Ne zaman kullanılabilir: type = email E-posta | |
| webhook | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = webhook Webhook URL'si |
| slack | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = slack Slack webhook URL'si |
| discord | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = discord Discord webhook URL'si |
| telegram | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = telegram Telegram API Token |
| telegram_chat_id | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = telegram Telgraf Sohbet Kimliği |
| microsoft_teams | İsteğe bağlı Dize | Ne zaman kullanılabilir: type = microsoft_teams Microsoft Teams webhook URL'si |
| is_enabled | İsteğe bağlı Boolean | - |
curl --request POST \
--url 'https://u.page/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://u.page/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": "[email protected]"
},
"is_enabled": 1,
"last_datetime": "2026-11-26 16:11:42",
"datetime": "2026-11-26 16:11:42"
}
}
DELETE https://u.page/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://u.page/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://u.page/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \