prufy
Skip to the page

AlertsRetrieve alert settings

Alerts

Retrieve alert settings

Where alerts go for this session, and which channels this server can use.

GET/api/v1/notifications

Works 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 | null

    The alert address. Null when none is set.

    Show the 2 fields insideInside email
    • addressstring

      Where alert emails go.

    • verifiedboolean

      False until the confirmation link has been used.

  • pushDevicesinteger

    How many browsers are subscribed to push.

  • capabilitiesobject

    Which channels this server can use.

    Show the 2 fields insideInside capabilities
    • emailboolean

      Whether this server can send email at all.

    • pushPublicKeystring | null

      The 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.