API reference / Accounts
post
/v2/accounts/verify-emailConfirm an email address
- Operation
verifyEmail- Authentication
- None — public
Exchanges the token from the confirmation email for a confirmed address — and for the applications that address had already started, which are returned as `linked_applications` and belong to the account from then on. The link is stateless and not single-use: opening it twice re-confirms and re-runs the (idempotent) link, and it never signs anyone in — a link that arrives by email must not become a standing credential.
Request
Body
tokenstringrequiredResponses
200Confirmed. The account, plus the applications this address had started.
userAccountUserrequiredlinked_applicationsobject[]required400The request body or query failed validation.
errorobjectrequired401The link is not valid, has expired, or matches no account.
errorobjectrequiredExample
curl -X POST https://api.haavisa.com/v2/accounts/verify-email \
-H "Content-Type: application/json" \
-d '{
"token": "<token>"
}'More in Accounts
POST/v1/tokenGET/v1/token/introspectPOST/v1/token/mfaPOST/v1/token/revokePOST/v2/accountsGET/v2/accounts/mePATCH/v2/accounts/meGET/v2/accounts/me/messaging-consentPUT/v2/accounts/me/messaging-consentPOST/v2/accounts/mfa/activatePOST/v2/accounts/mfa/disablePOST/v2/accounts/mfa/enrollPOST/v2/accounts/password-resetPOST/v2/accounts/password-reset/confirmPOST/v2/accounts/sign-inPOST/v2/accounts/sign-outPOST/v2/accounts/verify-email/resend
Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.