Ծանուցման կառավարիչներ
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:58:41"
}
],
"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:58:41"
}
}
POST https://tistos.com/api/notification-handlers
Պարամետրեր | Մանրամասներ | Նկարագրություն |
---|---|---|
name | Պահանջվում է Տող | - |
type | Պահանջվում է Տող | Թույլատրված արժեքներ: email , webhook , slack , discord , telegram , microsoft_teams |
ընտրովի Տող | 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 |
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 |
ընտրովի Տող | 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 |
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}' \