WhatsApp OTP

One-time codes, WhatsApp पर।

इसमें सेट अप करें:
Cursor

WhatsApp verification sends the code as an authentication-template message to a user's WhatsApp account: rich, sent from a Bird-managed business number under the identity you pick (Bird Verify by default, or Authifly), and delivered in an app they already use. It's an orderable channel in the same per-country plan, so a verification can lead with WhatsApp and keep SMS in reserve.

verify.ts
200 · pending
import { BirdClient } from "@messagebird/sdk";

const bird = new BirdClient({
  apiKey: process.env.BIRD_API_KEY!,
});

// Send the code, then check it by recipient.
await bird.verify.verifications.create({
  to: { phone_number: "+15551234567" },
}).safe();

const { data, error } = await bird.verify.verifications.check({
  to:   { phone_number: "+15551234567" },
  code: userInput,
}).safe();
if (error) throw error;

plan में एक channel, कोई नया integration नहीं।

WhatsApp Bird Verify API पर एक phone-family channel है: recipient वही phone number है, create और check कॉल्स वैसे ही रहते हैं, और WhatsApp बस per-country channel plan में एक orderable एंट्री बन जाता है। जहाँ यह कन्वर्ट करता है वहाँ आप इसे SMS से पहले ऑर्डर करते हैं, और बाकी हर जगह plan में अगले नंबर पर SMS रहता है।

WhatsApp verification क्या जोड़ता है।

per-country plan में एक orderable channel।

  1. 01

    Authentication-template डिलीवरी।

    Codes go as WhatsApp authentication-template messages, the format the platform reserves for one-time passcodes. WhatsApp templates covers how the category works.

  2. 02

    वही recipient, वही कॉल्स।

    उसी phone number को address करें और वही create और check endpoints कॉल करें। WhatsApp channel है, कोई अलग API नहीं।

  3. 03

    हर देश के हिसाब से orderable।

    जिन देशों में यह सबसे अच्छा लैंड करता है वहाँ channel plan में WhatsApp को SMS से आगे रखें, और बाकी को SMS-first रहने दें।

  4. 04

    SMS रिज़र्व में रहता है।

    एक phone target अपना पूरा phone-family plan साथ रखता है, इसलिए SMS WhatsApp के बाद अगले नंबर पर बैठता है। जैसे-जैसे delivery-driven advancement रोल आउट होता है, एक WhatsApp-first verification उसी session में SMS पर आगे बढ़ जाता है।

  5. 05

    वही कोड गारंटी।

    कोड एक cryptographic random source से जेनरेट होते हैं और केवल एक HMAC के रूप में स्टोर किए जाते हैं; कॉन्फ़िगर करने योग्य length और TTL; recipient के हिसाब से check। WhatsApp हर उस गारंटी को इनहेरिट करता है जो बाकी channels के पास है।

WhatsApp से शुरू करें, SMS को अगले नंबर पर रखें।

Routing is configured for the workspace, and a create call follows whatever it resolved. Putting WhatsApp first happens at that level, so the create call is the same one-liner either way.

whatsapp-otp.ts
200
await bird.verify.verifications.create({
  to: { phone_number: "+15551234567" },
}).safe();

// resolved channels: [{ channel: "whatsapp" }, { channel: "sms" }]

एक verification API, हर वह channel जिस तक आपके users पहुँचते हैं।

WhatsApp joins email and SMS as a channel in the same per-country plan, ordered the way that converts, on the same two endpoints.

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

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

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

Cursor