Send

https://otp.msgowl.com/send

POST to send an OTP message.

Request payload example

{
  "phone_number": "9609999999",
  "timestamp": "2020-03-03T08:32:50.231979481Z", /* optional: timestamp used to generate code */
  "code": "235311" /* optional: auto generated if not provided */
  "code_length": 8 /* optional: default to 6 */
}

Response example

{
  "id": 1,
  "phone_number": "9609999999",
  "timestamp": "2020-03-03T08:32:50.231979481Z"
}

Resend

https://otp.msgowl.com/resend

POST to resend an OTP message.

Request payload example

{
  "phone_number": "9609999999",
  "id": 8
}

Response example

{
  "id": 1,
  "phone_number": "9609999999",
  "timestamp": "2020-03-03T08:32:50.231979481Z"
}

Verify

https://otp.msgowl.com/verify

POST to verify an OTP code.

Request payload example

{
  "phone_number": "9609999999",
  "code": "352682"
}

Response example

{
  "id": 1,
  "phone_number": "9609999999",
  "status": true,
  "timestamp": "2020-03-03T08:32:50.231979481Z"
}

Was this helpful?