List communication preferences and consent
LogsGET /notification-preferences
Pages the caller's notification preferences: consent status, preferred locale, per-event and per-channel switches, and quiet hours. Without a tenant (X-Tenant-ID or the utility_id query parameter) it lists the caller's preferences across all tenants; with one, it lists that tenant's preferences when the caller has an account or relationship there, and returns 403 otherwise.
Parameters
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Returns
200 Preferences for consumer accounts the principal may manage
curl -X GET "$CONSUMER_API/notification-preferences" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$CONSUMER_API/notification-preferences", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$CONSUMER_API/notification-preferences",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$CONSUMER_API/notification-preferences", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Preferences for consumer accounts the principal may manage