Resend Verification Code
Endpoint
Request Body
Email address of the user who needs a new verification code
Use Cases
This endpoint is useful when:- Original verification code expired (after 10 minutes)
- User didn’t receive the verification email
- User accidentally deleted the verification email
- User needs to re-verify their email address
Behavior
When this endpoint is called:- Validates that user exists
- Checks that user is not already verified
- Generates new 6-digit verification code
- Updates verification code and expiration in database
- Sends new code via email
- Returns success message
Code Generation
- Format: 6-digit random numeric code
- Expiration: 10 minutes from generation
- Previous Code: Old code is invalidated and replaced
Rate Limiting
Email Delivery
The verification email includes:- 6-digit code prominently displayed
- Expiration time (10 minutes)
- Link back to verification page
- Sender: SociApp ([email protected])
Example Integration
Related Endpoints
- Register - Create new user account
- Verify Email - Verify email with code
- Login - Login after verification
