알림 핸들러

GET https://dmpilot.ru/api/notification-handlers/
curl --request GET \
--url 'https://dmpilot.ru/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": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-06-07 02:07:50" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://dmpilot.ru/api/notification-handlers?&page=1", "last": "https://dmpilot.ru/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://dmpilot.ru/api/notification-handlers?&page=1" } }
GET https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "type": "email", "name": "Work email", "settings": { "email": "hey@example.com" }, "is_enabled": true, "last_datetime": null, "datetime": "2025-06-07 02:07:50" } }
POST https://dmpilot.ru/api/notification-handlers
매개변수 상세 설명
name 필수 문자열 -
type 필수 문자열 허용 값: email , webhook , slack , discord , telegram , microsoft_teams
email 선택 문자열 사용 가능: type = email 이메일
webhook 선택 문자열 사용 가능: type = webhook 웹훅 URL
slack 선택 문자열 사용 가능: type = slack Slack 웹훅 URL
discord 선택 문자열 사용 가능: type = discord Discord 웹훅 URL
telegram 선택 문자열 사용 가능: type = telegram Telegram API 토큰
telegram_chat_id 선택 문자열 사용 가능: type = telegram Telegram 채팅 ID
x_consumer_key 선택 문자열 사용 가능: type = x Telegram API 토큰
x_consumer_secret 선택 문자열 사용 가능: type = x Telegram API 토큰
x_access_token 선택 문자열 사용 가능: type = x Telegram API 토큰
x_access_token_secret 선택 문자열 사용 가능: type = x Telegram API 토큰
curl --request POST \
--url 'https://dmpilot.ru/api/notification-handlers' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=email' \
--form 'email=hello@example.com' \
{ "data": { "id": 1 } }
POST https://dmpilot.ru/api/notification-handlers/{notification_handler_id}
매개변수 상세 설명
name 선택 문자열 -
type 선택 문자열 허용 값: email , webhook , slack , discord , telegram , microsoft_teams
email 선택 문자열 사용 가능: type = email 이메일
webhook 선택 문자열 사용 가능: type = webhook 웹훅 URL
slack 선택 문자열 사용 가능: type = slack Slack 웹훅 URL
discord 선택 문자열 사용 가능: type = discord Discord 웹훅 URL
telegram 선택 문자열 사용 가능: type = telegram Telegram API 토큰
telegram_chat_id 선택 문자열 사용 가능: type = telegram Telegram 채팅 ID
x_consumer_key 선택 문자열 사용 가능: type = x Telegram API 토큰
x_consumer_secret 선택 문자열 사용 가능: type = x Telegram API 토큰
x_access_token 선택 문자열 사용 가능: type = x Telegram API 토큰
x_access_token_secret 선택 문자열 사용 가능: type = x Telegram API 토큰
is_enabled 선택 부울 -
curl --request POST \
--url 'https://dmpilot.ru/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://dmpilot.ru/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://dmpilot.ru/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \