Update notification preferences
curl --request PUT \
--url https://your-instance.example.com/api/user/notification-preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notificationPreferences": {
"aiResponses": true,
"escalations": true,
"assignments": true,
"calls": false,
"campaigns": true,
"other": false
}
}
'import requests
url = "https://your-instance.example.com/api/user/notification-preferences"
payload = { "notificationPreferences": {
"aiResponses": True,
"escalations": True,
"assignments": True,
"calls": False,
"campaigns": True,
"other": False
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notificationPreferences: {
aiResponses: true,
escalations: true,
assignments: true,
calls: false,
campaigns: true,
other: false
}
})
};
fetch('https://your-instance.example.com/api/user/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/user/notification-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'notificationPreferences' => [
'aiResponses' => true,
'escalations' => true,
'assignments' => true,
'calls' => false,
'campaigns' => true,
'other' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/user/notification-preferences"
payload := strings.NewReader("{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://your-instance.example.com/api/user/notification-preferences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/user/notification-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"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
}
}{
"error": "User not found",
"details": "No user with id 64ee9a8b1e7f2a0011223399"
}{
"error": "User not found",
"details": "No user with id 64ee9a8b1e7f2a0011223399"
}User
Update notification preferences
Replaces the authenticated user notification preferences map (AI responses, automations, escalations, calls, campaigns, etc.). Unspecified keys retain their current values.
PUT
/
api
/
user
/
notification-preferences
Update notification preferences
curl --request PUT \
--url https://your-instance.example.com/api/user/notification-preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notificationPreferences": {
"aiResponses": true,
"escalations": true,
"assignments": true,
"calls": false,
"campaigns": true,
"other": false
}
}
'import requests
url = "https://your-instance.example.com/api/user/notification-preferences"
payload = { "notificationPreferences": {
"aiResponses": True,
"escalations": True,
"assignments": True,
"calls": False,
"campaigns": True,
"other": False
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notificationPreferences: {
aiResponses: true,
escalations: true,
assignments: true,
calls: false,
campaigns: true,
other: false
}
})
};
fetch('https://your-instance.example.com/api/user/notification-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/user/notification-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'notificationPreferences' => [
'aiResponses' => true,
'escalations' => true,
'assignments' => true,
'calls' => false,
'campaigns' => true,
'other' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/user/notification-preferences"
payload := strings.NewReader("{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://your-instance.example.com/api/user/notification-preferences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/user/notification-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notificationPreferences\": {\n \"aiResponses\": true,\n \"escalations\": true,\n \"assignments\": true,\n \"calls\": false,\n \"campaigns\": true,\n \"other\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"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
}
}{
"error": "User not found",
"details": "No user with id 64ee9a8b1e7f2a0011223399"
}{
"error": "User not found",
"details": "No user with id 64ee9a8b1e7f2a0011223399"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Per-category notification toggles (aiResponses, automationTriggers, escalations, calls, etc.). See UserNotificationPreferences.
Show child attributes
Show child attributes
Response
Notification preferences updated
Returned after PUT /api/user/notification-preferences.
Available options:
true Show child attributes
Show child attributes
Example:
{ "aiResponses": true, "inboundInAutopilot": true, "automationTriggers": false, "emailSync": true, "escalations": true, "autopilotMonitor": false, "humanMonitor": true, "assignments": true, "calls": false, "campaigns": true, "other": false }
⌘I