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}' \
--url 'https://tistos.com/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
| Ngā Tūāpapa | Taipitopito | Whakaahuatanga |
|---|---|---|
| search | Kōwhiringa Rārangi | Te rārangi rapu. |
| search_by | Kōwhiringa Rārangi | He aha te mara e rapu ana koe? Ko ngā uara e whakaaetia ana ko: name. |
| is_enabled | Kōwhiringa Pūnaha Tūāhua | |
| type | Kōwhiringa Rārangi | He aha te mara e rapu ana koe? Ko ngā uara e whakaaetia ana ko: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | Kōwhiringa Rārangi | Ngā uara e whakaaetia ana: datetime, last_datetime |
| datetime_start | Kōwhiringa Rārangi | Tātarihia ngā hua mai i tēnei rā me te wā. Hōputu Y-m-d H:i:s. |
| datetime_end | Kōwhiringa Rārangi | Tātarihia ngā hua tae noa ki tēnei rā me te wā. Hōputu Y-m-d H:i:s. |
| order_by | Kōwhiringa Rārangi | He aha te mara hei whakarite i ngā hua. Ko ngā uara e whakaaetia ana ko: notification_handler_id, datetime, last_datetime, name. |
| order_type | Kōwhiringa Rārangi | Ko te whakaritenga o ngā hua. Ko ngā uara e whakaaetia ana: ASC mō te whakaritenga piki, me DESC mō te whakaritenga heke. |
| search | Kōwhiringa Rārangi | Te rārangi rapu. |
| search_by | Kōwhiringa Rārangi | He aha te mara e rapu ana koe? Ko ngā uara e whakaaetia ana ko: name. |
| is_enabled | Kōwhiringa Pūnaha Tūāhua | |
| type | Kōwhiringa Rārangi | He aha te mara e rapu ana koe? Ko ngā uara e whakaaetia ana ko: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | Kōwhiringa Rārangi | Ngā uara e whakaaetia ana: datetime, last_datetime |
| datetime_start | Kōwhiringa Rārangi | Tātarihia ngā hua mai i tēnei rā me te wā. Hōputu Y-m-d H:i:s. |
| datetime_end | Kōwhiringa Rārangi | Tātarihia ngā hua tae noa ki tēnei rā me te wā. Hōputu Y-m-d H:i:s. |
| order_by | Kōwhiringa Rārangi | He aha te mara hei whakarite i ngā hua. Ko ngā uara e whakaaetia ana ko: notification_handler_id, datetime, last_datetime, name. |
| order_type | Kōwhiringa Rārangi | Ko te whakaritenga o ngā hua. Ko ngā uara e whakaaetia ana: ASC mō te whakaritenga piki, me DESC mō te whakaritenga heke. |
| 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": "2026-07-18 15:26:22",
}
],
"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": "2026-07-18 15:26:22",
}
}
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, x, google_chat |
| 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 |
| microsoft_teams | Kōwhiringa Rārangi | Ka wātea ina: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Kōwhiringa Rārangi | Ka wātea ina: type = google_chat URL webhook Google Chat |
| 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]' \
--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, x, google_chat |
| 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 |
| microsoft_teams | Kōwhiringa Rārangi | Ka wātea ina: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | Kōwhiringa Rārangi | Ka wātea ina: type = google_chat URL webhook Google Chat |
| 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' \
--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}' \