Ծանուցման կառավարիչներ
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}' \
| Պարամետրեր | Մանրամասներ | Նկարագրություն |
|---|---|---|
| search | ընտրովի Տող | Որոնման տողը: |
| search_by | ընտրովի Տող | Որ ոլորտով եք փնտրում: Թույլատրված արժեքները են: name. |
| is_enabled | ընտրովի Բուլյան | |
| type | ընտրովի Տող | Որ ոլորտով եք փնտրում: Թույլատրված արժեքները են: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | ընտրովի Տող | Թույլատրված արժեքներ: datetime, last_datetime |
| datetime_start | ընտրովի Տող | Ֆիլտրել արդյունքները այս ամսաթվից և ժամից սկսած։ Ձևաչափ՝ Y-m-d H:i:s։ |
| datetime_end | ընտրովի Տող | Ֆիլտրել արդյունքները մինչև այս ամսաթիվն ու ժամը։ Ձևաչափ՝ Y-m-d H:i:s։ |
| order_by | ընտրովի Տող | Որ ոլորտում պատվիրել արդյունքները: Թույլատրված արժեքները՝ notification_handler_id, datetime, last_datetime, name. |
| order_type | ընտրովի Տող | Արդյունքների դասավորությունը: Թույլատրված արժեքները են: ASC աճող դասավորության համար, և DESC նվազող դասավորության համար: |
| search | ընտրովի Տող | Որոնման տողը: |
| search_by | ընտրովի Տող | Որ ոլորտով եք փնտրում: Թույլատրված արժեքները են: name. |
| is_enabled | ընտրովի Բուլյան | |
| type | ընտրովի Տող | Որ ոլորտով եք փնտրում: Թույլատրված արժեքները են: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat. |
| datetime_field | ընտրովի Տող | Թույլատրված արժեքներ: datetime, last_datetime |
| datetime_start | ընտրովի Տող | Ֆիլտրել արդյունքները այս ամսաթվից և ժամից սկսած։ Ձևաչափ՝ Y-m-d H:i:s։ |
| datetime_end | ընտրովի Տող | Ֆիլտրել արդյունքները մինչև այս ամսաթիվն ու ժամը։ Ձևաչափ՝ Y-m-d H:i:s։ |
| order_by | ընտրովի Տող | Որ ոլորտում պատվիրել արդյունքները: Թույլատրված արժեքները՝ notification_handler_id, datetime, last_datetime, name. |
| order_type | ընտրովի Տող | Արդյունքների դասավորությունը: Թույլատրված արժեքները են: ASC աճող դասավորության համար, և DESC նվազող դասավորության համար: |
| 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": "2026-07-18 11:38:54",
}
],
"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 11:38:54",
}
}
POST https://tistos.com/api/notification-handlers
| Պարամետրեր | Մանրամասներ | Նկարագրություն |
|---|---|---|
| name | Պահանջվում է Տող | - |
| type | Պահանջվում է Տող | Թույլատրված արժեքներ: email, webhook, slack, discord, telegram, microsoft_teams, x, google_chat |
| ընտրովի Տող | Available when: type = email Էլեկտրոնային փոստ | |
| webhook | ընտրովի Տող | Available when: type = webhook Webhook URL |
| slack | ընտրովի Տող | Available when: type = slack Slack webhook URL |
| discord | ընտրովի Տող | Available when: type = discord Discord webhook URL |
| telegram | ընտրովի Տող | Available when: type = telegram Telegram API նշան |
| telegram_chat_id | ընտրովի Տող | Available when: type = telegram Telegram չաթի ID |
| microsoft_teams | ընտրովի Տող | Available when: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | ընտրովի Տող | Available when: type = google_chat Google Chat webhook URL |
| x_consumer_key | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_consumer_secret | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_access_token | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_access_token_secret | ընտրովի Տող | Available when: type = x Telegram 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, x, google_chat |
| ընտրովի Տող | Available when: type = email Էլեկտրոնային փոստ | |
| webhook | ընտրովի Տող | Available when: type = webhook Webhook URL |
| slack | ընտրովի Տող | Available when: type = slack Slack webhook URL |
| discord | ընտրովի Տող | Available when: type = discord Discord webhook URL |
| telegram | ընտրովի Տող | Available when: type = telegram Telegram API նշան |
| telegram_chat_id | ընտրովի Տող | Available when: type = telegram Telegram չաթի ID |
| microsoft_teams | ընտրովի Տող | Available when: type = microsoft_teams Microsoft Teams webhook URL |
| google_chat | ընտրովի Տող | Available when: type = google_chat Google Chat webhook URL |
| x_consumer_key | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_consumer_secret | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_access_token | ընտրովի Տող | Available when: type = x Telegram API նշան |
| x_access_token_secret | ընտրովի Տող | Available when: type = x Telegram 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}' \