Voice OTP Generation

Generate Voice OTP for phone verification.

https://frogapi.wigal.com.gh/api/v3/voice/otp/generate

Request Object

Field Type Description
number string The recipient's phone number.
expiry integer The time duration before the OTP expires (in minutes).
length integer The length of the OTP code.
messagetemplate string The message template with placeholders.
type string Type of OTP (NUMERIC/ALPHA/ALPHANUMERIC).
callerid string Caller ID for the voice call (optional). If null, A Generic phone number will be used. You can also purchase a dedicated callerid.
ttsvoicename string Text-to-Speech voice name (optional). Available options:
Male: "Charon", "Fenrir", "Orus", "Puck"
Female: "Achernar", "Aoede", "Erinome", "Gacrux", "Kore", "Leda", "Sulafat", "Zephyr"

Placeholders

Available placeholders: %EXPIRY%, %OTPCODE%, %SERVICE%, %LENGTH%, %TYPE%.

%EXPIRY% Expiry time in minutes
%OTPCODE% Generated OTP code
%SERVICE% Service/Application name
%LENGTH% OTP code length
%TYPE% OTP code type

Responses

Field Type Description
status string Returns "SUCCESS" when OTP is generated
message string Confirmation message
Field Type Description
status string Error status ("ERROR")
message string Error description ("Insufficient Balance")
Field Type Description
status string Error status code
message string Error description
Field Type Description
status string Error status code ("ERROR")
message string Error description ("Message template must contain %OTPCODE% placeholder")
Field Type Description
status string Server error status
message string Internal server error message