알림 핸들러
GET https://digily.link/api/notification-handlers/
curl --request GET \
--url 'https://digily.link/api/notification-handlers/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/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-09-14 12:00:45", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://digily.link/api/notification-handlers?page=1", "last": "https://digily.link/api/notification-handlers?page=1", "next": null, "prev": null, "self": "https://digily.link/api/notification-handlers?page=1" } }
GET https://digily.link/api/notification-handlers/{notification_handler_id}
curl --request GET \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/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-09-14 12:00:45", } }
POST https://digily.link/api/notification-handlers
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 필수 문자열 | - |
type | 필수 문자열 | 허용된 값: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
선택 사항 문자열 | 사용 가능 시기: type = email 이메일 | |
webhook | 선택 사항 문자열 | 사용 가능 시기: type = webhook 웹훅 URL |
slack | 선택 사항 문자열 | 사용 가능 시기: type = slack 슬랙 웹훅 URL |
discord | 선택 사항 문자열 | 사용 가능 시기: type = discord Discord 웹훅 URL |
telegram | 선택 사항 문자열 | 사용 가능 시기: type = telegram 텔레그램 API 토큰 |
telegram_chat_id | 선택 사항 문자열 | 사용 가능 시기: type = telegram 텔레그램 채팅 ID |
microsoft_teams | 선택 사항 문자열 | 사용 가능 시기: type = microsoft_teams Microsoft Teams 웹훅 URL |
push_subscriber_id | 선택 사항 문자열 | 사용 가능 시기: type = push_subscriber_id 푸시 구독자 |
curl --request POST \
--url 'https://digily.link/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' \
--url 'https://digily.link/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://digily.link/api/notification-handlers/{notification_handler_id}
매개변수 | 세부사항 | 설명 |
---|---|---|
name | 선택 사항 문자열 | - |
type | 선택 사항 문자열 | 허용된 값: email , webhook , slack , discord , telegram , microsoft_teams , internal_notification , push_subscriber_id |
선택 사항 문자열 | 사용 가능 시기: type = email 이메일 | |
webhook | 선택 사항 문자열 | 사용 가능 시기: type = webhook 웹훅 URL |
slack | 선택 사항 문자열 | 사용 가능 시기: type = slack 슬랙 웹훅 URL |
discord | 선택 사항 문자열 | 사용 가능 시기: type = discord Discord 웹훅 URL |
telegram | 선택 사항 문자열 | 사용 가능 시기: type = telegram 텔레그램 API 토큰 |
telegram_chat_id | 선택 사항 문자열 | 사용 가능 시기: type = telegram 텔레그램 채팅 ID |
microsoft_teams | 선택 사항 문자열 | 사용 가능 시기: type = microsoft_teams Microsoft Teams 웹훅 URL |
push_subscriber_id | 선택 사항 문자열 | 사용 가능 시기: type = push_subscriber_id 푸시 구독자 |
is_enabled | 선택 사항 부울린 | - |
curl --request POST \
--url 'https://digily.link/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://digily.link/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://digily.link/api/notification-handlers/{notification_handler_id}
curl --request DELETE \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/notification-handlers/{notification_handler_id}' \
--header 'Authorization: Bearer {api_key}' \