Tilkynningahandlarar
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}' \
Parametrar | Aðgerðir | Lýsing |
---|---|---|
page | Valfrjálst Heildartala | Síðutalan sem þú vilt fá niðurstöður frá. Sjálfgefið er 1 . |
results_per_page | Valfrjálst Heildartala | Hversu marga niðurstöður viltu á hverja síðu. Leyfð gildi eru: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Sjálfgefið er 25 . |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:09:55", } ], "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:09:55", } }
POST https://tistos.com/api/notification-handlers
Parametrar | Aðgerðir | Lýsing |
---|---|---|
name | Skyldugur Strengur | - |
type | Skyldugur Strengur | Leyfðar gildi: email , webhook , slack , discord , telegram , microsoft_teams |
Valfrjálst Strengur | Fyrir hendi þegar: type = email Tölvupóstur | |
webhook | Valfrjálst Strengur | Fyrir hendi þegar: type = webhook Webhook slóð |
slack | Valfrjálst Strengur | Fyrir hendi þegar: type = slack Slack webhook slóð |
discord | Valfrjálst Strengur | Fyrir hendi þegar: type = discord Discord webhook slóð |
telegram | Valfrjálst Strengur | Fyrir hendi þegar: type = telegram Telegram API tákn |
telegram_chat_id | Valfrjálst Strengur | Fyrir hendi þegar: type = telegram Telegram spjallkenni |
microsoft_teams | Valfrjálst Strengur | Fyrir hendi þegar: type = microsoft_teams Microsoft Teams webhook slóð |
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}
Parametrar | Aðgerðir | Lýsing |
---|---|---|
name | Valfrjálst Strengur | - |
type | Valfrjálst Strengur | Leyfðar gildi: email , webhook , slack , discord , telegram , microsoft_teams |
Valfrjálst Strengur | Fyrir hendi þegar: type = email Tölvupóstur | |
webhook | Valfrjálst Strengur | Fyrir hendi þegar: type = webhook Webhook slóð |
slack | Valfrjálst Strengur | Fyrir hendi þegar: type = slack Slack webhook slóð |
discord | Valfrjálst Strengur | Fyrir hendi þegar: type = discord Discord webhook slóð |
telegram | Valfrjálst Strengur | Fyrir hendi þegar: type = telegram Telegram API tákn |
telegram_chat_id | Valfrjálst Strengur | Fyrir hendi þegar: type = telegram Telegram spjallkenni |
microsoft_teams | Valfrjálst Strengur | Fyrir hendi þegar: type = microsoft_teams Microsoft Teams webhook slóð |
is_enabled | Valfrjálst 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}' \