Overview
This endpoint allows you to request a one-time password (OTP) code for global use. GLOBAL means the system will randomize the channel to send or receive the message from or to the user. This endpoint generates a One-Time Password (OTP) with customizable validation settings.
Request Parameters
Length of the OTP code. Maximum value is 6.
Whether to include letters in the OTP code.
Whether to include numbers in the OTP code.
Whether to use uppercase letters for the OTP code.
Application name that will be displayed to the user.
Expiration time in seconds. For example, 1800 seconds (30 minutes).
Response
Indicates whether the request was successful.
A message describing the result of the operation.
The OTP code sent to the phone.
The time when the code expires.
The timestamp when it was triggered.
Error Codes
Authorization Exception - Occurs when the request is not properly authorized.
Validation Exception - Occurs when the request parameters fail validation.
Bearer authentication header of the form Bearer <token> , where <token> is your auth token.
Using letter for Otp Code.
Using number for Otp Code.
Using uppercase for Otp Code.
Expire time in second ( e.g 30 Minute )
The response is of type object .