Welcome to the Text.lk API documentation – Send Flash SMS guide. This section explains how to send Flash SMS (Class 0 messages) using the Text.lk platform.
Flash SMS messages appear directly on the recipient’s screen instead of being stored in the inbox, making them ideal for urgent alerts, OTPs, and high-priority notifications.
What is a Flash SMS? #
A Flash SMS (or Class 0 SMS) is a text message that appears immediately on a recipient’s screen, bypassing the inbox, and usually disappears once dismissed, often without being saved. It grabs instant attention, making it ideal for emergencies, urgent alerts, and one-time passwords (OTPs).
👉 See also: What is a Flash SMS
A Flash SMS is a special type of message that:
- Instantly pops up on the recipient’s device
- Is not saved in the inbox (in most devices)
- Has higher visibility than normal SMS
- Is commonly used for:
- OTP verification
- Security alerts
- Urgent notifications
⚠️ Important: Downsides of Flash SMS (Class 0) #
Before using Flash SMS, consider the following limitations and risks:
- Not supported consistently across all devices
Some smartphones may still store the message or not display it as a true flash message.- Can feel annoying to users
Messages appear instantly on screen, which may annoy users if overused.- No message history (in most cases)
Since messages are not saved, users cannot refer back to them later.- User may accidentally dismiss the message
Once closed, the content may be lost permanently.- Not ideal for long or detailed content
Best suited only for short, critical messages like OTPs.- Potential compliance concerns
Some regions or carriers may have restrictions on unsolicited flash messages.
How to Send Flash SMS #
To send a Flash SMS using Text.lk API, you simply need to include the following parameter in your request:
"is_flash": trueAuthentication Methods #
Text.lk supports two methods for sending Flash SMS:
OAuth 2.0 (Bearer Token) – Recommended #
This is the secure and production-ready method.
Endpoint #
https://app.text.lk/api/v3/sms/sendExample Request (Flash SMS) #
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": "Your OTP is 123456",
"is_flash": true
}'Key Notes #
- Uses the POST method
- Data sent as JSON
- Secure (token not exposed in URL)
- Recommended for:
- Web apps
- Mobile apps
- Backend systems
- Production environments
HTTP GET Method (API Token in URL) #
This is a simple and quick integration method.
👉 See also: How to get Text.lk API Key / API Token
Endpoint #
https://app.text.lk/api/http/sms/sendExample Request (Flash SMS) #
https://app.text.lk/api/http/sms/send?recipient=94710000000&sender_id=TextLKDemo&type=plain&message=Your%20OTP%20is%20123456&is_flash=true&api_token=YOUR_API_TOKENKey Notes #
- Uses the GET method
- Parameters passed via URL
- Easy to test in a browser
- Recommended for:
- Legacy systems
- Quick testing
- Systems without header support
When to Use Flash SMS #
Use Flash SMS when:
- You need instant user attention
- Sending One-Time Passwords (OTP)
- Delivering critical alerts or warnings
- Ensuring the message is seen immediately
Important Notes #
- Not all devices handle Flash SMS identically (some may still store the message)
- Overusing Flash SMS can reduce effectiveness
- Always ensure compliance with user consent and messaging regulations
Best Practice Recommendation #
For secure and scalable applications:
✔ Use OAuth 2.0 (Bearer Token)
✔ Send Flash SMS if only needed
✔ Avoid exposing API tokens in URLs
✔ Always use HTTPS
Summary #
Sending Flash SMS via Text.lk is simple. Just add: “is_flash”: true to your existing SMS API request, and your message will be delivered as a high-priority flash message.
👉 See also: How to send SMS via Text.lk API
👉 See also: API authentication methods
Frequently Asked Questions #
Flash SMS #
What is Flash SMS?
Flash SMS (Class 0 SMS) is a type of message that appears instantly on the recipient’s screen instead of going to the inbox.
It is designed for urgent, high-visibility communication and is usually not stored on the device by default.
How is Flash SMS different from normal SMS?
- Flash SMS appears instantly as a popup
- Normal SMS goes to the inbox
- Flash SMS is usually not saved
- Normal SMS is stored and can be revisited
👉 Flash SMS = visibility
👉 Normal SMS = persistenceWhen should I use Flash SMS?
Use Flash SMS when:
- Sending OTP codes
- Delivering security alerts
- Notifying urgent updates
- Sharing time-sensitive information
Avoid using it for marketing or long messages.
Is Flash SMS supported on all devices?
Not 100%.
- Most GSM devices support it
- Some smartphones may:
- Save it like a normal SMS
- Not display it as a true popup
👉 Behavior may vary by device and OS.
Is Flash SMS secure?
Partially.
✔ Good for quick delivery
❌ But has risks:
- Visible on lock screen
- Can be seen by others nearby
- No message history
👉 Use carefully for sensitive data.
Can users save or view Flash SMS later?
Usually no.
- Once dismissed, the message is gone
- Some devices may still store it (rare cases)
Can Flash SMS be missed?
Very unlikely. But possible.
- It appears instantly
- But if dismissed accidentally, it may be lost permanently
Does Flash SMS cost more than normal SMS?
In most cases, no. Pricing is typically the same as standard SMS in Text.lk
How do I send Flash SMS using Text.lk?
You can send Flash SMS in 3 ways:
- Send Flash SMS using Quick Send
- Send Flash SMS using Bulk SMS Campaign Builder
- Send Flash SMS using Text.lk API
- Learn how to send Flash SMS.
Can I send Flash SMS from the Text.lk dashboard?
Yes.
Method 1: Use Quick Send SMS:
- Enter recipient number
- Type your message
- Enable Flash SMS option
- Click send
👉 Best for manual sending and testing.
Method 2: Use the Bulk SMS Campaign Builder:
- Upload contact list
- Create your message
- Enable Flash SMS mode
- Send campaign
👉 Use responsibly to avoid user annoyance in Campaign Builder.
Method 3: Use Text.lk API:
👉 Read docuemntion for learn How to send Flash SMS via Text.lk API
How do I send Flash SMS via API?
Simply add this parameter:
"is_flash": true👉 Read docuemntion for learn How to send Flash SMS via Text.lk API
Do I need a different API endpoint for Flash SMS?
No.
- Use the same SMS endpoint
- Just add
"is_flash": true
Is OAuth or HTTP method better for Flash SMS?
Use OAuth 2.0 (Bearer Token).
- ✔ More secure
- ✔ Recommended for production
Use HTTP GET only for:
- Testing
- Legacy systems
Is Flash SMS good for marketing?
No.
- It can feel intrusive
- May annoy users
- Not suitable for promotions
👉 Use only for critical communication.
What are the biggest advantages of Flash SMS?
- Instant visibility
- Very high open rate
- Ideal for urgent alerts
- No storage on device
What are the main disadvantages of Flash SMS?
- Privacy concerns (lock screen visibility)
- No message history
- Can be intrusive
- Device compatibility varies