SMS API integration with smsroute takes minutes, not days. Our REST-first API
exposes 4 endpoints — send message, get delivery status, list message history, and check pricing — each
documented with request and response examples. You can be live with curl and an API key, or pick
from official SDKs for Python, Node.js, Go, PHP, Ruby, and Rust. If you are migrating from Twilio, Vonage, or
MessageBird, the compatibility shims and concept-mapping guides below let you swap base URLs instead of
rewriting your entire integration.
How to Send Your First SMS in 60 Seconds
You can send your first message with curl and an API key — no SDK install needed. smsroute's SMS
API accepts HTTP POST requests at /sms/send. Authenticate with your API key via the
X-API-Key header, then specify the recipient, message text, and sender ID.
curl -X POST https://api.smsroute.cc/sms/send \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"to": "+1234567890",
"text": "Hello from smsroute!",
"from": "MyApp"
}'
The API validates your request, routes through the optimal carrier for the destination country, and returns a message ID you can use to track delivery status. Most messages reach their destination in under 5 seconds.
For production workloads, use one of the official SDKs below — they handle authentication, retry logic with exponential backoff, and typed response parsing.
SMS API Quickstarts by Language
smsroute publishes official SDKs for six languages. Each installs with a single command and includes full type definitions, retry-with-backoff, and async support where appropriate.
Python LIVE
pip install smsroute. Full async via smsroute.AsyncClient, retry-with-backoff
built in, typed response models, pytest fixtures. Python quickstart →
Node.js coming soon
npm i @smsroute/sdk. TypeScript-native, Promise-based, fetch under the hood. ESM + CJS
supported. Node.js guide →
Go coming soon
go get github.com/smsroute/smsroute-go. Context-aware, zero-dependency beyond stdlib,
idiomatic error returns. Batch-send helper for fan-out workloads.
PHP coming soon
composer require smsroute/sdk. Guzzle under the hood, PSR-18 compatible, Laravel
service-provider package available.
Ruby coming soon
gem install smsroute. Rails integration helper gem, ActiveJob-friendly send adapter,
delivery-receipt webhook controller.
Rust coming soon
cargo add smsroute. Tokio-native async, reqwest under the hood, typed via
serde, zero-copy response parsing.
How to Migrate from Twilio, Vonage, or MessageBird
Migrating from another provider takes under an hour. smsroute provides compatibility shims and concept-mapping guides so you can swap base URLs without rewriting your integration logic. Each migration guide covers field-name mapping, authentication differences, and webhook format translation.
From Twilio LIVE
Concept mapping: Messaging Service → sender-ID config, From number → sender header, Status Callback → webhook URL. Includes a compatibility shim and a cost-delta worksheet for your top destinations. Twilio migration guide →
From Vonage coming soon
Vonage Messages API → smsroute mapping, OAuth vs API-key auth differences, per-country route comparison, DLR webhook format translation.
From MessageBird coming soon
MessageBird Conversations and SMS API mapping, flow-engine replacement patterns for programmatic-only workloads, webhook migration steps.
Webhooks and Delivery Receipts
Every SMS you send generates a delivery receipt that fires to your configured webhook URL within seconds of the
carrier confirming status. Each payload includes message_id, status
(delivered, failed, expired, rejected), to,
price, segments, and an ISO 8601 timestamp.
Undelivered webhooks are retried with exponential backoff for 24 hours. HMAC signatures in the
X-Smsroute-Signature header let you verify authenticity server-side without an IP allowlist.
SMS Gateway Coverage and Pricing
smsroute routes messages through direct carrier interconnects in major markets and premium aggregator partnerships everywhere else. Delivery prices start at $0.004 per message for Tier 1 destinations including the US, UK, Germany, and France. There are no monthly minimums or hidden fees — you pay only for what you send, with a $5 minimum top-up.
| Region | Price per SMS | Typical Delivery Time | Carrier Type |
|---|---|---|---|
| United States | From $0.004 | < 3s | Direct interconnect |
| United Kingdom | From $0.004 | < 3s | Direct interconnect |
| Germany | From $0.005 | < 4s | Direct interconnect |
| India | From $0.008 | < 5s | Premium aggregator |
| Brazil | From $0.009 | < 5s | Premium aggregator |
| Rest of world (144 countries) | Varies by destination | < 10s | Mixed |
For the full per-country pricing grid including all 149 covered destinations, see the pricing page. Volume discounts are available for high-throughput senders — contact support for custom rates.
API Performance and Reliability
smsroute's API layer runs on multi-region infrastructure with 99.95% uptime. Typical latency benchmarks across key markets:
| Endpoint | p50 Latency | p99 Latency |
|---|---|---|
| POST /sms/send | 180ms | 520ms |
| GET /sms/status | 45ms | 210ms |
| GET /pricing | 35ms | 180ms |
Messages are delivered through redundant carrier routes with automatic failover. If the primary carrier in a destination is unreachable, traffic shifts to a backup route within seconds, maintaining delivery reliability for critical use cases like OTP verification and transactional alerts.
Frequently Asked Questions About SMS API Integration
How long does it take to integrate the SMS API?
Most developers send their first message within 60 seconds of signing up. A full production integration —
including webhook handling, error logic, and testing across multiple destinations — typically takes 2 to 4
hours. The REST API is designed so you can start with curl and incrementally add an SDK as
your needs grow.
Does the SMS API work with existing Twilio code?
Yes. The Twilio migration guide includes a compatibility shim that lets you point existing Twilio client code at smsroute by changing the base URL. The handful of field-name differences — Messaging Service → sender ID config, Status Callback → webhook URL — are documented with before-and-after examples.
What programming languages does the SMS API support?
smsroute publishes official SDKs for Python, Node.js, Go, PHP, Ruby, and Rust. Since the API is HTTP-based, you can use any language that supports HTTP requests — curl, fetch, requests, httparty, or any HTTP client work without an SDK.
How much does bulk SMS cost per message?
Prices start at $0.004 per message for Tier 1 countries (US, UK, Germany, France). Rates vary by destination and volume. There are no monthly fees or minimum commitments beyond a $5 initial top-up. See the full pricing grid for per-country rates.
What countries can I send SMS to using your SMS gateway?
smsroute delivers to 149 countries including the US, UK, India, Germany, France, Brazil, Australia, and Japan. Coverage includes direct carrier interconnects in major markets and premium routing everywhere else. Browse the country directory for complete coverage details.
Related Resources
- SMS pricing by country — per-message rates for all 149 destinations.
- REST API reference — complete endpoint documentation with request and response schemas.
- SMS for OTP verification — use case guide with code examples and best practices.
- Country coverage directory — check delivery capability, latency, and pricing per country.
- Articles and research — SMS delivery benchmarks, protocol guides, and industry analysis.