Skip to content

Resend OTP User

Resend the OTP verification code to user's email.

Endpoint

POST /v1/accounts/resend/otp/user/

Authentication

Not required (public endpoint)

Request Body

{
  "email": "user@example.com"
}

Parameters

Field Type Required Description Validation
email string Yes User's email address Valid email format

Response

Success (200 OK)

{
  "message": "Verification code sent to email"
}

A new OTP code is generated and sent to the user's email.

Error Responses

User Not Found (404)

{
  "error": "User Not Found"
}

Example Request

curl -X POST "https://api.luxmart.site/v1/accounts/resend/otp/user/" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com"
  }'

Notes

  • A new 6-digit OTP is generated and sent
  • Previous OTP is replaced with the new one
  • OTP is sent asynchronously via email