cURL
curl --request POST \ --url http://localhost:2222/v1/messaging/otp/request \ --header 'Content-Type: application/json' \ --data ' { "dest": "<string>", "src": "<string>", "purpose": "LOGIN", "messageTemplate": "<string>" } '
{ "success": true, "message": "<string>", "data": { "sessionId": "<string>", "expiresInSeconds": 123, "attemptsLeft": 123 } }
Generates a unique one-time password and delivers it to the specified destination number.
^\+[1-9]\d{7,14}$
3 - 20
LOGIN
PASSWORD_RESET
TRANSACTION
DEVICE_VERIFICATION
EMAIL_VERIFICATION
ACCOUNT_RECOVERY
KYC_VERIFICATION
160
OK
Show child attributes