WhatsApp OTP
Preview मेंOne-time codes, WhatsApp पर।
WhatsApp verification sends the code as an authentication-template message to a user's WhatsApp account: rich, Authifly-branded, 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.
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 } = await bird.verify.verifications.check({
to: { phone_number: "+15551234567" },
code: userInput,
}).safe();
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।
- 01
Authentication-template डिलीवरी।
Codes go as WhatsApp authentication-template messages, the format the platform reserves for one-time passcodes.
- 02
वही recipient, वही कॉल्स।
उसी phone number को address करें और वही create और check endpoints कॉल करें। WhatsApp channel है, कोई अलग API नहीं।
- 03
हर देश के हिसाब से orderable।
जिन देशों में यह सबसे अच्छा लैंड करता है वहाँ channel plan में WhatsApp को SMS से आगे रखें, और बाकी को SMS-first रहने दें।
- 04
SMS रिज़र्व में रहता है।
एक phone target अपना पूरा phone-family plan साथ रखता है, इसलिए SMS WhatsApp के बाद अगले नंबर पर बैठता है। जैसे-जैसे delivery-driven advancement रोल आउट होता है, एक WhatsApp-first verification उसी session में SMS पर आगे बढ़ जाता है।
- 05
वही कोड गारंटी।
कोड एक cryptographic random source से जेनरेट होते हैं और केवल एक HMAC के रूप में स्टोर किए जाते हैं; कॉन्फ़िगर करने योग्य length और TTL; recipient के हिसाब से check। WhatsApp हर उस गारंटी को इनहेरिट करता है जो बाकी channels के पास है।
WhatsApp से शुरू करें, SMS को अगले नंबर पर रखें।
channel order configuration पर रहता है, इसलिए WhatsApp को पहले चुनना एक config change है, code change नहीं। create कॉल वैसा ही रहता है।
await bird.verify.verifications.create({
configuration_id: "vfc_login",
to: { phone_number: "+15551234567" },
}).safe();
// resolved channels: [{ channel: "whatsapp" }, { channel: "sms" }]WhatsApp OTP FAQ
क्या WhatsApp verification आज उपलब्ध है?
SMS के बजाय WhatsApp पर verify क्यों करें?
अगर user WhatsApp पर नहीं है तो क्या होगा?
मेरे users कोड किससे आया देखते हैं?
बाकी Verify platform
एक API, keys का एक सेट। बाकी capabilities एक्सप्लोर करें।
एक 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.