Short code एक 5–6 अंकों का नंबर है जो हाई-वॉल्यूम one-to-many SMS के लिए बना है: मार्केटिंग, अलर्ट, और हाई-रेट OTP। Carrier हर प्रोग्राम को भेजने से पहले जाँचते हैं, इसलिए प्रोविज़निंग लीड टाइम मिनटों में नहीं बल्कि हफ़्तों में नापा जाता है।
import { BirdClient } from "@messagebird/sdk";
const bird = new BirdClient({ apiKey: process.env.BIRD_API_KEY! });
const code = generateOtp();
const { data, error } = await bird.sms.send({
from: "Bird",
to: "+15005550006",
text: `Your Bird verification code is ${code}. Reply STOP to opt out.`,
category: "authentication",
}).safe();
if (error) throw error;
console.log(data.id);
// → "sms_4kT01Lq2m..."
Today at 2:14 PM
Short code कहाँ फ़िट होता है।
A short code is one of the four sender types on Bird SMS numbers, part of the broader Bird SMS API. It's the option you reach for when one number has to push high volume to many recipients, and you're willing to trade provisioning speed for the throughput and carrier trust that comes with it.
Short code आपको क्या देता है।
हाई थ्रूपुट, carrier-vetted, one-to-many के लिए बना।
- 01
किसी भी sender type में सबसे ज़्यादा थ्रूपुट।
Short code को इस तरह इंजीनियर किया गया है कि एक नंबर भारी आउटबाउंड लोड उठा सके, और यही वजह है कि उसी दिन का कैंपेन या अलर्ट फ़ैन-आउट समय पर पहुँचता है।
- 02
Dedicated या shared।
Dedicated short code लें और उसकी sending reputation सिर्फ़ आपकी होती है; इसे keywords के पीछे शेयर करें ताकि तेज़ और सस्ते में शुरू कर सकें, इस कीमत पर कि आप अपने पड़ोसियों की reputation विरासत में पाते हैं।
- 03
भेजने से पहले carrier-vetted।
हर short code प्रोग्राम की carrier समीक्षा करते हैं, इसलिए नंबर लाइव ट्रैफ़िक के तहत भरोसा कमाने के बजाय उनका भरोसा पहले से स्थापित करके आता है।
- 04
one-to-many के लिए सबसे अच्छा।
मार्केटिंग सेंड, ट्रांज़ैक्शनल अलर्ट, और हाई-रेट OTP — सब short code में फ़िट होते हैं। दो-तरफ़ा बातचीत वाले ट्रैफ़िक के लिए long code आमतौर पर बेहतर शुरुआती विकल्प है।
इसे खोजें, खरीदें, और रूट करें।
Provisioning a short code uses the same client and the same call shape as any other sender type: only the type field changes. Search by country and capability, buy the number, and point its inbound at a webhook.
const { data: available } = await bird.numbers.search({
country: "US",
type: "short-code",
capabilities: ["sms"],
}).safe();
const { data: number } = await bird.numbers.buy({
number: available[0].number,
webhook: "https://example.com/webhooks/bird",
}).safe();Vetting आपको थ्रूपुट दिलाती है।
ट्रेडऑफ़ सीधा है: short code अपना ऊँचा, carrier-भरोसेमंद थ्रूपुट पहले vetting से गुज़रकर कमाता है, इसलिए हफ़्तों की लीड टाइम की योजना बनाएँ। इसे तब चुनें जब किसी प्रोग्राम का वॉल्यूम उससे आगे बढ़ जाए जो long code सपोर्ट करता है, या जब आपको पहले दिन से ऊँची और अनुमानित sending rate चाहिए। अगर आपका ट्रैफ़िक दो-तरफ़ा और बातचीत वाला है, या वॉल्यूम मध्यम है, तो long code जल्दी लाइव होता है और शुरू करने में कम खर्चीला है।
Short code से जुड़े सामान्य सवाल
SMS short code क्या है?
Short code को प्रोविज़न होने में कितना समय लगता है?
Dedicated या shared short code?
मुझे इसके बजाय long code कब इस्तेमाल करना चाहिए?
भेजने के अन्य तरीके
Short codes चार sender types में से एक हैं। बाकी की तुलना करें।
अपने वॉल्यूम के मुताबिक sender type चुनें।
Short code, Bird SMS numbers surface पर मौजूद एक sender type है। जब वॉल्यूम और थ्रूपुट vetting को सही ठहराएँ तो इसे प्रोविज़न करें, और उसी API से inbound रूट करें जिससे आप भेजते हैं।