ドキュメント本文へスキップ
API

通知設定を取得する

OpenEmail がその人に送るメールの種類と、スマートフォンでミュートしているワークスペース。

GET/account/notifications

実際の呼び出しをワークスペースに対して実行します。

GET /account/notifications

OpenEmail がその人に送るメールの種類と、スマートフォンでミュートしているワークスペース。

例

account:read が必要。email には種類ごとに 1 行ある。常にオンの 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 が必要で、どちらもロールでは制限されない。

リファレンス