This page explains how to send an SMS with a one-time password (OTP) using Telesign SMS Verify directly from our docs site, without writing any code.
Ensure that you have the following:
- Authentication credentials: Your Customer ID and API Key. If you need help finding these items, go to the support article How do I find my Customer ID and API Key.
Using your account credentials in the API Explorer to make a request results in your account being charged for the transaction.
You are subject to all compliance rules as appropriate for your transaction.
Open the reference page for the POST /v1/verify/sms endpoint.
Under the AUTHENTICATION header in the right panel of the page, put your Customer ID in the Customer ID field and your API key in the API Key field.
Go to the middle panel of the page, under FORM DATA. In the phone_number field enter the phone number you want to send the OTP to.
In the verify_code field, enter the verification code you want to send or leave it blank if you want TeleSign to generate the code.
In the template field you can override the default text to be sent with the OTP. The
$$CODE$$variable must be included in this text to insert the OTP.
Select Try It! in the right panel to see your transaction. You will be charged the standard rate for your transaction.
You can also select the copy icon to the left of Try It! to copy the code snippet displayed. To change the programming language of the snippet, select one of the options under the LANGUAGE header in the right sidebar.
Updated about 2 months ago