Resend the verification email for the authenticated account.
const url = 'https://api.tradr.cloud/api/auth/verify-email/resend';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tradr.cloud/api/auth/verify-email/resendAuthenticated (session cookie) — only the account owner can trigger a resend, so account enumeration is impossible by construction (D11). Rate limited per authenticated userId (3 / 1 h — per-account equals per-target, REQ-3.8’s bound). No request body. Issues a fresh single-use verification token (24 h TTL, newest-wins over prior tokens) and dispatches the verification email WITHOUT awaiting delivery (REQ-2.7). Already-verified accounts get 409 ALREADY_VERIFIED (an authed self-fact); an instance with no email configured gets 409 EMAIL_NOT_CONFIGURED — the two codes are distinct because the UI keys on code (SF-2, D12).
Responses
Section titled “Responses”{ success: true } — verification email dispatched (delivery not awaited).
Not authenticated.
ALREADY_VERIFIED (account already verified) or EMAIL_NOT_CONFIGURED (instance has no email configured) — distinct codes.
Rate limit reached (userId-keyed).