Ngā kaiwhakahaere pānui

GET https://tistos.com/api/notification-handlers/
curl --request GET \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
Ngā Tūāpapa Taipitopito Whakaahuatanga
page Kōwhiringa Tāuru Ko te tau whārangi e hiahia ana koe i ngā hua mai. Ka tūtohu ki te 1.
results_per_page Kōwhiringa Tāuru E hia ngā hua e hiahia ana koe mō ia whārangi. Ko ngā uara e whakaaetia ana ko: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Ko te paerewa ko 25.
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-07-27 05:55:17" } ], "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:55:17" } }
POST https://tistos.com/api/notification-handlers
Ngā Tūāpapa Taipitopito Whakaahuatanga
name Tonoa Rārangi -
type Tonoa Rārangi Ngā uara e whakaaetia ana: email , webhook , slack , discord , telegram , microsoft_teams
email Kōwhiringa Rārangi Ka wātea ina: type = email Īmēra
webhook Kōwhiringa Rārangi Ka wātea ina: type = webhook URL webhook
slack Kōwhiringa Rārangi Ka wātea ina: type = slack Slack webhook URL
discord Kōwhiringa Rārangi Ka wātea ina: type = discord Discord webhook URL
telegram Kōwhiringa Rārangi Ka wātea ina: type = telegram Tohu API mō Telegram
telegram_chat_id Kōwhiringa Rārangi Ka wātea ina: type = telegram ID Kōrerorero Telegram
x_consumer_key Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_consumer_secret Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_access_token Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_access_token_secret Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō 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}
Ngā Tūāpapa Taipitopito Whakaahuatanga
name Kōwhiringa Rārangi -
type Kōwhiringa Rārangi Ngā uara e whakaaetia ana: email , webhook , slack , discord , telegram , microsoft_teams
email Kōwhiringa Rārangi Ka wātea ina: type = email Īmēra
webhook Kōwhiringa Rārangi Ka wātea ina: type = webhook URL webhook
slack Kōwhiringa Rārangi Ka wātea ina: type = slack Slack webhook URL
discord Kōwhiringa Rārangi Ka wātea ina: type = discord Discord webhook URL
telegram Kōwhiringa Rārangi Ka wātea ina: type = telegram Tohu API mō Telegram
telegram_chat_id Kōwhiringa Rārangi Ka wātea ina: type = telegram ID Kōrerorero Telegram
x_consumer_key Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_consumer_secret Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_access_token Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
x_access_token_secret Kōwhiringa Rārangi Ka wātea ina: type = x Tohu API mō Telegram
is_enabled Kōwhiringa Pūnaha Tūāhua -
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}' \