TextBee Use Cases

Discover how businesses and developers leverage TextBee SMS Gateway for a wide variety of applications. Get inspired by these common use cases and implementations.

Two-factor Authentication (2FA)

Enhance your application's security by implementing SMS-based two-factor authentication. Add an extra layer of verification to protect user accounts.

Implementation Steps:

  1. Generate a random verification code for the user
  2. Send the code via SMS using TextBee API
  3. Verify the code entered by the user
JavaScriptExample:
// 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 }
});

Order Notifications

Keep customers informed about their orders with real-time SMS updates. Improve customer experience with timely notifications throughout the order lifecycle.

Order Confirmation

Send details after purchase

Shipping Updates

Notify when order ships

Delivery Status

Alert when delivered

Order Changes

Inform of modifications

JavaScriptExample:
// 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 }
});

Appointment Reminders

Reduce no-shows by sending automated appointment reminders to clients. Perfect for medical practices, salons, consultants, and service businesses.

Key Features:

  • Scheduled reminders (24h, 1h before appointments)
  • Interactive responses (reply to reschedule/cancel)
  • Calendar integration
JavaScriptExample:
// 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 }
  });
});

Emergency Alerts

Send critical notifications and emergency alerts to large groups of people quickly. Perfect for natural disasters, emergencies, and critical business communications.

Applications:

  • Weather emergencies
  • Campus/school alerts
  • IT system outages
  • Critical business communications
JavaScriptExample:
// 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 }
});

Marketing Campaigns

Run targeted SMS marketing campaigns to engage customers and drive sales. Perfect for promotions, event announcements, and customer surveys.

Campaign Types:

  • Promotional offers and discounts
  • New product announcements
  • Event invitations
  • Customer surveys

Note: Always ensure you have proper consent and comply with SMS marketing regulations in your region.

Customer Support

Provide customer support through two-way SMS communication. Perfect for handling customer inquiries and feedback.

Implementation Steps:

  1. Configure webhook for incoming SMS
  2. Process and route messages to support agents
  3. Send automated responses for common queries
  4. Track conversation history
JavaScriptExample:
// 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);
}

Custom Integrations

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.

Webhooks Support

Configure webhooks to receive notifications when SMS events occur. Perfect for event-driven architectures and real-time applications.

POST https://your-server.com/webhook?event=sms_received&sender=+1234567890

API Documentation

Our comprehensive API documentation provides all the details you need to integrate TextBee with your applications and services.

View API Documentation

Ready to implement these use cases?

Follow 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.