Node.js

Send the verification request

Start the verification process by using the Verify API request endpoint to generate a verification code and send it to the user.

Use the Node Server SDK for this. First, instantiate it after the lines of code that read your environment variables from .env:

Then, create the verification request within the /verify route handler:

By default, the first verification attempt is sent by SMS. If the user fails to respond within a specified time period then the API makes a second and, if necessary, third attempt to deliver the PIN code using a voice call. You can learn more about the available workflows and customization options in our guide.