Resend Verification
POST/auth/resend-verification
Invalidate old verification tokens and email a fresh one (SCRIFT-79).
The caller authenticates with the same email + password used at registration. On success:
- Every outstanding verification token for the user is deleted - an older leaked link cannot be used after this call.
- A new 24h token is minted and emailed.
- Returns 202
{"message": "Verification email resent."}.
Rate limit (SCRIFT-79 flag C): 3/hour keyed by client IP.
the limiter's key function runs before the request body is parsed, so
per-email keying is not wireable at this layer; IP matches the
existing /auth/refresh precedent in this file. Rejection returns
HTTP 429 via the rate-limit handler registered in main.py.
Errors:
- 401
invalid_credentials- wrong email or password - 409
already_verified- account is already verified - 429
too_many_attempts- the email's password-check budget is spent - 503
rate_limit_unavailable- the budget cannot be read; it fails closed, so no password is checked (#268)
⚠ It checks a password, and its 401/409 tell a wrong one from a right one, so it spends the same per-email budget as login (#223, #268 review). Otherwise many addresses x 3/hour would be an unlimited guessing channel.
Request
Responses
- 202
- 422
Successful Response
Validation Error