מטפלי התראות

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.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": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-07-27 05:51:14" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://tistos.com/api/notification-handlers?&page=1", "last": "https://tistos.com/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://tistos.com/api/notification-handlers?&page=1" } }
GET https://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-07-27 05:51:14" } }
POST https://tistos.com/api/notification-handlers
פרמטרים פרטים תיאור
name נדרש מיתר -
type נדרש מיתר ערכים מותרים: email , webhook , slack , discord , telegram , microsoft_teams
email אופציונלי מיתר זמין כאשר: type = email אימייל
webhook אופציונלי מיתר זמין כאשר: type = webhook כתובת URL של webhook
slack אופציונלי מיתר זמין כאשר: type = slack כתובת URL של Slack webhook
discord אופציונלי מיתר זמין כאשר: type = discord כתובת URL של Discord webhook
telegram אופציונלי מיתר זמין כאשר: type = telegram אסימון API של Telegram
telegram_chat_id אופציונלי מיתר זמין כאשר: type = telegram מזהה צ'אט של Telegram
x_consumer_key אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_consumer_secret אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_access_token אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_access_token_secret אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
curl --request POST \
--url 'https://tistos.com/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 } }
POST https://tistos.com/api/notification-handlers/{notification_handler_id}
פרמטרים פרטים תיאור
name אופציונלי מיתר -
type אופציונלי מיתר ערכים מותרים: email , webhook , slack , discord , telegram , microsoft_teams
email אופציונלי מיתר זמין כאשר: type = email אימייל
webhook אופציונלי מיתר זמין כאשר: type = webhook כתובת URL של webhook
slack אופציונלי מיתר זמין כאשר: type = slack כתובת URL של Slack webhook
discord אופציונלי מיתר זמין כאשר: type = discord כתובת URL של Discord webhook
telegram אופציונלי מיתר זמין כאשר: type = telegram אסימון API של Telegram
telegram_chat_id אופציונלי מיתר זמין כאשר: type = telegram מזהה צ'אט של Telegram
x_consumer_key אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_consumer_secret אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_access_token אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
x_access_token_secret אופציונלי מיתר זמין כאשר: type = x אסימון API של Telegram
is_enabled אופציונלי בוליאני -
curl --request POST \
--url 'https://tistos.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://tistos.com/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \