Gestori delle notifiche
GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Parametri | Dettagli | Descrizione |
---|---|---|
page | Facoltativo Numero intero | Il numero di pagina da cui desideri i risultati. Predefinito a 1 |
results_per_page | Facoltativo Numero intero | Quanti risultati desideri per pagina. I valori consentiti sono: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predefinito a 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 10:59:03", } ], "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}' \
--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-10-16 10:59:03", } }
POST https://tistos.com/api/notification-handlers
Parametri | Dettagli | Descrizione |
---|---|---|
name | Richiesto Stringa | - |
type | Richiesto Stringa | Valori consentiti: email , webhook , slack , discord , telegram , microsoft_teams |
Facoltativo Stringa | Disponibile quando: type = email Email | |
webhook | Facoltativo Stringa | Disponibile quando: type = webhook URL webhook |
slack | Facoltativo Stringa | Disponibile quando: type = slack URL webhook Slack |
discord | Facoltativo Stringa | Disponibile quando: type = discord URL webhook Discord |
telegram | Facoltativo Stringa | Disponibile quando: type = telegram Token API di Telegram |
telegram_chat_id | Facoltativo Stringa | Disponibile quando: type = telegram ID chat di Telegram |
microsoft_teams | Facoltativo Stringa | Disponibile quando: type = microsoft_teams URL webhook Microsoft Teams |
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]' \
--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}
Parametri | Dettagli | Descrizione |
---|---|---|
name | Facoltativo Stringa | - |
type | Facoltativo Stringa | Valori consentiti: email , webhook , slack , discord , telegram , microsoft_teams |
Facoltativo Stringa | Disponibile quando: type = email Email | |
webhook | Facoltativo Stringa | Disponibile quando: type = webhook URL webhook |
slack | Facoltativo Stringa | Disponibile quando: type = slack URL webhook Slack |
discord | Facoltativo Stringa | Disponibile quando: type = discord URL webhook Discord |
telegram | Facoltativo Stringa | Disponibile quando: type = telegram Token API di Telegram |
telegram_chat_id | Facoltativo Stringa | Disponibile quando: type = telegram ID chat di Telegram |
microsoft_teams | Facoltativo Stringa | Disponibile quando: type = microsoft_teams URL webhook Microsoft Teams |
is_enabled | Facoltativo Boolean | - |
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' \
--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}' \
--url 'https://tistos.com/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \