Email OTP

Preview में

Email से verify करें, एक असली email network पर.

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

Email verification एक email address पर one-time code भेजता है — कोई phone number ज़रूरी नहीं, और यह channel हर उस व्यक्ति तक पहुँचता है जिसके पास inbox है. Bird इसे उसी infrastructure पर भेजता है जो बड़े पैमाने पर transactional email ले जाता है, किसी shared sender या आपके अपने verified domain से, और recipient के हिसाब से इसे check करता है.

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: { email_address: "ada@example.com" },
}).safe();

const { data } = await bird.verify.verifications.check({
  to:   { email_address: "ada@example.com" },
  code: userInput,
}).safe();

वह verification channel जिसे किसी phone number की ज़रूरत नहीं.

Bird Verify API पर Email एक first-class channel है: किसी email address के साथ verification post करें और हम code को shared Authifly sender, otp@verify.authifly.com, या आपके अपने verified domain से भेजते हैं. यह country-independent है, इसलिए हर जगह एक जैसा काम करता है, और यह उसी network पर चलता है जिसे Bird बड़े पैमाने पर transactional email के लिए चलाता है.

Email verification पर आपको क्या मिलता है.

हर send में, built-in.

  1. 01

    Email से addressed.

    एक अकेला email address पास करें. कोई phone number नहीं, कोई country नहीं — email वह एकमात्र channel है जो हर उस व्यक्ति तक पहुँचता है जिसके पास inbox है.

  2. 02

    Shared या आपका अपना domain.

    shared Authifly sender (otp@verify.authifly.com) से out of the box भेजें, या उस domain पर override करें जिसे आपने sending के लिए पहले से verify कर रखा है.

  3. 03

    एक तैयार OTP email.

    Code एक साफ़, mobile-ready default template में आता है: code सबसे आगे, एक expiry note, और इसे कभी शेयर न करने की याद. ship करने से पहले design करने के लिए कुछ नहीं.

  4. 04

    Bird email network पर.

    आपके codes उसी delivery infrastructure पर चलते हैं जिस पर आपके product की transactional email: signed, routed, और monitored.

  5. 05

    Server-generated, hashed codes.

    default में 6-digit code (4–10 configurable), एक cryptographic random source से generate किया गया और सिर्फ़ HMAC के रूप में store किया गया.

  6. 06

    Recipient के हिसाब से check करें.

    उसी email address से code confirm करें जिस पर वह गया था — रखने के लिए कोई verification id नहीं, और create को दोबारा post करने पर session के भीतर code फिर से भेज दिया जाता है.

किसी address पर भेजें, उसी address से check करें.

Email verification किसी भी दूसरे channel जैसे ही वही दो calls हैं — बस recipient का रूप phone number से बदलकर email address हो जाता है.

email-otp.ts
200
await bird.verify.verifications.create({
  to: { email_address: "ada@example.com" },
}).safe();

const { data } = await bird.verify.verifications.check({
  to:   { email_address: "ada@example.com" },
  code: userInput,
}).safe();

// data.result is true or false; data.reason elaborates ("expired", "already_verified", …)

Email OTP FAQ

मुझे SMS के बजाय Email से कब verify करना चाहिए?+
Email को किसी phone number की ज़रूरत नहीं और यह हर उस व्यक्ति तक पहुँचता है जिसके पास inbox है, जो इसे signup और account-recovery flows के लिए एक मज़बूत default बनाता है और तब एक स्वाभाविक fallback जब आपके पास कोई verified phone number न हो. कई products दोनों देते हैं और user को चुनने देते हैं.
क्या मैं अपने अपने domain से भेज सकता हूँ?+
हाँ. Codes default में shared Authifly sender (otp@verify.authifly.com) से जाते हैं, और आप उस domain पर override कर सकते हैं जिसे आपने Bird के साथ sending के लिए पहले से verify कर रखा है, ताकि code आपके brand से आए.
क्या आप OTP भेजने से पहले suppression list check करते हैं?+
OTP email एक transactional system mail है, इसलिए यह marketing suppression list पर gated नहीं है. Delivery को email pipeline द्वारा asynchronously handle किया जाता है, ठीक किसी भी transactional send की तरह.
Codes कैसे store किए जाते हैं?+
Codes एक cryptographic random source से generate किए जाते हैं और सिर्फ़ HMAC-SHA256 hash के रूप में store किए जाते हैं, constant time में compare किए जाते हैं. Plaintext को कभी return या log नहीं किया जाता.
मेरे users को code किससे आया दिखता है?+
Authifly, Bird का verification brand. यह हर उस code पर identity है जो आपके users को मिलता है: email otp@verify.authifly.com या आपके अपने verified domain से आती है, और SMS तथा WhatsApp Authifly-branded होते हैं. authifly.com एक public page है जो recipients को भरोसा दिलाता है कि Authifly किसी business की ओर से वैध one-time codes भेजता है. Bird वह platform है जिस पर आप build करते हैं; Authifly वह है जो recipient देखता है.

आपके verification codes उस network पर जो आपकी email चलाता है.

Email Bird Verify का एक channel है: SMS और WhatsApp इसके साथ आते हैं, और voice rolling out हो रहा है — सब उन्हीं दो endpoints पर.

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

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

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

Cursor