Zur Dokumentation springen
API

Ihre Benachrichtigungseinstellungen lesen

Welche Arten von E-Mails OpenEmail der Person schickt, und die Workspaces, die auf ihrem Telefon stummgeschaltet sind.

GET/account/notifications

Führt den echten Aufruf in Ihrem Workspace aus.

GET /account/notifications

Welche Arten von E-Mails OpenEmail der Person schickt, und die Workspaces, die auf ihrem Telefon stummgeschaltet sind.

Beispiel

Erfordert account:read. email hat eine Zeile für jede Art: account und billing, die immer eingeschaltet sind, dann activity und product, die sich ausschalten lassen.

curl
curl "$OE/account/notifications" -H "$AUTH"
Antwort
{  "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": []}

Diese Aufrufe wirken auf eine Person, nicht auf einen Workspace. Ein API-Schlüssel handelt für den Inhaber des Workspace, zu dem er gehört, eine App für die Person, die sie verbunden hat. Lesen erfordert account:read und jede Änderung account:write, und keine Rolle schränkt eines davon ein.

Referenz