Resend Verification Email
Issue a fresh email verification token for the calling user and send it to their registered address. Useful when the original verification email was lost, expired, or never arrived. Authenticated endpoint — clients use the JWT (or API key) of the unverified user to identify themselves.
Any previous outstanding verification tokens for this user are deleted server-side, so old links stop working as soon as a new email is sent. Rate-limited: only one resend per 2 minutes per user. If the user is already verified, the call is a no-op and returns 200 with "already verified".
Request body
None — empty JSON object ({}) or no body. The user is identified entirely from the auth header.
Response (200 OK)
message string
Either
"Verification email sent." on success or "Email is already verified." when the user has already verified.Errors
401 Unauthorized
No valid auth header — this endpoint identifies the recipient by the calling JWT/API key, so anonymous calls are rejected.
429 Too Many Requests
Less than 2 minutes have passed since the last resend. Wait the remaining time before retrying.
500
Email service or database error. The token may or may not have been generated; safe to retry after the rate-limit window.
Request
curl -X POST "https://api.ngris.com/v1/auth/resend-verification" \
-H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
client.auth.resend_verification()
Response — 200 OK
{
"message": "Verification email sent."
}