API
اقرأ إعدادات إشعاراتك
أنواع البريد التي يرسلها OpenEmail إلى الشخص، ومساحات العمل المكتومة على هاتفه.
GET/account/notifications
ينفّذ الاستدعاء الحقيقي على مساحة عملك.
GET /account/notifications
أنواع البريد التي يرسلها OpenEmail إلى الشخص، ومساحات العمل المكتومة على هاتفه.
مثال
يتطلب account:read. في email صف لكل نوع: account وbilling، وهما مشغّلان دائمًا، ثم activity وproduct، ويمكن إيقافهما.
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، ولا يقيّد أي دور أيًّا منهما.