اطلاعات کے ہینڈلرز
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-07-27 05:53:19"
}
],
"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:53:19"
}
}
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 ٹیلیگرام API ٹوکن |
telegram_chat_id | اختیاری سٹرنگ | دستیاب جب: type = telegram ٹیلیگرام چیٹ ID |
x_consumer_key | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_consumer_secret | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_access_token | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_access_token_secret | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
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 ٹیلیگرام API ٹوکن |
telegram_chat_id | اختیاری سٹرنگ | دستیاب جب: type = telegram ٹیلیگرام چیٹ ID |
x_consumer_key | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_consumer_secret | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_access_token | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
x_access_token_secret | اختیاری سٹرنگ | دستیاب جب: type = x ٹیلیگرام API ٹوکن |
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}' \