Sign inGet Started

Prelude से Verify पर माइग्रेट करें

यह पेज Prelude के v2 सत्यापन API को Bird Verify से मैप करता है। मुख्य माइग्रेशन गाइड का क्रम से पालन करें और चरण 1 और 3 के लिए इन मैपिंग का उपयोग करें।

दोनों की संरचना मिलती-जुलती है। Prelude के POST https://api.prelude.dev/v2/verification और POST /v2/verification/check bearer-प्रमाणित create-और-check जोड़ी हैं, जो सत्यापन ID के बजाय लक्ष्य से पहचानी जाती है, और POST /v1/verify/verifications तथा POST /v1/verify/verifications/check भी ऐसे ही हैं। दोनों प्लेटफ़ॉर्म पर, किसी सक्रिय प्राप्तकर्ता के लिए create को फिर से कॉल करने पर नया सत्यापन शुरू नहीं होता, बल्कि फिर से प्रयास होता है। जो हिस्सा पोर्ट नहीं होता, वह जोखिम परत है: Prelude के सिग्नल, रूटिंग निर्णय और साइलेंट सत्यापन का Bird Verify API में कोई समकक्ष नहीं है।

इसे अपने एजेंट को सौंपें

इसे Claude Code, Cursor या Codex में पेस्ट करें। एजेंट आपकी अपनी रिपॉज़िटरी पर इस पेज के चरण पूरे करता है, और उसके पास पहले से जो भी Bird इंटरफ़ेस उपलब्ध है उसका उपयोग करता है: अगर MCP सर्वर कनेक्ट है तो वह, और अगर CLI इंस्टॉल और साइन इन है तो वह।

कोड उदाहरण
I am moving a phone verification integration from Prelude to Bird Verify. Route through it with me.
1. Check what you already have before setting anything up. If Bird's MCP server is connected, use its tools. If the Bird CLI is installed and signed in, use that. Either one is enough, and every step below is an action you take with whichever you have. Only if neither is present, follow https://bird.com/docs/ai/set-up-your-agent.md to set one up and sign me in. Every Bird docs page serves Markdown at its own URL with `.md` appended, so fetch that rather than the HTML.
2. Read https://bird.com/docs/guides/verify/migrate/prelude.md for the create, check and status mapping, and https://bird.com/docs/guides/verify/migrate.md for the order the steps go in.
3. Find and list my Prelude usage in this repository before you change anything: the /v2/verification and /v2/verification/check call sites, anywhere I read signals or a routing verdict, and anywhere I use dispatch_id for retry safety.
4. Tell me early which of these I depend on. Bird Verify has no silent or network-based authentication. It can read the code aloud in a voice call, but only in countries where I switch voice on, and always in English. It generates the code itself and never returns it, so I cannot supply my own. It accepts `options.language` but no per-request template or message body. Bird can use an existing SMS Sender ID or a connected WhatsApp number with an approved authentication template, configured per channel or country rather than per request; tell me whether my current sender can be kept. Prelude's risk layer does not port either: its signals, its routing verdicts and its silent verification have no counterpart in Bird Verify, so tell me every decision my code makes on those.
5. Configure my channels and destinations following https://bird.com/docs/guides/verify/countries.md and https://bird.com/docs/guides/verify/senders.md. While you are there, disable every country I do not actually verify into. An enabled destination I never send to is not reach, it is exposure to SMS pumping, so ask me which countries I serve rather than leaving the defaults.
6. Port the create and check calls using the mapping tables on the provider page, and move my status handling to Bird's events: https://bird.com/docs/guides/verify/sending-verifications.md and https://bird.com/docs/guides/verify/events.md.
7. Cut over at the create call, not all at once, because a code issued by Prelude cannot be checked by Bird and a code issued by Bird cannot be checked by Prelude. From the moment I say go, send every NEW verification to Bird, and keep routing each check to whichever provider issued that verification. Keep both paths live for one full code lifetime plus margin, then retire the old one. Tell me how you will decide which provider issued a given verification before you write any of it.
8. Test before any real traffic. Bird Verify has no simulated recipients, so do not look for a sandbox: the thing worth testing is the code arriving. Run the integration against a phone number and a mailbox I control, on each channel I enabled, and show me what arrived on each one.
9. Stop and ask me wherever a step needs a decision. Do not start routing new verifications to Bird until I have seen those test results and replied with the words cut over to Bird. Retiring the Prelude path is a separate step: ask me again and wait for me to reply with the words retire the Prelude path, and do not retire it while any code it issued could still be checked. A reply that agrees without naming what it is authorising is not authorisation. Finish by telling me what is left that only a person can do.

create कॉल को मैप करें

यह क्या करता हैPreludeBird
प्राप्तकर्ताtarget.type + target.valueto.phone_number या to.email
कोड की लंबाईoptions.code_sizeoptions.code_length
चैनल वरीयताoptions.preferred_channel, options.channelsoptions.channels, अन्यथा देश के लिए कॉन्फ़िगर किया गया क्रम
सहसंबंधmetadata.correlation_idmetadata
डिलीवरी कॉलबैकoptions.callback_urlआपके द्वारा बताए गए verify इवेंट प्रकारों की सदस्यता वाला वर्कस्पेस वेबहुक
कस्टम सत्यापन कोडoptions.custom_codeकोई समकक्ष नहीं
स्थानीयकरणoptions.localeoptions.language
प्रेषक पहचानoptions.sender_idहर अनुरोध के लिए नहीं, बल्कि हर चैनल या देश के लिए Bird द्वारा प्रबंधित या वर्कस्पेस के स्वामित्व वाला प्रेषक चुनें
संदेश टेम्पलेटoptions.template_id, options.variablesप्रति अनुरोध कोई समकक्ष नहीं; Verify कॉन्फ़िगरेशन में स्वीकृत WhatsApp ऑथेंटिकेशन टेम्पलेट चुनें
Android ऑटोफ़िलoptions.app_realmकोई समकक्ष नहीं
जोखिम सिग्नलsignals (IP, डिवाइस, फ़िंगरप्रिंट)स्वीकार नहीं किए जाते
सुरक्षित रूप से फिर से प्रयासउनके create या check संदर्भ में कोई आइडेम्पोटेंसी कुंजी या हेडर नहींIdempotency-Key हेडर
सिग्नल सहसंबंधdispatch_id, "the identifier of the dispatch that came from the front-end SDK"कोई समकक्ष नहीं: Bird कोई सिग्नल स्वीकार नहीं करता
फ़ॉलबैक नियंत्रणoptions.max_auto_fallbacks, options.force_challengeदेश का चैनल प्लान

dispatch_id फिर से प्रयास करने का तरीका नहीं है और इसे Idempotency-Key के साथ नहीं रखना चाहिए। Prelude का अपना संदर्भ इसे "the identifier of the dispatch that came from the front-end SDK" के रूप में परिभाषित करता है: उनका Signals SDK इसे dispatchSignals() से लौटाता है, और आप इसे create कॉल में आगे भेजते हैं ताकि उनकी धोखाधड़ी परत अपने कैप्चर किए गए ब्राउज़र सिग्नल को उस सत्यापन से मिला सके। उनके create और check संदर्भ पूरे अनुरोध सेट का दस्तावेज़ देते हैं, जिसमें न कोई आइडेम्पोटेंसी कुंजी है और न कोई कस्टम हेडर। इसलिए जिस create का फिर से प्रयास किया जाता है, वह आपके लिए सुरक्षित नहीं बनता। Bird पर यह काम Idempotency-Key हेडर करता है।

दोनों के चैनल सेट केवल आंशिक रूप से मेल खाते हैं। Bird ईमेल, SMS, WhatsApp, Telegram और वॉइस पर डिलीवर करता है। Prelude के RCS, Viber, Zalo और साइलेंट चैनलों का Bird में कोई समकक्ष नहीं है। Bird का वॉइस चैनल तब तक बंद रहता है, जब तक आप उसे हर देश के लिए चालू नहीं करते। जिस नंबर तक Prelude Viber या Zalo से पहुँचता था, वह यहाँ SMS पर फ़ॉलबैक करता है। इसका असर डिलीवरी दर पर पड़ता है, इसलिए इसे पूरे वॉल्यूम पर पता चलने देने के बजाय पायलट में मापें।

check कॉल को मैप करें

दोनों check एंडपॉइंट सत्यापन ID के बिना प्राप्तकर्ता और कोड लेते हैं, इसलिए यह कॉल लगभग जैसी है वैसी ही पोर्ट हो जाती है। अंतर प्रतिक्रिया में है:

Prelude statusBird
successsuccess: true
failuresuccess: false, reason: incorrect_code
expired_or_not_foundsuccess: false, reason: expired, या 404
(कोई सीधा मान नहीं)success: false, reason: attempts_exhausted

Prelude "wrong code" और "out of attempts" को failure में मिला देता है; Bird इन्हें अलग रखता है और साथ में attempts_remaining लौटाता है, ताकि आप उपयोगकर्ता को बता सकें कि कितने प्रयास बचे हैं। जो सत्यापन पहले ही पूरा हो चुका है, वह स्थिति के बजाय 404 लौटाता है, इसलिए दोबारा जाँचने के बजाय पहला निर्णायक उत्तर सहेज लें।

जोखिम परत का क्या होता है

Prelude की create प्रतिक्रिया एक रूटिंग निर्णय बताती है: success, retry, challenged, blocked या shadow_blocked में से एक status, अस्वीकार करने पर reason और risk_factors, और चुने गए चैनल का नाम बताने वाला method। Bird की create प्रतिक्रिया स्वयं सत्यापन होती है। इसमें शाखा बनाने के लिए कोई निर्णय नहीं है, भेजने के लिए कोई सिग्नल ऑब्जेक्ट नहीं है और शैडो ब्लॉक का कोई समकक्ष नहीं है। इसलिए जो इंटीग्रेशन Prelude के निर्णय के आधार पर साइन-अप रोकता है, उसे Bird को कॉल करने से पहले अपना निर्णय खुद लेना होगा।

इस क्षेत्र में Bird जो देता है वह सीमित है और ज़्यादातर कॉन्फ़िगरेशन है: उन गंतव्यों को बंद करने के लिए प्रति-देश सक्षमता जिनकी आप कभी सेवा नहीं करते, दुरुपयोग सुरक्षा उपाय में बताई गई प्लेटफ़ॉर्म की भेजने और जाँचने की सीमाएँ, और स्वयं चैनल योजना। यदि आपने Prelude को पंपिंग से सुरक्षा के लिए चुना था, तो माइग्रेशन तय करने से पहले इस कमी का आकलन करें।

कॉलबैक स्थानांतरित करें

Prelude डिलीवरी स्थिति को उस callback_url पर भेजता है जिसे आप हर सत्यापन के लिए सेट करते हैं। Bird उन एंडपॉइंट पर डिलीवर करता है जिन्हें आपका वर्कस्पेस रजिस्टर करता है, और हर एंडपॉइंट अपने चाहे गए इवेंट टाइप की सदस्यता लेता है, इसलिए URL अनुरोध बॉडी से हट जाता है। वे इवेंट टाइप बताइए जो आपके हैंडलर को चाहिए: सेशन के लिए verify.verification.created, verify.verification.verified और verify.verification.failed, और हर सत्यापन कोड भेजने के लिए verify.attempt.sent, verify.attempt.delivered और verify.attempt.undelivered। इनकी जगह लेने वाला कोई वाइल्डकार्ड नहीं है। सिग्नेचर को Standard Webhooks के अनुसार सत्यापित करें। पेलोड Verify इवेंट में दिए गए हैं।

स्विच करें

मुख्य गाइड का स्विच करने का नियम बिना बदलाव के लागू होता है: Prelude द्वारा जारी किए गए कोड की जाँच Bird नहीं कर सकता, इसलिए create कॉल पर स्विच करें और हर जाँच को उसी प्रदाता पर भेजें जिसने वह सत्यापन जारी किया था, जब तक आख़िरी सत्यापन की अवधि समाप्त न हो जाए। दोनों API प्राप्तकर्ता के आधार पर काम करते हैं, इसलिए यह ब्रांच दोबारा लिखने के बजाय आपकी मौजूदा कॉल साइटों के चारों ओर एक ही शर्त है।

पायलट के दौरान डिलीवरी के साथ कन्वर्ज़न पर भी नज़र रखें। Prelude हर अनुरोध को चैनलों के बड़े सेट में रूट करता है; Bird उस चैनल क्रम के अनुसार रूट करता है जिसे आप हर देश के लिए सेट करते हैं। अगर किसी बाज़ार में कन्वर्ज़न गिरता है, तो माइग्रेशन के बारे में कोई निष्कर्ष निकालने से पहले उस देश के चैनलों का क्रम बदलें।

अगले कदम

इस विषय के लिए दस्तावेज़, गाइड और उदाहरणों के साथ आगे बढ़ें।