Skip to the documentation
API

Turn a kind of email on or off

Stops or starts one kind of email OpenEmail sends the person.

PUT/account/notifications/email/{category}

Runs the real call on your workspace.

PUT /account/notifications/email/{category}

Stops or starts one kind of email OpenEmail sends the person.

Example

Needs account:write. category is activity or product, and enabled false stops that email. Answers with the notification settings as they are now.

curl
curl -X PUT "$OE/account/notifications/email/product" -H "$AUTH" \  -H "Content-Type: application/json" -d '{ "enabled": false }'
Response
{  "object": "notification_settings",  "email": [    { "category": "product", "label": "Product news", "description": "Occasional notes about what is new in OpenEmail.", "required": false, "enabled": false }  ],  "mutedWorkspaces": []}

account and billing cannot be turned off, and asking to is a 422 invalid_parameter on category.

Reference