Send SMS
Send a single SMS message to one recipient.
Features:
- Automatic route optimization based on message type
- Support for scheduled delivery
- Unicode and emoji support
- Automatic message segmentation
- Delivery status tracking
Message Length:
- Standard (GSM-7): 160 characters per segment
- Unicode: 70 characters per segment
- Each additional segment reduces by 7 characters for concatenation header
Best Practices:
- Use OTP route for time-sensitive verification codes
- Include sender ID for brand recognition
- Keep messages concise to minimize segments
- Use templates for consistent messaging
- Implement idempotency for reliable retries
Authorizations
Use your API key as a Bearer token. Format: Authorization: Bearer sk_live_xxxxx
Headers
API version in YYYY-MM-DD format. Using the latest version ensures access to newest features.
^\d{4}-\d{2}-\d{2}$Unique key for request idempotency. Prevents duplicate messages if you retry the same request within 24 hours.
255Body
Recipient phone number in international format (no + or spaces)
^[1-9][0-9]{7,14}$"8801712345678"
Message content (max 1000 characters)
1 - 1000"Welcome to HIXBE! Your account has been activated successfully."
Sender ID (must be registered and approved). Defaults to account default sender.
11"HIXBE"
Schedule message for future delivery (ISO 8601 format, max 7 days ahead)
"2026-01-16T09:00:00Z"
Message route. OTP: <5s delivery, Transactional: <30s, Promotional: <2min
otp, transactional, promotional "transactional"
Optional reference ID for your internal tracking
100"order_12345"
Optional webhook URL for this specific message (overrides account webhook)
"https://yourapp.com/webhook/order-12345"
Response
Message accepted and queued for delivery
SMS message object with delivery status and metadata
Unique message identifier
"msg_abc123xyz"
Recipient phone number in international format
"8801712345678"
Sender ID (alphanumeric or numeric)
"HIXBE"
Message content
"Your OTP is 391202. Valid for 5 minutes."
Current message status
queued, sent, delivered, failed, expired "delivered"
Message creation timestamp
"2026-01-15T10:30:00Z"
Message route used for delivery
otp, transactional, promotional "transactional"
Number of SMS segments (1 segment = 160 chars)
x >= 11
Message cost in account currency
x >= 00.5
Scheduled delivery time (ISO 8601 format)
"2026-01-15T14:30:00Z"
Timestamp when message was sent to carrier
"2026-01-15T10:30:05Z"
Timestamp when message was delivered
"2026-01-15T10:30:15Z"
Error code if delivery failed
"number_unreachable"