Gestionari de notificări
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}' \
Parametrii | Detalii | Descriere |
---|---|---|
page | Opțional Întreg | Numărul paginii din care doriți rezultate. Implicit este 1 . |
results_per_page | Opțional Întreg | Câte rezultate dorești pe pagină. Valorile permise sunt: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Implicit este 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:20:06", } ], "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 11:20:06", } }
POST https://tistos.com/api/notification-handlers
Parametrii | Detalii | Descriere |
---|---|---|
name | Necesar Șir | - |
type | Necesar Șir | Valori permise: email , webhook , slack , discord , telegram , microsoft_teams |
Opțional Șir | Disponibil când: type = email Email | |
webhook | Opțional Șir | Disponibil când: type = webhook URL webhook |
slack | Opțional Șir | Disponibil când: type = slack URL webhook Slack |
discord | Opțional Șir | Disponibil când: type = discord URL webhook Discord |
telegram | Opțional Șir | Disponibil când: type = telegram Token API Telegram |
telegram_chat_id | Opțional Șir | Disponibil când: type = telegram ID-ul chatului Telegram |
microsoft_teams | Opțional Șir | Disponibil când: 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}
Parametrii | Detalii | Descriere |
---|---|---|
name | Opțional Șir | - |
type | Opțional Șir | Valori permise: email , webhook , slack , discord , telegram , microsoft_teams |
Opțional Șir | Disponibil când: type = email Email | |
webhook | Opțional Șir | Disponibil când: type = webhook URL webhook |
slack | Opțional Șir | Disponibil când: type = slack URL webhook Slack |
discord | Opțional Șir | Disponibil când: type = discord URL webhook Discord |
telegram | Opțional Șir | Disponibil când: type = telegram Token API Telegram |
telegram_chat_id | Opțional Șir | Disponibil când: type = telegram ID-ul chatului Telegram |
microsoft_teams | Opțional Șir | Disponibil când: type = microsoft_teams URL webhook Microsoft Teams |
is_enabled | Opțional 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}' \