Benachrichtigungshandler
GET https://popupke.com/api/notification-handlers/
curl --request GET \
--url 'https://popupke.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| page | Optional Ganze Zahl | Die Seitenzahl, aus der Sie Ergebnisse erhalten möchten. Der Standardwert ist 1. |
| results_per_page | Optional Ganze Zahl | Wie viele Ergebnisse Sie pro Seite wünschen. Zulässige Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Standardmäßig ist 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-11-21 21:42:24",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://popupke.com/api/notification-handlers?page=1",
"last": "https://popupke.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://popupke.com/api/notification-handlers?page=1"
}
}
GET https://popupke.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.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-21 21:42:24",
}
}
POST https://popupke.com/api/notification-handlers
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Erforderlich Zeichenfolge | - |
| type | Erforderlich Zeichenfolge | Allowed values: email , telegram , push_subscriber_id |
| Optional Zeichenfolge | Verfügbar, wenn: type = email Email | |
| telegram | Optional Zeichenfolge | Verfügbar, wenn: type = telegram Telegram API Token |
| telegram_chat_id | Optional Zeichenfolge | Verfügbar, wenn: type = telegram Telegram Chat ID |
| push_subscriber_id | Optional Zeichenfolge | Verfügbar, wenn: type = push_subscriber_id Push subscriber |
curl --request POST \
--url 'https://popupke.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://popupke.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://popupke.com/api/notification-handlers/{notification_handler_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Optional Zeichenfolge | - |
| type | Optional Zeichenfolge | Allowed values: email , telegram , push_subscriber_id |
| Optional Zeichenfolge | Verfügbar, wenn: type = email Email | |
| telegram | Optional Zeichenfolge | Verfügbar, wenn: type = telegram Telegram API Token |
| telegram_chat_id | Optional Zeichenfolge | Verfügbar, wenn: type = telegram Telegram Chat ID |
| push_subscriber_id | Optional Zeichenfolge | Verfügbar, wenn: type = push_subscriber_id Push subscriber |
| is_enabled | Optional Boolescher Wert | - |
curl --request POST \
--url 'https://popupke.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://popupke.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://popupke.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://popupke.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \