Short codes

बड़े पैमाने पर भेजने के लिए बनाया गया।

Short code एक 5–6 अंकों का नंबर है जो हाई-वॉल्यूम one-to-many SMS के लिए बना है: मार्केटिंग, अलर्ट, और हाई-रेट OTP। Carrier हर प्रोग्राम को भेजने से पहले जाँचते हैं, इसलिए प्रोविज़निंग लीड टाइम मिनटों में नहीं बल्कि हफ़्तों में नापा जाता है।

send-otp.ts
200 · 0.4s
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

Hey Ada, your Bird sign-in code is 482917. It'll expire in 10 minutes. Don't share it with anyone.
482917
Delivered

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 के लिए बना।

  1. 01

    किसी भी sender type में सबसे ज़्यादा थ्रूपुट।

    Short code को इस तरह इंजीनियर किया गया है कि एक नंबर भारी आउटबाउंड लोड उठा सके, और यही वजह है कि उसी दिन का कैंपेन या अलर्ट फ़ैन-आउट समय पर पहुँचता है।

  2. 02

    Dedicated या shared।

    Dedicated short code लें और उसकी sending reputation सिर्फ़ आपकी होती है; इसे keywords के पीछे शेयर करें ताकि तेज़ और सस्ते में शुरू कर सकें, इस कीमत पर कि आप अपने पड़ोसियों की reputation विरासत में पाते हैं।

  3. 03

    भेजने से पहले carrier-vetted।

    हर short code प्रोग्राम की carrier समीक्षा करते हैं, इसलिए नंबर लाइव ट्रैफ़िक के तहत भरोसा कमाने के बजाय उनका भरोसा पहले से स्थापित करके आता है।

  4. 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.

short-code.ts
201 · purchased
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 जल्दी लाइव होता है और शुरू करने में कम खर्चीला है।

अपने वॉल्यूम के मुताबिक sender type चुनें।

Short code, Bird SMS numbers surface पर मौजूद एक sender type है। जब वॉल्यूम और थ्रूपुट vetting को सही ठहराएँ तो इसे प्रोविज़न करें, और उसी API से inbound रूट करें जिससे आप भेजते हैं।

एक चैनल से शुरुआत करें।
तैयार होने पर बाकी जोड़ें।

एक test API key तुरंत आपकी है। जब आप payment method जोड़ते हैं और sender verify करते हैं, तब production अनलॉक हो जाता है।

Claude Code, Cursor या Codex इस्तेमाल कर रहे हैं? एक setup prompt कॉपी करें और आपका agent आपके लिए Bird CLI और skills इंस्टॉल कर देगा। अपना चुनें:

Cursor