Secure OTP generation and validation
WhatsApp AUTHENTICATION template delivery
Automatic contact creation
Attempt tracking and brute-force protection
Non-destructive status checks
Template discovery support
1.
GET /auth/templates
Discover available approved AUTHENTICATION templates.
2.
POST /auth/send-otp
Generate and send an OTP code via WhatsApp.
3.
POST /auth/verify
Validate the submitted OTP code against the stored record.
4.
POST /auth/resend
Generate and send a new OTP code, invalidating any previous active code.
5.
POST /auth/status (Optional)
Check OTP status, expiry time, and remaining attempts without consuming the code.
Only one active OTP per phone number and purpose
Expired codes are automatically rejected
Previous OTPs are invalidated on resend
Successful verification clears attempt counters
Brute-force protection via configurable attempt limits