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
The contact ID to send the OTP code to. Format:
xxx@c.us
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.
Error Codes
Authorization Exception - Occurs when the request is not properly authorized.
Validation Exception - Occurs when the request parameters fail validation.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Contact ID .
Example:
"xxx@c.us"
Length OTP Code.
Required range:
x <= 6
Example:
4
Using letter for Otp Code.
Example:
false
Using number for Otp Code.
Example:
true
Using uppercase for Otp Code.
Example:
false
Application Name.
Example:
"Your Company Name"
Expire time in second ( e.g 30 Minute )
Example:
1800
Response
The response is of type object
.