This guide walks you through integrating an API for phone number verification within your flow. You’ll set up two APIs—one to send the OTP and another to verify it. Follow these steps carefully.Step 1: Create the API for Sending OTP
Navigate to Developer Section
Go to your platform’s Developer Section.
Add a New API
Click on the Add API button as shown in the screenshot
Enter an API Name (e.g., “Send OTP”).
Configure API Details
Choose the appropriate Method from the dropdown that is POST
In the API URL field, enter the API endpoint provided for sending OTP.
API : https://api.v7. Convertalk.com/integrations/custom-feature/send-otp-sms
Set Headers
Go to the Headers section.
Add the required authorization fields:
Authorization Key: Enter the authorization key provided by the service.
Value: Your token or key.
Define Request Body Parameters
In the Body section, enter the parameters as shown in the screenshot:
accountSID: Obtain from Twilio.
authToken: Obtain from Twilio.
fromNumber: Your Twilio phone number.
toNumber: Map this to the user’s phone number attribute.
Save API
Click Save to store the API configuration.
Map Phone Number Attribute
In the Attributes section, select the user’s phone number attribute.
Save Custom Attribute
In the Manage API Response section, choose Save to Custom Attribute.
If not already created, create a custom attribute to store the verification status or OTP code.
Step 2: Create the API for OTP Verification
Add Another API for OTP Verification
Click Add API again.
Name this API (e.g., “Verify OTP”).
Set Method and URL
Choose the appropriate Method (POST).
Enter the API URL for verifying OTP.
API : https://api.v7. Convertalk.com/integrations/custom-feature/verify-user-otp