Verification

Resend Verification Code

Changed on

Resends a verification code to the user (useful if the original code was lost or expired)

post/verification/resend

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/verification/resend
  • Auth: API key in cookie jwt

Request body

user_idstring uuid required

The UUID of the user requesting code resend

method'totp' | 'email' | 'sms'

Verification method to use for resending

Example request

{
  "user_id": "f20e5948-01ba-4113-b453-db05d8bde3bc",
  "method": "totp"
}

Response

Verification code resent successfully

messagestring
qr_codestring

Base64-encoded QR code image (only for totp method)

secretstring

TOTP secret key (only for totp method)

Example response

{
  "message": "Verification code resent successfully",
  "qr_code": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "secret": "JBSWY3DPEHPK3PXP"
}

Changes