Skip to main content

SMS Services

Send SMS messages to users worldwide with reliable delivery, low latency, and support for 160+ countries.

What are SMS Services?

Antryk SMS Services provides a managed SMS infrastructure for sending text messages (OTP codes, notifications, alerts) with global coverage and high deliverability.

Key Features

  • Global Coverage: Send to 160+ countries
  • Low Latency: Fast message delivery
  • High Deliverability: Optimized delivery rates
  • Delivery Tracking: Track message status
  • Webhooks: Real-time delivery notifications
  • Alphanumeric Sender IDs: Custom sender names
  • Unicode Support: Send in multiple languages

Use Cases

  • OTP Verification: Two-factor authentication codes
  • Account Alerts: Login notifications, security alerts
  • Appointments: Reminders and confirmations
  • Marketing: Promotional messages and offers
  • Alerts: Critical system notifications
  • Notifications: Order updates, shipping notifications

Getting Started

  1. Create SMS Service from your dashboard
  2. Add credits to your account
  3. Set up sender ID (optional)
  4. Send test SMS to verify setup
  5. Start sending SMS from your application

Sending SMS

API

const response = await fetch('https://api.antryk.com/v1/sms/send', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    to: '+1234567890',
    message: 'Your verification code is 123456',
    from: 'Antryk'
  })
});

Node.js SDK

const antryk = require('@antryk/sms');

await antryk.sms.send({
  to: '+1234567890',
  message: 'Your verification code is 123456',
  from: 'Antryk'
});

Python SDK

import antryk

antryk.sms.send(
    to='+1234567890',
    message='Your verification code is 123456',
    from_number='Antryk'
)

Sender IDs

Configure custom sender IDs:
  • Alphanumeric: Up to 11 characters (e.g., “AntrykApp”)
  • Numeric: Phone number format
  • Automatic: System-assigned sender ID

Delivery Status

Track message delivery:
const status = await antryk.sms.getStatus(messageId);

// Status values:
// - queued: Message queued for sending
// - sent: Message sent to carrier
// - delivered: Message delivered to recipient
// - failed: Message failed to deliver
// - undelivered: Message undelivered

Webhooks

Receive real-time delivery notifications:
app.post('/webhook/sms', (req, res) => {
  const { event, message_id, status, phone_number } = req.body;
  
  if (event === 'delivered') {
    console.log(`SMS to ${phone_number} delivered`);
  } else if (event === 'failed') {
    console.log(`SMS to ${phone_number} failed`);
  }
  
  res.status(200).send('OK');
});

International Support

Send SMS to 160+ countries:
  • United States: +1
  • United Kingdom: +44
  • Canada: +1
  • India: +91
  • Australia: +61
  • And 155+ more countries

Pricing

SMS Services are billed by:
  • Per Message: Pay per SMS sent
  • Regional Rates: Different rates by country
  • Volume Discounts: Reduced rates for high volume
  • No Setup Fees: Free setup and API access

Message Limits

  • Message Length: Up to 160 characters (single SMS)
  • Concatenated SMS: Automatic concatenation for longer messages
  • Rate Limits: Configurable sending rate limits
  • Opt-out: Handle STOP keywords automatically

Best Practices

  • Use Short Codes: For high-volume sending
  • Respect Opt-outs: Honor unsubscribe requests
  • Timing: Send during business hours
  • Content: Keep messages clear and concise
  • Monitoring: Track delivery rates and errors

Get Started

Start sending SMS