Triniwyr hysbysiadau
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}' \
Paramedrau | Manylion | Disgrifiad |
---|---|---|
page | Dewisol Cyfanrif | Y rhif tudalen y dymunwch gael canlyniadau ohono. Mae'n dod yn ddiofyn i 1 . |
results_per_page | Dewisol Cyfanrif | Faint o ganlyniadau ydych chi am bob tudalen. Mae'r gwerthoedd a ganiateir yn: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mae'r rhagosodiad yn 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-07-27 05:48:40"
}
],
"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-07-27 05:48:40"
}
}
POST https://tistos.com/api/notification-handlers
Paramedrau | Manylion | Disgrifiad |
---|---|---|
name | Angenrheidiol String | - |
type | Angenrheidiol String | Gwerthoedd a ganiateir: email , webhook , slack , discord , telegram , microsoft_teams |
Dewisol String | Ar gael pan: type = email E-bost | |
webhook | Dewisol String | Ar gael pan: type = webhook URL webhook |
slack | Dewisol String | Ar gael pan: type = slack Slack webhook URL |
discord | Dewisol String | Ar gael pan: type = discord Discord webhook URL |
telegram | Dewisol String | Ar gael pan: type = telegram Tocyn API Telegram |
telegram_chat_id | Dewisol String | Ar gael pan: type = telegram ID Sgwrs Telegram |
x_consumer_key | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_consumer_secret | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_access_token | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_access_token_secret | Dewisol String | Ar gael pan: type = x Tocyn API 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}
Paramedrau | Manylion | Disgrifiad |
---|---|---|
name | Dewisol String | - |
type | Dewisol String | Gwerthoedd a ganiateir: email , webhook , slack , discord , telegram , microsoft_teams |
Dewisol String | Ar gael pan: type = email E-bost | |
webhook | Dewisol String | Ar gael pan: type = webhook URL webhook |
slack | Dewisol String | Ar gael pan: type = slack Slack webhook URL |
discord | Dewisol String | Ar gael pan: type = discord Discord webhook URL |
telegram | Dewisol String | Ar gael pan: type = telegram Tocyn API Telegram |
telegram_chat_id | Dewisol String | Ar gael pan: type = telegram ID Sgwrs Telegram |
x_consumer_key | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_consumer_secret | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_access_token | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
x_access_token_secret | Dewisol String | Ar gael pan: type = x Tocyn API Telegram |
is_enabled | Dewisol Booleaidd | - |
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}' \