neosourceDocs
Search docs

Send (or resend) the email verification link

POST/api/auth/email/send-verification

sendEmailVerification

Issues a fresh `email_verify` token and mails the verification link to the caller's account email. No-ops cleanly when the account is already verified. Rate-limited to 5 sends per account per hour (slice #6); the 6th call within the window returns `429 Too Many Requests` with a `Retry-After` header.

Requires authentication using a session cookie or a bearer token — see tokens and scopes.

curl

curl -X POST 'https://neosource.dev/api/auth/email/send-verification' \
  -H 'Authorization: Bearer $NEOSOURCE_TOKEN'

fetch

fetch("https://neosource.dev/api/auth/email/send-verification", {
  method: "POST",
  headers: {
    Authorization: "Bearer $NEOSOURCE_TOKEN",
  },
});

Responses

204Verification email dispatched (or no-op if already verified)

Standard errors

Bodies documented once for the whole API — see standard errors.

  • 400Bad Request — one of: invalid_input
  • 401Authentication required
  • 429Rate limited — retry after the `Retry-After` header
  • 500Internal server error
  • 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
  • 504Gateway timeout — the request exceeded the server's handling budget