Long codes, short codes, toll-free numbers, and alphanumeric sender IDs: provisioned, registered, and routed through one endpoint. The sender you send from decides throughput, cost, and which compliance regime applies.
import { BirdClient } from "@messagebird/sdk";
const bird = new BirdClient({ apiKey: process.env.BIRD_API_KEY! });
const { data, error } = await bird.sms.send({
from: "Bird",
to: "+31612345678",
text: "Your order #4821 has shipped. Track it: bird.ly/t/4821x",
category: "transactional",
}).safe();
if (error) throw error;
console.log(data.id);
// → "sms_01m11jw130e7svjzv70kgqr38w"
चार sender टाइप, एक API।
Numbers Bird SMS API की बुनियाद हैं। availability सर्च करें, एक नंबर खरीदें, और उसी client से inbound को webhook पर रूट करें जिससे आप पहले से भेजते हैं। आप कौन-सा टाइप चुनते हैं यह वॉल्यूम, भूगोल, और आप कितना registration संभाल सकते हैं इस पर निर्भर करता है।
मुझे कौन-सा sender इस्तेमाल करना चाहिए?
Throughput, पहुँच, और registration की मेहनत sender टाइप के हिसाब से अलग होती है। ज़्यादातर US application ट्रैफ़िक 10DLC long code पर शुरू होता है; हाई-वॉल्यूम one-to-many प्रोग्राम short code पर शिफ़्ट होते हैं।
| Sender टाइप | किसके लिए सबसे अच्छा | Registration |
|---|---|---|
| Long code (10DLC) | मध्यम वॉल्यूम पर two-way बातचीत, OTP, alerts | A2P 10DLC brand + campaign |
| Short code | हाई-वॉल्यूम one-to-many marketing और alerts | Carrier-vetted, lead time कुछ हफ़्तों में |
| Toll-free | 10DLC के बिना US/Canada ट्रैफ़िक, long code से ज़्यादा throughput | Toll-free verification |
| Alphanumeric sender ID | जहाँ देश अनुमति देता है वहाँ one-way branded alerts | कई देशों में pre-registration |
एक नंबर टाइप चुनें
Each sender type in depth: reach, throughput, and what it takes to register.
कुछ ही calls में सर्च करें, खरीदें, और रूट करें।
Find a number by country and capability and buy it, from the same SDK you send with. Inbound traffic is routed by a workspace webhook subscribed to sms.received rather than per number, so one subscription covers every number you hold. The number is live as soon as any required registration clears.
const { data: page, error: searchError } = await bird.numbers.available
.list({
country_code: "US",
number_type: "local",
capabilities: ["sms"],
})
.safe();
if (searchError) throw searchError;
const { data: order, error: orderError } = await bird.numbers.orders
.create({ number: page.data[0].number })
.safe();
if (orderError) throw orderError;
console.log(order.status, order.number_id); // → "completed" "nda_0ydh2yfw..."
Registration, जहाँ ज़रूरी हो वहाँ संभाला गया।
ज़्यादातर US application ट्रैफ़िक को A2P 10DLC brand और campaign registration चाहिए; toll-free को verification चाहिए; कई देशों में sender-ID pre-registration ज़रूरी होता है। Bird इनमें से हर एक को dashboard से चलाता है, और compliance surface API से स्टेटस ट्रैक करता है।
Put it into practice.
Continue with the documentation, guides and examples for this topic. Resources are in English.
बाकी का SMS platform
एक API, keys का एक सेट। बाकी क्षमताएँ एक्सप्लोर करें।
सही नंबर प्रोविज़न करें, उसे मिनटों में रूट करें।
Numbers, Bird SMS API की एक क्षमता है: sending, two-way inbound, compliance, routing, और analytics इसके साथ आते हैं।