문서로 건너뛰기
API

알림 설정 읽기

OpenEmail이 그 사람에게 보내는 이메일의 종류와, 휴대폰에서 알림을 끈 워크스페이스.

GET/account/notifications

워크스페이스에 실제 호출을 실행합니다.

GET /account/notifications

OpenEmail이 그 사람에게 보내는 이메일의 종류와, 휴대폰에서 알림을 끈 워크스페이스.

예시

account:read가 필요합니다. email에는 종류마다 한 줄이 있습니다. 항상 켜져 있는 account와 billing, 그다음 끌 수 있는 activity와 product입니다.

curl
curl "$OE/account/notifications" -H "$AUTH"
응답
{  "object": "notification_settings",  "email": [    { "category": "account", "label": "Account", "description": "Sign-in and security notices, invitations, and changes to your workspaces such as API keys, webhooks, domains and members.", "required": true, "enabled": true },    { "category": "billing", "label": "Billing", "description": "Receipts, renewals, refunds, plan changes and payments that need attention.", "required": true, "enabled": true },    { "category": "activity", "label": "Activity", "description": "Your daily AI actions running out and coming back, a monthly usage summary, and a note when your mailbox sits unread.", "required": false, "enabled": true },    { "category": "product", "label": "Product news", "description": "Occasional notes about what is new in OpenEmail.", "required": false, "enabled": false }  ],  "mutedWorkspaces": []}

이 호출은 워크스페이스가 아니라 사람에게 작동합니다. API 키는 자신이 속한 워크스페이스의 소유자를 대신해, 앱은 그 앱을 연결한 사람을 대신해 작동합니다. 읽기에는 account:read, 모든 변경에는 account:write가 필요하며, 어떤 역할도 둘 중 어느 것도 제한하지 않습니다.

레퍼런스