Update notification preferences
Update notification settings for your workspace, including which channels and alert types are on and who receives alerts by email and webhook. Needs notifications:manage, which no key receives by default. A console session or an OAuth connection also needs the admin role.
/api/v2/notifications/preferencesAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
application/jsonemailEnabledbooleanwebhookEnabledbooleaninAppEnabledbooleanslackEnabledbooleandiscordEnabledbooleanemailRecipientsstring<email>[]webhookUrlstring<uri> | nullwebhookSecretstring | nullSet or rotate the signing secret; use null to remove it. The stored value is never returned.
quotaAlertThresholdsinteger[]enabledTypesstring[]Preferences updated successfully
successbooleandataNotificationPreferencesShow propertiesHide properties
emailEnabledbooleanrequiredwebhookEnabledbooleanrequiredinAppEnabledbooleanrequiredslackEnabledbooleanrequireddiscordEnabledbooleanrequiredemailRecipientsstring<email>[]requiredwebhookUrlstring<uri> | nullrequiredhasWebhookSecretbooleanrequiredWhether a signing secret is stored. The value itself is never returned.
quotaAlertThresholdsinteger[]requiredenabledTypesstring[]requiredcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredBad Request - Invalid input data
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectToo Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
