This guide explains how to send SMS messages automatically using Zapier and Text.lk SMS Gateway. By using Webhooks by Zapier, you can send SMS messages whenever a trigger occurs, such as a new Google Form submission, WooCommerce order, Shopify order, Airtable record, or any other supported application.
Step 1 – Log in to Zapier #
- Visit https://zapier.com
- Sign in to your Zapier account.
- Click Create → Zap.
Step 2 – Choose a Trigger #
Select the application that should trigger the SMS.
Examples:
- Google Forms – New Response
- Google Sheets – New Spreadsheet Row
- WooCommerce – New Order
- Shopify – New Order
- HubSpot – New Contact
- Airtable – New Record
Complete the trigger setup and test it before continuing.
Step 3 – Add Webhooks by Zapier #
- Click + Add Action
- Search for Webhooks by Zapier
- Select POST
Step 4 – Configure the Request #
URL #
https://app.text.lk/api/v3/sms/send
Payload Type #
Select:
JSON
Request Body #
Add the following fields:
| Field | Value |
|---|---|
| recipient | Phone Number (from your trigger) |
| sender_id | Your approved Sender ID |
| type | plain |
| message | Your SMS message |
Example:
| Field | Value |
|---|---|
| recipient | 94710000000 |
| sender_id | TextLKDemo |
| type | plain |
| message | This is a test message |
Step 5 – Configure Headers #
Add the following headers.
| Header | Value |
|---|---|
| Authorization | Bearer YOUR_API_TOKEN |
| Content-Type | application/json |
| Accept | application/json |
Replace YOUR_API_TOKEN with your Text.lk API Token.
Example JSON Body #
{
"recipient": "94710000000",
"sender_id": "TextLKDemo",
"type": "plain",
"message": "This is a test message"
}
Equivalent cURL Request #
curl -X POST https://app.text.lk/api/v3/sms/send \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"recipient": "94710000000",
"sender_id": "TextLKDemo",
"type": "plain",
"message": "This is a test message"
}'
Step 6 – Test the Action #
Click Test Step.
If the configuration is correct, Zapier will receive a successful response and the SMS will be delivered to the recipient.
Step 7 – Publish Your Zap #
Once the test is successful:
- Click Publish
- Turn your Zap ON
Your SMS will now be sent automatically whenever the selected trigger occurs.
Notes #
- Phone numbers must be in international format (e.g., 94710000000).
- Do not include a leading + or 0.
- Use an approved Sender ID available in your Text.lk account.
- Keep your API Token secure and never share it publicly.
- The Authorization header must be in the format:
Bearer YOUR_API_TOKEN
Sample Use Cases #
- OTP Verification
- Order Confirmation
- Appointment Reminders
- Payment Notifications
- Delivery Updates
- Google Form Notifications
- CRM Alerts
- School & University Notifications
- Business Notifications
Need Help? #
If you need assistance configuring Zapier with Text.lk, please send our support team:
- A screenshot of your Zap configuration
- The Webhook request settings
- Any error message returned by Zapier
Contact Us – 077 644 0080
Emai Us – [email protected]