API reference / Accounts

post/v2/accounts/password-reset

Ask for a password-reset link

Operation
requestPasswordReset
Authentication
None — public

**Always 202**, for the same reason as the confirmation resend: an answer that differed for a known and an unknown address would say who has an account here. Only an active, confirmed applicant account is mailed. The link works once and expires in an hour.

Request

Body

emailstringrequired

Responses

202Accepted. Says nothing about whether the address exists.
statusstringrequired
messagestringrequired
400The request body or query failed validation.
errorobjectrequired
429Too many requests. Three per fifteen minutes per address.
errorobjectrequired

Example

curl
curl -X POST https://api.haavisa.com/v2/accounts/password-reset \
  -H "Content-Type: application/json" \
  -d '{
    "email": "<email>"
  }'

More in Accounts

Something unclear? The eligibility guide explains the model behind the answers; the errors guide covers the envelope.