prufy
Skip to the page

AlertsConfirm the alert email

Alerts

Confirm the alert email

Turn a confirmation token into a confirmed address.

POST/api/v1/notifications/email/confirm

No session needed: the token is the credential, and the person confirming may be on a different device from the one that asked.

It's a POST from a button, so opening the emailed link can't confirm anything by itself. confirmed is false when the token is unknown, used or more than 24 hours old, and that's still a 200.

Authentication

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

Body

JSON, with content-type: application/json.

  • tokenstringrequired

    The token from the confirmation link.

    • At most 200 characters

Response

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

  • confirmedboolean

    True when the token was good. It only works once.

Errors

StatusKindWhen
400bad_requestThe body isn't JSON, or doesn't match the shape below. message names the first field to fix, and fields lists each one with its path.
413payload_too_largeThe body is over 16 KB. No route takes anything near that.

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