מטפלי התראות
GET https://pushconsole.com/api/notification-handlers/
curl --request GET \
--url 'https://pushconsole.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushconsole.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| פרמטרים | פרטים | תיאור |
|---|---|---|
| page | אופציונלי מספר שלם | מספר העמוד שבו אתה מעוניין לקבל תוצאות. ברירת המחדל היא 1. |
| results_per_page | אופציונלי מספר שלם | כמה תוצאות אתה רוצה בכל עמוד. הערכים המותרים הם: 10 , 25 , 50 , 100 , 250 , 500 , 1000. ברירת המחדל היא 25. |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "hey@example.com"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2026-01-09 19:07:02",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pushconsole.com/api/notification-handlers?page=1",
"last": "https://pushconsole.com/api/notification-handlers?page=1",
"next": null,
"prev": null,
"self": "https://pushconsole.com/api/notification-handlers?page=1"
}
}
GET https://pushconsole.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://pushconsole.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushconsole.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": "2026-01-09 19:07:02",
}
}
POST https://pushconsole.com/api/notification-handlers
| פרמטרים | פרטים | תיאור |
|---|---|---|
| name | נדרש מחרוזת | - |
| type | נדרש מחרוזת | ערכים מותרים: email , webhook , slack , discord , telegram , microsoft_teams |
| אופציונלי מחרוזת | זמין כאשר: type = email אימייל | |
| webhook | אופציונלי מחרוזת | זמין כאשר: type = webhook כתובת URL של Webhook |
| slack | אופציונלי מחרוזת | זמין כאשר: type = slack כתובת URL של נקודת קצה ל-Slack |
| discord | אופציונלי מחרוזת | זמין כאשר: type = discord כתובת URL של webhook ב-Discord |
| telegram | אופציונלי מחרוזת | זמין כאשר: type = telegram אסימון API של טלגרם |
| telegram_chat_id | אופציונלי מחרוזת | זמין כאשר: type = telegram מזהה צ'אט בטלגרם |
| microsoft_teams | אופציונלי מחרוזת | זמין כאשר: type = microsoft_teams כתובת URL של ווובהוק של Microsoft Teams |
curl --request POST \
--url 'https://pushconsole.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://pushconsole.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://pushconsole.com/api/notification-handlers/{notification_handler_id}
| פרמטרים | פרטים | תיאור |
|---|---|---|
| name | אופציונלי מחרוזת | - |
| type | אופציונלי מחרוזת | ערכים מותרים: email , webhook , slack , discord , telegram , microsoft_teams |
| אופציונלי מחרוזת | זמין כאשר: type = email אימייל | |
| webhook | אופציונלי מחרוזת | זמין כאשר: type = webhook כתובת URL של Webhook |
| slack | אופציונלי מחרוזת | זמין כאשר: type = slack כתובת URL של נקודת קצה ל-Slack |
| discord | אופציונלי מחרוזת | זמין כאשר: type = discord כתובת URL של webhook ב-Discord |
| telegram | אופציונלי מחרוזת | זמין כאשר: type = telegram אסימון API של טלגרם |
| telegram_chat_id | אופציונלי מחרוזת | זמין כאשר: type = telegram מזהה צ'אט בטלגרם |
| microsoft_teams | אופציונלי מחרוזת | זמין כאשר: type = microsoft_teams כתובת URL של ווובהוק של Microsoft Teams |
| is_enabled | אופציונלי בוליאני | - |
curl --request POST \
--url 'https://pushconsole.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://pushconsole.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://pushconsole.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://pushconsole.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushconsole.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \