API
Last updated
Last updated
TextLink API enables developers to send SMS in a very straightforward and user-friendly way.
To be able to use TextLink for sending an SMS or user verification, you first have to , after that you are going to get 300 free messages, which you can use to test our API.
After you have registered an account, your API key will be available in the.
To send an SMS, you can send the following POST request with tool of your choice (like Postman), or use any of the programming languages that support REST API calls.
POST
https://textlinksms.com/api/send-sms
Content-Type*
The value should be "application/json"
Authorization*
phone_number*
String
Recipient phone number, with country prefix. E.g. +11234567890
text*
String
Message body
sim_card_id
Number
custom_id
String
The main perk of using our solution for verifying phone number is the removal of need to store the valid codes in your database, since we can verify codes for you.
To send a verification SMS, you can send the following POST request with tool of your choice (like Postman), or use any of the programming languages that support REST API calls.
POST
https://textlinksms.com/api/send-code
Content-Type*
The value should be "application/json"
Authorization*
phone_number*
String
Recipient phone number, with country prefix. E.g. +11234567890
service_name
String
Your name to be shown in the message
sim_card_id
Number
custom_id
String
After you have sent the one-time-password to your user, you can prompt him to enter the code in your website or application. After he has entered the code, you can use the /verify-code
endpoint, to check if it is valid, without having to store the code locally.
POST
https://textlinksms.com/api/verify-code
Content-Type*
The value should be "application/json"
Authorization*
phone_number*
String
The phone number that you would like to verify
code
String
The OTP code to verify
POST
https://textlinksms.com/api/update-contect-tag
Content-Type*
The value should be "application/json"
Authorization*
phone_number*
String
The phone number that you would like to update the tag for
tag
String
Tag to set for your contact
The value should be "Bearer API_KEY", where API_KEY is the API key that you have registered in the
(Optional) Id of the SIM card that you want to send the message from. Can be found in the , by clicking on the device having the SIM card you need
(Optional) Custom id that you want us to send to you in our
Besides , TextLink API can automate one-time-password (OTP) verification for phone numbers. The pricing for OTP verification is the same as sending a normal SMS, but we give OTP messages higher priority and faster delivery times.
The value should be "Bearer API_KEY", where API_KEY is the API key that you have registered on the
(Optional) Id of the SIM card that you want to send the message from. Can be found in the , by clicking on the device having the SIM card you need
(Optional) Custom id that you want us to send to you in our
The value should be "Bearer API_KEY", where API_KEY is the API key that you have registered on the
You can use TextLink API to update contact tags. Contact tags allows you to track status of communication with them (e.g. cold/warm), and can be shown in the Chat app. Besides the chat app, they are also received as a part of , and each change of tag triggers the .
The value should be "Bearer API_KEY", where API_KEY is the API key that you have registered on the