/notifications/administrators
0.2.0Unchanged since publicationList administrators with their notification preferences and counts
securityreadallFor each administrator, the response includes their name, current account email address, the number of enabled notification kinds, the total number of kinds and the list of disabled kinds. The email field is null when the account has no email address. An account email address is required to receive notifications.
The last_30_days counts use retained log entries from the last 30 days, starting at since. An entry counts toward mailed when its outcome is mailed and its recipients include the administrator's current email address. Every other entry of a currently enabled kind counts toward missed and missed_by_kind. Changes to an administrator's email address or preferences can affect these counts for earlier notifications.
Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/notifications/administrators" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"administrators": [
{
"email": "alice@example.com",
"kinds_on": 1,
"kinds_total": 1,
"last_30_days": {
"mailed": 1,
"missed": 1,
"missed_by_kind": {}
},
"name": "alice",
"off": [
"text"
]
}
],
"kinds_total": 1,
"since": "text"
}Errors
1 error, each a status and a sentence401Authentication requiredurbestack.com/docs/api/get-notifications-administrators/