Alerts
Retrieve alert settings
Where alerts go for this session, and which channels this server can use.
/api/v1/notificationsWorks with no session too, so a client knows which channels to offer before anyone has claimed a domain. capabilities.email is false when the server has no email set up, and capabilities.pushPublicKey is null when push is off.
Alerts are sent for six moments only: verified, at risk, recovered, lapsed, expired and transferred. Routine checks never send anything.
Authentication
Works with or without the session cookie. Without it there's less to return. How sessions work.
Response
200 OK, with every field below present. Times are ISO 8601 strings in UTC.
emailobject | nullThe alert address. Null when none is set.
Show the 2 fields insideInside email
addressstringWhere alert emails go.
verifiedbooleanFalse until the confirmation link has been used.
pushDevicesintegerHow many browsers are subscribed to push.
capabilitiesobjectWhich channels this server can use.
Show the 2 fields insideInside capabilities
emailbooleanWhether this server can send email at all.
pushPublicKeystring | nullThe key a browser subscribes with. Null when push is off.
Errors
Nothing specific to this route.
Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.