Email OTP
Email से verify करें, एक असली email network पर.
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.
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: "ada@example.com" },
}).safe();
const { data, error } = await bird.verify.verifications.check({
to: { email: "ada@example.com" },
code: userInput,
}).safe();
if (error) throw error;
वह verification channel जिसे किसी phone number की ज़रूरत नहीं.
Email is a first-class channel on the Bird Verify API: post a verification with an email address and we send the code from a Bird-managed shared sender, otp@verify.bird.com by default or Authifly's otp@verify.authifly.com, or from your own verified domain. It's country-independent, so it works the same everywhere, and it rides the same network Bird runs for transactional email at scale.
Email verification पर आपको क्या मिलता है.
हर send में, built-in.
- 01
Email से addressed.
Pass a single email address. No phone number, no country: email is the one channel that reaches anyone with an inbox.
- 02
Shared या आपका अपना domain.
Send from a Bird-managed shared sender out of the box (otp@verify.bird.com, or Authifly's otp@verify.authifly.com), or override to a domain you've already verified for sending.
- 03
एक तैयार OTP email.
Code एक साफ़, mobile-ready default template में आता है: code सबसे आगे, एक expiry note, और इसे कभी शेयर न करने की याद. ship करने से पहले design करने के लिए कुछ नहीं.
- 04
Bird email network पर.
आपके codes उसी delivery infrastructure पर चलते हैं जिस पर आपके product की transactional email: signed, routed, और monitored.
- 05
Server-generated, hashed codes.
default में 6-digit code (4–10 configurable), एक cryptographic random source से generate किया गया और सिर्फ़ HMAC के रूप में store किया गया.
- 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.
await bird.verify.verifications.create({
to: { email: "ada@example.com" },
}).safe();
const { data, error } = await bird.verify.verifications.check({
to: { email: "ada@example.com" },
code: userInput,
}).safe();
if (error) throw error;
// data.success is true or false; data.reason elaborates ("incorrect_code", "expired", "attempts_exhausted")
बाकी का Verify platform
एक API, keys का एक set. बाकी capabilities को explore करें.
आपके 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.