Authentication
Resend Confirmation
Resend confirmation email or SMS
POST
Resend confirmation email or SMS to users who haven’t received or lost their verification messages. This endpoint helps users complete the verification process when the original message is missing.
This endpoint does not require authentication and can be called by anyone with a valid email or phone number.
Request Body
The type of confirmation to resend.Options:
signup- Email/phone confirmation after registrationrecovery- Password recovery emailmagiclink- Magic link for passwordless loginemail_change- Email change confirmationsms- SMS verification code
Email address to send confirmation to. Required for email-based confirmations.
Phone number to send SMS to. Required for SMS confirmations.
URL to redirect to after confirmation (for email links).
Captcha token for verification if captcha is enabled.
Response
Unique identifier for the sent message (when available)
Error Responses
Resend Types
Email Signup Confirmation
Resend email verification for user registration:SMS Verification Code
Resend SMS verification code:Password Recovery Email
Resend password recovery email:Magic Link
Resend magic link for passwordless login:Email Change Confirmation
Resend email change confirmation:Implementation Examples
React Resend Component
Node.js Backend Handler
Rate Limiting
This endpoint is rate limited to prevent spam:| Type | Limit | Window |
|---|---|---|
| Email confirmations | 3 per email | 5 minutes |
| SMS confirmations | 2 per phone | 5 minutes |
| General | 10 per IP | 10 minutes |
Security Considerations
- Rate Limiting: Prevents spam and abuse
- User Validation: Only sends to existing users
- Captcha Support: Optional captcha verification
- No Information Disclosure: Doesn’t reveal if email/phone exists
Best Practices
User Experience
User Experience
- Provide clear feedback when confirmation is sent
- Show countdown timer before allowing resend
- Offer alternative contact methods if available
- Include troubleshooting tips for common issues
Security
Security
- Implement proper rate limiting
- Use captcha for high-risk scenarios
- Log resend attempts for monitoring
- Don’t reveal user existence in error messages
Email Delivery
Email Delivery
- Use reputable email service providers
- Implement proper SPF, DKIM, and DMARC records
- Monitor delivery rates and bounce rates
- Provide clear sender information
SMS Delivery
SMS Delivery
- Use reliable SMS providers
- Include clear sender identification
- Respect opt-out requests
- Monitor delivery rates and costs
Testing
Unit Tests
Troubleshooting
Common Issues
-
Email not received
- Check spam/junk folders
- Verify email address is correct
- Check email provider restrictions
-
SMS not received
- Verify phone number format
- Check carrier restrictions
- Ensure phone has signal
-
Rate limit errors
- Wait for rate limit window to reset
- Implement proper retry logic
- Consider using exponential backoff
Related Endpoints
User Signup
Create new user accounts
Verify User
Verify confirmation tokens
Send OTP
Send SMS one-time passwords
Password Recovery
Initiate password recovery