TXT MSG .lk
FAST • RELIABLE • EVERYTIME
terminal API V3 NOW LIVE

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.

request_otp.py
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

Send your first message in minutes

Get started with 100 free credits and a demo sender ID. Choose your preferred method and follow along.

1

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.

2

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.

3

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!"
}'
Output Preview
200 OK
{
  "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.

View Documentation → arrow_forward
extension Plugins & Integrations

Platform Plugins

Seamless integrations for your favorite platforms.

Plugin

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_forward
Plugin

WooCommerce

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_forward
Plugin

Shopify

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_forward

Ready to start building?

Start with 100 free credits and a demo sender ID — no credit card required. Build, test, and deploy in minutes.