OTP Verification
Send OTP
Send an OTP (One-Time Password) to a user’s mobile number or email address.
Features:
- SMS delivery via your own sender name or Authentica’s default sender
- Email delivery via your own email or Authentica’s default email
- Multiple templates available
Note: Check Application settings on Authentica dashboard to set default values for OTP options.
POST
Authorizations
API key for authentication. Get Your API Key
Body
application/json
Delivery method for the OTP. Required if no default channel is configured.
Available options:
sms, whatsapp, email Example:
"sms"
Valid international phone number. Required if method is sms or whatsapp.
Pattern:
^\+[1-9]\d{1,14}$Example:
"+966551234567"
Valid email address. Required if method is email.
Example:
"user@example.com"
Template ID for the OTP message. Default is 1.
Example:
31