Long codes

लोकल नंबर, डिफ़ॉल्ट रूप से two-way.

Long code एक स्टैंडर्ड 10-digit फ़ोन नंबर है जो SMS भेजता और प्राप्त करता है. यह two-way बातचीत, OTP और मध्यम वॉल्यूम पर alerts के लिए डिफ़ॉल्ट sender है. US application ट्रैफ़िक के लिए इसे A2P 10DLC के ज़रिए रजिस्टर किया जाता है.

send-notification.ts
202 · 0.4s
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"
Hi Ada, reminder of your appointment tomorrow at 14:30 with Dr. Kowalski.
Your order #4821 has shipped. Track it: bird.ly/t/4821x
Your subscription renews on 3 Sep for €12/mo. Manage it here: bird.ly/account

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 ट्रैफ़िक, मध्यम वॉल्यूम.

  1. 01

    एक लोकल 10-digit नंबर.

    प्राप्तकर्ता अपने ही देश या क्षेत्र का area code देखते हैं, जो किसी marketing blast के बजाय एक असली sender जैसा लगता है.

  2. 02

    डिफ़ॉल्ट रूप से two-way.

    Point the number's inbound traffic at a webhook and replies arrive as signed events, the foundation for conversational flows.

  3. 03

    A2P 10DLC के ज़रिए रजिस्टर्ड.

    US application ट्रैफ़िक रजिस्टर्ड 10DLC campaigns पर चलता है, जिससे filtering का जोखिम बनने के बजाय जांचा-परखा throughput और carriers का भरोसा मिलता है.

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

long-code.ts
201 · purchased
// 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 कब उपलब्ध है.

long code पर शुरू करें, ज़रूरत पड़ने पर स्केल करें.

Long codes, Bird SMS numbers surface पर एक sender type हैं. एक provision करें, campaign रजिस्टर करें, और उसी API से inbound route करें जिससे आप भेजते हैं.

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

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

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

Cursor