Skip to content
Last updated

POST /v1/auth/resend-code - Resend email verification code to a user who hasn't received or has lost their original verification code. This endpoint generates a new verification code and sends it to the email address associated with the provided email key.

POSThttps://api.aitronos.com/v1/auth/resend-code

Request Body

email_key string required

The email verification key received from the initial authentication request (login, registration, or password reset). Format: UUID v4.


Returns

A Resend email response object containing confirmation of successful email resend, including the email key and verification type.

Response Fields

success boolean

Indicates if the email resend operation was successful. Always true for successful requests.

message string

Human-readable message describing the result of the resend operation.

email_key string

The email verification key for the new verification code. Format: UUID v4.

type string

The type of verification being resent. One of:

  • "registration" - for new user signups
  • "login" - for existing user logins
  • "password_reset" - for password reset requests
Bash
curl -X POST "https://api.aitronos.com/v1/auth/resend-code" \
  -H "Content-Type: application/json" \
  -d '{
    "email_key": "bbe7fe02-965d-4132-9a78-ef6782497561"
  }'

Response:

{
  "success": true,
  "message": "A new verification code has been sent to your email",
  "email_key": "bbe7fe02-965d-4132-9a78-ef6782497561",
  "type": "registration"
}