Long code एक स्टैंडर्ड 10-digit फ़ोन नंबर है जो SMS भेजता और प्राप्त करता है. यह two-way बातचीत, OTP और मध्यम वॉल्यूम पर alerts के लिए डिफ़ॉल्ट sender है. US application ट्रैफ़िक के लिए इसे A2P 10DLC के ज़रिए रजिस्टर किया जाता है.
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"
long code कब सही चुनाव होता है.
Long codes are one of the four sender types on the Bird SMS numbers surface, part of the broader Bird SMS API. They're local, two-way, and quick to provision: the right starting point for most conversational and transactional traffic before volume justifies a short code.
long code आपको क्या देता है.
लोकल presence, two-way ट्रैफ़िक, मध्यम वॉल्यूम.
- 01
एक लोकल 10-digit नंबर.
प्राप्तकर्ता अपने ही देश या क्षेत्र का area code देखते हैं, जो किसी marketing blast के बजाय एक असली sender जैसा लगता है.
- 02
डिफ़ॉल्ट रूप से two-way.
Point the number's inbound traffic at a webhook and replies arrive as signed events, the foundation for conversational flows.
- 03
A2P 10DLC के ज़रिए रजिस्टर्ड.
US application ट्रैफ़िक रजिस्टर्ड 10DLC campaigns पर चलता है, जिससे filtering का जोखिम बनने के बजाय जांचा-परखा throughput और carriers का भरोसा मिलता है.
- 04
रजिस्ट्रेशन क्लियर होते ही लाइव.
नंबर तुरंत खरीदें; इसकी 10DLC campaign के मंज़ूर होते ही यह रजिस्टर्ड ट्रैफ़िक ले जाना शुरू कर देता है.
एक खरीदें और भेजना शुरू करें.
Search by country and capability and buy the number, the same client you send with. Inbound traffic is routed by a workspace webhook subscribed to sms.received, not per number. The same code shape provisions any sender type; only number_type changes.
// A US long code is a `local` number: the type names the numbering plan's
// own category, and "long code" is not one of them.
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..."
रजिस्ट्रेशन इस डील का हिस्सा है.
US नंबरों पर application-to-person ट्रैफ़िक भेजने के लिए, एक long code रजिस्टर्ड A2P 10DLC campaign पर चलता है. Bird dashboard से brand और campaign फ़ाइल करता है और API के ज़रिए approval status रिपोर्ट करता है, ताकि आपको ठीक-ठीक पता रहे कि पूरा throughput कब उपलब्ध है.
Put it into practice.
Continue with the documentation, guides and examples for this topic. Resources are in English.
भेजने के अन्य तरीके
Long codes चार sender types में से एक हैं. बाकी की तुलना करें.
long code पर शुरू करें, ज़रूरत पड़ने पर स्केल करें.
Long codes, Bird SMS numbers surface पर एक sender type हैं. एक provision करें, campaign रजिस्टर करें, और उसी API से inbound route करें जिससे आप भेजते हैं.