ಅಧಿಸೂಚನೆ ಹ್ಯಾಂಡ್ಲರ್ಗಳು
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}' \
ಪ್ಯಾರಾಮೀಟರ್ಗಳು | ವಿವರಗಳು | ವಿವರಣೆ |
---|---|---|
page | ಆಯ್ಕೆಯಾದ ಪೂರ್ಣಾಂಕ | ನೀವು ಫಲಿತಾಂಶಗಳನ್ನು ಬಯಸುವ ಪುಟದ ಸಂಖ್ಯೆ. ಡೀಫಾಲ್ಟ್ 1 ಗೆ. |
results_per_page | ಆಯ್ಕೆಯಾದ ಪೂರ್ಣಾಂಕ | ನೀವು ಪ್ರತಿ ಪುಟಕ್ಕೆ ಎಷ್ಟು ಫಲಿತಾಂಶಗಳನ್ನು ಬಯಸುತ್ತೀರಿ. ಅನುಮತಿತ ಮೌಲ್ಯಗಳು: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . ಡೀಫಾಲ್ಟ್ 25 ಗೆ. |
{ "data": [ { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "[email protected]" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-10-16 11:11: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": "2025-10-16 11:11:22", } }
POST https://tistos.com/api/notification-handlers
ಪ್ಯಾರಾಮೀಟರ್ಗಳು | ವಿವರಗಳು | ವಿವರಣೆ |
---|---|---|
name | ಅವಶ್ಯಕ ಸ್ಟ್ರಿಂಗ್ | - |
type | ಅವಶ್ಯಕ ಸ್ಟ್ರಿಂಗ್ | ಅನುಮತಿತ ಮೌಲ್ಯಗಳು: email , webhook , slack , discord , telegram , microsoft_teams |
ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = email ಇಮೇಲ್ | |
webhook | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = webhook Webhook URL |
slack | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = slack Slack webhook URL |
discord | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = discord Discord webhook URL |
telegram | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = telegram Telegram API ಟೋಕನ್ |
telegram_chat_id | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = telegram Telegram ಚಾಟ್ ಐಡಿ |
microsoft_teams | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = microsoft_teams Microsoft Teams webhook URL |
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}
ಪ್ಯಾರಾಮೀಟರ್ಗಳು | ವಿವರಗಳು | ವಿವರಣೆ |
---|---|---|
name | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | - |
type | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಅನುಮತಿತ ಮೌಲ್ಯಗಳು: email , webhook , slack , discord , telegram , microsoft_teams |
ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = email ಇಮೇಲ್ | |
webhook | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = webhook Webhook URL |
slack | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = slack Slack webhook URL |
discord | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = discord Discord webhook URL |
telegram | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = telegram Telegram API ಟೋಕನ್ |
telegram_chat_id | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = telegram Telegram ಚಾಟ್ ಐಡಿ |
microsoft_teams | ಆಯ್ಕೆಯಾದ ಸ್ಟ್ರಿಂಗ್ | ಲಭ್ಯವಿರುವಾಗ: type = microsoft_teams Microsoft Teams webhook URL |
is_enabled | ಆಯ್ಕೆಯಾದ ಬೂಲಿಯನ್ | - |
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}' \