Listar preferências de notificação
RegistosGET /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.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Preferences for consumer accounts the principal may manage
curl -X GET "$CONSUMER_API/notification-preferences" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
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