Admin API알림 on/off 설정
GET /ai/admin/notification-settings
전역 알림 설정 조회
전역 알림 설정 조회
모든 알림 그룹(캠페인·전역)과 개별 알림의 전역 값을 조회합니다. 캠페인 그룹의 값은 캠페인 기본값입니다.
HTTP 요청
GET /ai/admin/notification-settings
Authorization: Bearer {access_token}응답
성공 응답 (200 OK)
{
"status": 200,
"code": null,
"message": "알림 설정 조회 성공",
"data": {
"scope": "GLOBAL",
"campaignNo": null,
"sections": [
{
"code": "CREATOR",
"title": "크리에이터에게 가는 알림",
"groups": [
{
"code": "C8",
"scope": "CAMPAIGN",
"title": "자동 독촉 (마감 D-1·당일·초과, 미서명)",
"description": "제출 마감 D-1·당일·초과, 게시 독촉, 계약 미서명 리마인드를 크리에이터에게 자동으로 보냅니다.",
"editable": true,
"disabledReason": null,
"channels": [
{ "channel": "EMAIL", "title": "이메일", "enabled": true, "defaultEnabled": true, "overridden": false, "partial": false },
{ "channel": "SMS", "title": "문자", "enabled": true, "defaultEnabled": true, "overridden": false, "partial": false },
{ "channel": "ALIMTALK", "title": "알림톡", "enabled": false, "defaultEnabled": true, "overridden": true, "partial": false }
],
"items": [
{
"code": "EMAIL:creator.submission_deadline_d1",
"notificationKey": "creator.submission_deadline_d1",
"channel": "EMAIL",
"title": "스크립트/콘텐츠 제출 마감 D-1 안내",
"description": "매일 10:16 KST 크론. ...",
"recipientType": "CREATOR",
"enabled": true,
"defaultEnabled": true,
"overridden": false
}
]
}
]
}
]
}
}필드
| 필드 | 설명 |
|---|---|
sections[].code | BUSINESS / CREATOR / ADMIN / AGENCY(전역 화면에만 있음, 모두 GLOBAL 그룹) |
sections[].title | 섹션 이름. AGENCY는 탭 이름으로 바로 쓰도록 에이전시 입니다 |
groups[].scope | CAMPAIGN(캠페인별로 바꿀 수 있음) / GLOBAL(전역 전용) |
groups[].channels[] | 채널별 그룹 스위치. 그룹에 알림이 있는 채널만, EMAIL → SMS → ALIMTALK 순 |
channels[].channel | EMAIL / SMS / ALIMTALK. 그룹을 저장할 때 그룹 코드와 함께 보냅니다 |
channels[].title | 화면에 보일 채널 이름(이메일 / 문자 / 알림톡). 채널 코드를 프론트에서 이름으로 바꾸지 않고 이 값을 그립니다 |
channels[].enabled | 그룹×채널의 전역 값 |
channels[].defaultEnabled | 전역 화면에서는 항상 true (되돌리기 값) |
channels[].overridden | 그 채널이 꺼져 있으면 true |
channels[].partial | 그 채널의 개별 알림 중 그룹 값과 다른 것이 있으면 true (토글을 "일부"로 표시) |
groups[].editable | false면 잠긴 토글(모든 채널). 사유는 disabledReason |
items[].channel | 이 알림의 채널. 같은 채널의 그룹 스위치 아래에 그립니다 |
items[].code | 개별 알림 코드. 저장할 때 이 값을 보냅니다 |
items[].enabled | 개별 값. 전역 개별 설정이 없으면 그룹 값 |
items[].defaultEnabled | 개별 설정을 되돌리면 적용될 값(그룹 값) |
items[].overridden | 전역 개별 설정이 있으면 true |
에러 응답
| 상태 코드 | 설명 |
|---|---|
401 | 인증 실패 |
403 | ADMIN 권한 필요 |