Alerts
Confirm the alert email
Turn a confirmation token into a confirmed address.
/api/v1/notifications/email/confirmNo 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.
tokenstringrequiredThe token from the confirmation link.
- At most 200 characters
Response
200 OK, with every field below present. Times are ISO 8601 strings in UTC.
confirmedbooleanTrue when the token was good. It only works once.
Errors
| Status | Kind | When |
|---|---|---|
| 400 | bad_request | The 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. |
| 413 | payload_too_large | The 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.