Skip to main content
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

string
required
The type of confirmation to resend.Options:
  • signup - Email/phone confirmation after registration
  • recovery - Password recovery email
  • magiclink - Magic link for passwordless login
  • email_change - Email change confirmation
  • sms - SMS verification code
string
Email address to send confirmation to. Required for email-based confirmations.
string
Phone number to send SMS to. Required for SMS confirmations.
string
URL to redirect to after confirmation (for email links).
string
Captcha token for verification if captcha is enabled.

Response

string
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:
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:

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

  • 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
  • Implement proper rate limiting
  • Use captcha for high-risk scenarios
  • Log resend attempts for monitoring
  • Don’t reveal user existence in error messages
  • Use reputable email service providers
  • Implement proper SPF, DKIM, and DMARC records
  • Monitor delivery rates and bounce rates
  • Provide clear sender information
  • Use reliable SMS providers
  • Include clear sender identification
  • Respect opt-out requests
  • Monitor delivery rates and costs

Testing

Unit Tests

Troubleshooting

Common Issues

  1. Email not received
    • Check spam/junk folders
    • Verify email address is correct
    • Check email provider restrictions
  2. SMS not received
    • Verify phone number format
    • Check carrier restrictions
    • Ensure phone has signal
  3. Rate limit errors
    • Wait for rate limit window to reset
    • Implement proper retry logic
    • Consider using exponential backoff

User Signup

Create new user accounts

Verify User

Verify confirmation tokens

Send OTP

Send SMS one-time passwords

Password Recovery

Initiate password recovery