Skip to main content
POST
/
v1
/
messaging
/
otp
/
request
Send OTP
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
  }
}

Body

application/json
dest
string
required
Pattern: ^\+[1-9]\d{7,14}$
src
string
required
Required string length: 3 - 20
purpose
enum<string>
required
Available options:
LOGIN,
PASSWORD_RESET,
TRANSACTION,
DEVICE_VERIFICATION,
EMAIL_VERIFICATION,
ACCOUNT_RECOVERY,
KYC_VERIFICATION
messageTemplate
string
Maximum string length: 160

Response

OK

success
boolean
message
string
data
object