Email OTP

Preview में

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

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

Email verification sends a one-time code to an email address: no phone number required, and the channel reaches anyone with an inbox. Bird sends it on the same infrastructure that carries transactional email at scale, from a shared sender or your own verified domain, and checks it by recipient.

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.

    Pass a single email address. No phone number, no country: email is the one channel that reaches anyone with an 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 करें.

    Confirm the code by the email address it went to: no verification id to keep, and re-posting the create resends within the session.

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

An email verification is the same two calls as any other channel: only the recipient shape changes from a phone number to an 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 is one channel of Bird Verify: SMS and WhatsApp ship with it, and voice is rolling out, all on the same two endpoints.

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

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

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

Cursor