User

Update notification preferences

PUT
/api/user/notification-preferences

Replaces the authenticated user notification preferences map (AI responses, automations, escalations, calls, campaigns, etc.). Unspecified keys retain their current values.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/api/user/notification-preferences" \  -H "Content-Type: application/json" \  -d '{    "notificationPreferences": {      "aiResponses": true,      "escalations": true,      "assignments": true,      "calls": false,      "campaigns": true,      "other": false    }  }'
{  "success": true,  "message": "Notification preferences updated successfully",  "data": {    "aiResponses": true,    "inboundInAutopilot": false,    "automationTriggers": true,    "emailSync": true,    "escalations": true,    "autopilotMonitor": false,    "humanMonitor": true,    "assignments": true,    "calls": true,    "campaigns": true,    "other": true  }}