Skip to main content
POST
/
api
/
settings
/
notifications
Update notification preferences
curl --request POST \
  --url https://app.dacard.ai/api/settings/notifications \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "channel": "email",
  "severityMin": "low",
  "enabled": true,
  "slackWebhookUrl": "https://hooks.slack.com/services/T.../B.../..."
}
'
{
  "preference": {
    "channel": "email",
    "severityMin": "low",
    "enabled": true,
    "slackWebhookUrl": "<string>"
  }
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
channel
enum<string>
required

Notification delivery channel

Available options:
email,
slack
severityMin
enum<string>
required

Minimum anomaly severity to trigger a notification

Available options:
low,
medium,
high
enabled
boolean
required

Whether this channel is enabled

slackWebhookUrl
string<uri>

Slack incoming webhook URL (required when channel=slack and enabled=true)

Example:

"https://hooks.slack.com/services/T.../B.../..."

Response

Preference saved

preference
object

Anomaly notification preference for a delivery channel