prufy
Skip to the page

AlertsUnsubscribe from alert emails

Alerts

Unsubscribe from alert emails

Stop alert emails using the token from any alert's footer.

POST/api/v1/notifications/email/unsubscribe

Mail apps call this when someone presses their own Unsubscribe button, which is why the token is in the query string and not the body.

It answers 200 either way, so pressing twice isn't an error. unsubscribed is false when the token is missing or not one of ours.

Authentication

No cookie. The token in the request is the whole credential. How sessions work.

Query parameters

tokenstringrequired

The token from the unsubscribe link in an alert email.

Response

200 OK, with every field below present. Times are ISO 8601 strings in UTC.

  • unsubscribedboolean

    True when the token matched an address.

Errors

Nothing specific to this route.

Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.