Build powerful apps with TXTMSG API v3
Connect to the TXTMSG Gateway in minutes with our v3 API. 99.99% uptime, sub-second delivery, and developer-friendly endpoints for bulk SMS, OTPs, and automated messaging.
import txtmsg_sms client = txtmsg_sms.Client("API_KEY") response = client.messages.create( to="+15551234567", body="Your code: 8821", priority="high" ) print(response.status) # 'delivered'
Developer Resources
Guides & Tutorials
Step-by-step tutorials for bulk SMS campaigns, OTP verification, and automated messaging workflows.
Libraries & SDKs
Official PHP SDK and ready-to-use cURL examples. More language SDKs (Node.js, Python, Ruby, Java, Go) coming soon.
API Reference
Comprehensive v3 API documentation covering all endpoints, authentication, request/response formats, and error codes.
Send your first message in minutes
Get started with 100 free credits and a demo sender ID. Choose your preferred method and follow along.
Get your API Credentials
Sign up for a free account and retrieve your API Key from the TXTMSG dashboard. Your credentials are ready in under a minute.
Choose your integration method
Use our official PHP SDK for a seamless integration or cURL for quick API testing. Both options come with ready-to-run code samples.
Send your first SMS
With 100 free credits and a demo sender ID pre-configured, send your first test message and see TXTMSG in action.
curl -X 'POST' \
'https://sms.txtmsg.lk/api/v3/sms/send' \
-H 'accept: application/json' \
-H 'Authorization: Bearer YourApiKey' \
-H 'Content-Type: application/json' \
-d '{
"recipient": "+947XXXXXXXX",
"sender_id": "YourName",
"type": "plain",
"message": "Hello from TXTMSG!"
}'
{
"sid": "SM92f02b34...",
"status": "queued",
"date_created": "2024-10-12T10:00:00Z"
}
Official SDKs & Libraries
Start integrating today with PHP and cURL. Additional language SDKs are in development.
Platform Plugins
Seamless integrations for your favorite platforms.
Wordpress
Send transactional SMS alerts and marketing campaigns natively through your WordPress site. The official TXTMSG plugin integrates seamlessly with your existing WordPress installation, supporting user registration OTPs, form notification alerts via popular form builders, and bulk subscriber messaging — all from your wp-admin dashboard.
Get the Plugin arrow_forwardWooCommerce
Automate SMS order confirmations, shipping updates, and abandoned cart recovery directly from your WooCommerce dashboard. Trigger personalized messages at every customer touchpoint — new order, payment received, shipped, delivered — all powered by your WooCommerce store events. No coding required, set up in minutes.
Get the Plugin arrow_forwardShopify
Connect your Shopify store to the TXTMSG global SMS network and reach customers worldwide with order confirmations, fulfillment alerts, and marketing broadcasts. The plugin hooks directly into Shopify's webhook system — order creation, fulfillment, cancellation — and supports multi-language templates for international stores. Setup takes less than 5 minutes.
Get the Plugin arrow_forwardReady to start building?
Start with 100 free credits and a demo sender ID — no credit card required. Build, test, and deploy in minutes.