user

OTP

One time password generation

Generate Free

POSThttps://api.m3o.com/v1/otp/Generate

Generate an OTP (one time pass) code

Request payload

expiry number

expiration in seconds (default: 60)

id string

unique id, email or user to generate an OTP for

size number

number of characters (default: 6)

Response

code string

one time pass code

Validate Free

POSThttps://api.m3o.com/v1/otp/Validate

Validate the OTP code

Request payload

code string

one time pass code to validate

id string

unique id, email or user for which the code was generated

Response

success boolean

returns true if the code is valid for the ID