Wasimamizi wa arifa
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}' \
Vigezo | Maelezo | Maelezo |
---|---|---|
page | Hiari Nambari nzima | Nambari ya ukurasa ambayo unataka matokeo kutoka. Inarudiwa kwa 1 . |
results_per_page | Hiari Nambari nzima | Ni matokeo mangapi unayotaka kwa kila ukurasa. Thamani zinazoruhusiwa ni: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Kawaida ni 25 . |
{
"data": [
{
"id": 1,
"type": "email",
"name": "Work email",
"settings": {
"email": "[email protected]"
},
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-07-27 05:35:20"
}
],
"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:35:20"
}
}
POST https://tistos.com/api/notification-handlers
Vigezo | Maelezo | Maelezo |
---|---|---|
name | Inahitajika Neno | - |
type | Inahitajika Neno | Thamani zinazoruhusiwa: email , webhook , slack , discord , telegram , microsoft_teams |
Hiari Neno | Inapatikana wakati: type = email Barua pepe | |
webhook | Hiari Neno | Inapatikana wakati: type = webhook URL ya webhook |
slack | Hiari Neno | Inapatikana wakati: type = slack Slack webhook URL |
discord | Hiari Neno | Inapatikana wakati: type = discord Discord webhook URL |
telegram | Hiari Neno | Inapatikana wakati: type = telegram Token ya API ya Telegram |
telegram_chat_id | Hiari Neno | Inapatikana wakati: type = telegram Kitambulisho cha Gumzo la Telegram |
x_consumer_key | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_consumer_secret | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_access_token | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_access_token_secret | Hiari Neno | Inapatikana wakati: type = x Token ya API ya 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}
Vigezo | Maelezo | Maelezo |
---|---|---|
name | Hiari Neno | - |
type | Hiari Neno | Thamani zinazoruhusiwa: email , webhook , slack , discord , telegram , microsoft_teams |
Hiari Neno | Inapatikana wakati: type = email Barua pepe | |
webhook | Hiari Neno | Inapatikana wakati: type = webhook URL ya webhook |
slack | Hiari Neno | Inapatikana wakati: type = slack Slack webhook URL |
discord | Hiari Neno | Inapatikana wakati: type = discord Discord webhook URL |
telegram | Hiari Neno | Inapatikana wakati: type = telegram Token ya API ya Telegram |
telegram_chat_id | Hiari Neno | Inapatikana wakati: type = telegram Kitambulisho cha Gumzo la Telegram |
x_consumer_key | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_consumer_secret | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_access_token | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
x_access_token_secret | Hiari Neno | Inapatikana wakati: type = x Token ya API ya Telegram |
is_enabled | Hiari 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}' \