Resend a new OTP code to a phone number#
This generates a new random 6-digit code and sends it via WhatsApp authentication template, invalidating any previous OTP for the same phone and purpose. Internally, this endpoint generates a new code and delegates to the Send OTP logic.Important | No 24-Hour Restrictions
Template messages can be sent at any time, regardless of the customer service window. Unlike simple text and media messages, approved templates are not restricted by Meta's 24-hour policy. They are the only message type that can be sent outside a customer service window, making them perfect for marketing campaigns, notifications, and re-engaging customers after extended periods of inactivity.
Required Scope#
Rate Limiting#
10 verification attempts per minute per phone number per tenant
Rate limit key: otp-resend:{tenant_id}:{phone}
Rate limit clears automatically on successful verification
Returns retry_after seconds when limit exceeded
Behavior#
Checks resend rate limit (3 per 5 min)
Generates a new random 6-digit OTP code
Delegates to the Send OTP logic (which handles template validation, contact lookup, WhatsApp sending, etc.)
Previous OTP for the same phone/purpose is automatically deleted