앱을 설치하세요 🪄 주소창 오른쪽 상단의 아이콘을 클릭하세요.

Notification handlers

GET https://wia.news/api/notification-handlers/
curl --request GET \
--url 'https://wia.news/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-09-01 02:27:54" } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://wia.news/api/notification-handlers?&page=1", "last": "https://wia.news/api/notification-handlers?&page=1", "next": null, "prev": null, "self": "https://wia.news/api/notification-handlers?&page=1" } }
GET https://wia.news/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://wia.news/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-09-01 02:27:54" } }
POST https://wia.news/api/notification-handlers
파라미터 세부 정보 설명
name 필수 문자열 -
type 필수 문자열 허용 값: email , webhook , slack , discord , telegram , microsoft_teams
email 선택 문자열 사용 가능 조건: type = email Email
webhook 선택 문자열 사용 가능 조건: type = webhook Webhook URL
slack 선택 문자열 사용 가능 조건: type = slack Slack webhook URL
discord 선택 문자열 사용 가능 조건: type = discord Discord webhook URL
telegram 선택 문자열 사용 가능 조건: type = telegram Telegram API Token
telegram_chat_id 선택 문자열 사용 가능 조건: type = telegram Telegram Chat ID
x_consumer_key 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_consumer_secret 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_access_token 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_access_token_secret 선택 문자열 사용 가능 조건: type = x Telegram API Token
curl --request POST \
--url 'https://wia.news/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://wia.news/api/notification-handlers/{notification_handler_id}
파라미터 세부 정보 설명
name 선택 문자열 -
type 선택 문자열 허용 값: email , webhook , slack , discord , telegram , microsoft_teams
email 선택 문자열 사용 가능 조건: type = email Email
webhook 선택 문자열 사용 가능 조건: type = webhook Webhook URL
slack 선택 문자열 사용 가능 조건: type = slack Slack webhook URL
discord 선택 문자열 사용 가능 조건: type = discord Discord webhook URL
telegram 선택 문자열 사용 가능 조건: type = telegram Telegram API Token
telegram_chat_id 선택 문자열 사용 가능 조건: type = telegram Telegram Chat ID
x_consumer_key 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_consumer_secret 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_access_token 선택 문자열 사용 가능 조건: type = x Telegram API Token
x_access_token_secret 선택 문자열 사용 가능 조건: type = x Telegram API Token
is_enabled 선택 불리언 -
curl --request POST \
--url 'https://wia.news/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://wia.news/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://wia.news/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \