This endpoint allows you to generate and send the Two Factor Authentication code to the end user. You need to provide the channel from which the code will be sent and phone number or email adrees from who will recieve the code. You need to provide the code generator id you want to use, the channel where you want the code to be sent. If you want to send the code via SMS channel, provide the phone number to whom the 2FA message will be sent, otherwise provide the email address who will receive the 2FA message if you send the code via Email channel.Once the code has been generated and sent to the recipient, you will be provided with a request_id and the user will be provided with a security code that he requested.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
After setting up the code length, expiration time, delivery channel where the code will be sent, shortcode, and message, you can start generating and sending via SMS, Email, or WhatsApp the security code to the provided destination address.
To generate a security code, you only need to specify the code generator ID (“data.id”) you want to use, the channel where you want the code to be sent, and the phone number or email address to whom the 2FA message will be sent.
Therefore, this endpoint allows you to generate and send the Two Factor Authentication code to the end user.
