import { Metadata } from 'next' import { Card, CardContent } from '@/components/ui/card' import Link from 'next/link' import { ShieldCheck, ShoppingBag, Calendar, AlertTriangle, Megaphone, HeadsetIcon, ExternalLink, ArrowRight, } from 'lucide-react' export const metadata: Metadata = { title: 'Use Cases | TextBee', description: 'Explore various use cases and applications for TextBee SMS Gateway Platform', } export default function UseCasesPage() { return ( <>
Discover how businesses and developers leverage TextBee SMS Gateway for a wide variety of applications. Get inspired by these common use cases and implementations.
Enhance your application's security by implementing SMS-based two-factor authentication. Add an extra layer of verification to protect user accounts.
{`// Send 2FA code
const verificationCode = generateRandomCode();
await axios.post(\`https://api.textbee.dev/api/v1/gateway/devices/\${DEVICE_ID}/send-sms\`, {
recipients: [ user.phoneNumber ],
message: \`Your verification code is: \${verificationCode}\`
}, {
headers: { 'x-api-key': API_KEY }
});`}
Keep customers informed about their orders with real-time SMS updates. Improve customer experience with timely notifications throughout the order lifecycle.
Send details after purchase
Notify when order ships
Alert when delivered
Inform of modifications
{`// Send order confirmation
await axios.post(\`https://api.textbee.dev/api/v1/gateway/devices/\${DEVICE_ID}/send-sms\`, {
recipients: [ customer.phoneNumber ],
message: \`Order #\${orderNumber} confirmed! Expected delivery: \${deliveryDate}. Track at: \${trackingUrl}\`
}, {
headers: { 'x-api-key': API_KEY }
});`}
Reduce no-shows by sending automated appointment reminders to clients. Perfect for medical practices, salons, consultants, and service businesses.
{`// Schedule reminder job
scheduler.scheduleJob(reminderTime, async () => {
await axios.post(\`https://api.textbee.dev/api/v1/gateway/devices/\${DEVICE_ID}/send-sms\`, {
recipients: [ appointment.phoneNumber ],
message: \`Reminder: Your appointment is tomorrow at \${appointment.time}. Reply CONFIRM to confirm or RESCHEDULE to change.\`
}, {
headers: { 'x-api-key': API_KEY }
});
});`}
Send critical notifications and emergency alerts to large groups of people quickly. Perfect for natural disasters, emergencies, and critical business communications.
{`// Send bulk emergency alert
const recipients = await getUserPhoneNumbers(affectedRegion);
await axios.post(\`https://api.textbee.dev/api/v1/gateway/devices/\${DEVICE_ID}/send-bulk-sms\`, {
messageTemplate: \`ALERT: \${emergencyMessage}. Stay safe.\`,
messages: [{
recipients: recipients,
}]
}, {
headers: { 'x-api-key': API_KEY }
});`}
Run targeted SMS marketing campaigns to engage customers and drive sales. Perfect for promotions, event announcements, and customer surveys.
Note: Always ensure you have proper consent and comply with SMS marketing regulations in your region.
Provide customer support through two-way SMS communication. Perfect for handling customer inquiries and feedback.
{`// Check for new messages
const messages = await axios.get(
\`https://api.textbee.dev/api/v1/gateway/devices/\${DEVICE_ID}/get-received-sms\`,
{ headers: { 'x-api-key': API_KEY } }
);
// Process and respond to messages
for (const msg of messages.data) {
const response = await generateSupportResponse(msg.message);
await sendReply(msg.sender, response);
}`}
TextBee can be integrated with various platforms and services. Our REST API allows you to create custom integrations for almost any application, automating SMS sending and receiving based on triggers in your existing systems.
CRM Systems
Connect SMS messaging with customer records
Booking Software
Automate appointment confirmations
E-commerce
Send order & shipping updates
Automation Tools
Integrate with Zapier, IFTTT, etc.
Configure webhooks to receive notifications when SMS events occur. Perfect for event-driven architectures and real-time applications.
Our comprehensive API documentation provides all the details you need to integrate TextBee with your applications and services.
View API DocumentationFollow our step-by-step quickstart guide to set up TextBee and start sending SMS messages in minutes. Whether you're implementing 2FA, appointment reminders, or complex integrations, we've got you covered.