Sign inGet Started

Resend से माइग्रेट करें

यह पेज Resend के POST /emails पेलोड, सप्रेशन प्रबंधन और Svix-हस्ताक्षरित वेबहुक को Bird से मैप करता है। मुख्य माइग्रेशन गाइड का क्रम से पालन करें, और चरण 1, 3 और 4 के लिए इन मैपिंग का उपयोग करें। दोनों के भेजने वाले पेलोड में फ़ील्ड मिलते-जुलते हैं, लेकिन ट्रैकिंग, मेटाडेटा और वेबहुक सत्यापन में बदलाव करने होंगे।

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

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

कोड उदाहरण
I am moving an email integration from Resend to Bird. 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/email/migrate/resend.md for the payload, suppression and event mapping, and https://bird.com/docs/guides/email/migrate.md for the order the steps go in.
3. Find and list my Resend usage in this repository before you change anything: the POST /emails and batch call sites and any SDK wrappers around them, the webhook handler and the URL it is registered at, and every domain I send from.
4. Register each of those sending domains with Bird and give me the DNS records to publish, following https://bird.com/docs/guides/email/sending-domains.md. Leave every DNS record my current provider uses exactly as it is: Bird's records are published alongside them and both providers authenticate side by side until I switch traffic. Publishing DNS affects mail for the whole domain, so show me the records and let me publish them.
5. Rebuild my suppression list and import it into Bird before any production traffic goes through Bird, so my first sends do not reach addresses that already bounced or complained. Resend publishes no suppression export, so there is no endpoint that returns this list: derive it from whatever bounce and complaint events I have stored from my webhook, from the dashboard's Emails view, and from contacts marked unsubscribed in any Audience I use. That means the list can be incomplete without either of us noticing, so show me the list you built and tell me which of those sources each address came from before you import anything. The Bird import takes one address per request and is idempotent, so a partial re-run is safe. https://bird.com/docs/guides/email/suppressions.md has the reason taxonomy.
6. Port the send call and the webhook handler using the mapping tables on the provider page. Verification is a header change rather than a rewrite here: Resend signs with Svix and Bird signs per Standard Webhooks, which is the same HMAC construction with the svix-* headers renamed to webhook-*, so keep my verifier and rename what it reads. The event shape does change: Resend's events are scoped to a message and Bird's are scoped to a recipient, so a send to three recipients yields three outcomes rather than one. See https://bird.com/docs/guides/webhooks.md and https://bird.com/docs/guides/email/events.md.
7. Run my whole integration against Bird's mail sandbox before any production traffic, following https://bird.com/docs/guides/email/testing-sandbox.md. Sandbox sends run the real pipeline without reaching an inbox or touching my sending reputation.
8. Stop and ask me wherever a step needs a decision. Do not point production traffic at Bird until I have seen the sandbox results and replied with the words cut over to Bird. Retiring the Resend path is a separate step that comes later: ask me again and wait for me to reply with the words retire the Resend path. 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.

भेजने वाले कॉल को मैप करें

यह क्या करता हैResendBird
प्रेषकfromfrom
प्राप्तकर्ताto / cc / bccto / cc / bcc (ऐरे)
विषयsubjectsubject
मुख्य भागhtml / texthtml / text (कम से कम एक)
जवाब का पताreply_toreply_to (ऐरे)
कस्टम हेडरheadersheaders (string → string ऑब्जेक्ट)
फ़िल्टर करने योग्य लेबलtags: {name, value} जोड़ेtags: {name, value} जोड़े
वापस लौटने वाला संदर्भ(कोई नहीं; टैग ही संदर्भ का काम करते हैं)metadata: कोई भी JSON
शेड्यूलिंगscheduled_atscheduled_at
ओपन/क्लिक ट्रैकिंगप्रति-डोमेन डैशबोर्ड सेटिंगtrack_opens / track_clicks (डिफ़ॉल्ट true)
श्रेणी(कोई नहीं)category: marketing (डिफ़ॉल्ट) या transactional

हमारी फ़ील्ड सीमाएँ और डिफ़ॉल्ट मान (प्राप्तकर्ताओं की संख्या, टैग और मेटाडेटा की सीमाएँ) ईमेल भेजना में दी गई हैं।

पोर्टिंग से जुड़े नोट:

  • टैग का स्वरूप वही रहता है, और metadata एक अतिरिक्त सुविधा है। Resend के टैग वही {name, value} जोड़े हैं जिनका हम उपयोग करते हैं, लेकिन उनके मानों पर लगी पाबंदियों के कारण सहसंबंध डेटा टैग मानों में रखना पड़ता था। यहाँ सहसंबंध संदर्भ को metadata में रखें (मनचाहा JSON, जो हर वेबहुक इवेंट में वापस भेजा जाता है और API रीड में लौटाया जाता है), और टैग को फ़िल्टर करने के लिए रखें। टैग बनाम मेटाडेटा देखें।
  • ट्रैकिंग पेलोड में आ जाती है। Resend में ओपन/क्लिक ट्रैकिंग डैशबोर्ड में हर डोमेन के लिए चालू या बंद की जाती है। हम track_opens/track_clicks हर संदेश के लिए सेट करते हैं (दोनों का डिफ़ॉल्ट true है)।
  • scheduled_at सीधे मैप होता है, नाम समेत। शेड्यूल्ड भेजना देखें। react के लिए, अपने React Email टेम्पलेट को अपने ऐप्लिकेशन में HTML में रेंडर करें (@react-email/render का render फ़ंक्शन बिना बदलाव के काम करता है) और परिणाम को html के रूप में भेजें।
  • अटैचमेंट सीधे पोर्ट हो जाते हैं। Resend के attachments (base64 content) हमारी अटैचमेंट array से मैप होते हैं। इनलाइन इमेज के लिए content_id सेट करें।
  • बैच भेजना सीधे पोर्ट हो जाता है। Resend का POST /emails/batch हमारा बैच एंडपॉइंट बन जाता है, और दोनों में हर एंट्री का अलग परिणाम मिलता है।

सप्रेशन एक्सपोर्ट करें

Resend सप्रेशन सूची को एक्सपोर्ट करने का कोई अलग तरीका नहीं देता। वे पते निकालें जिनका आखिरी इवेंट bounced या complained है। इसके लिए डैशबोर्ड में Emails व्यू या अपने सहेजे गए वेबहुक इवेंट इस्तेमाल करें, फिर सूची को इम्पोर्ट लूप से चलाएँ। अगर आप मार्केटिंग मेल के लिए Audiences इस्तेमाल करते हैं, तो अनसब्सक्राइब्ड चिह्नित संपर्क भी साथ ले आएँ।

वेबहुक इवेंट का अनुवाद करें

परिणामResendBird
स्वीकृत/प्रोसेस किया गयाemail.sentemail.accepted → email.processed
डिलीवर हुआemail.deliveredemail.delivered
अस्थायी विफलताemail.delivery_delayedemail.deferred
स्थायी बाउंसemail.bouncedemail.bounced / email.out_of_band_bounce
स्पैम शिकायतemail.complainedemail.complained
ब्लॉक किया गया/सप्रेस किया गयाemail.failedemail.rejected
ओपनemail.openedemail.opened
क्लिकemail.clickedemail.clicked
अनसब्सक्राइब(कोई नहीं)email.unsubscribed / email.list_unsubscribed

वेबहुक सत्यापन मिलती-जुलती HMAC संरचना का उपयोग करता है, लेकिन इसके हेडर अलग हैं। Resend svix-id, svix-timestamp और svix-signature का उपयोग करता है। Bird webhook-* हेडर के साथ Standard Webhooks विनिर्देश का पालन करता है। अपने वेरिफ़ायर को अपडेट करें, ताकि वह Bird के साइनिंग सीक्रेट और वेबहुक और इवेंट की प्रक्रिया का उपयोग करे।

व्यवहार में एक अंतर है: Resend के इवेंट संदेश के स्तर पर होते हैं। हमारे डिलीवरी इवेंट प्राप्तकर्ता के स्तर पर होते हैं (email_id के साथ recipient_id), इसलिए तीन प्राप्तकर्ताओं वाला एक भेजा गया संदेश तीन डिलीवरी परिणाम देता है, हर प्राप्तकर्ता के लिए एक।

स्विच करें

मुख्य गाइड में डोमेन और DNS और सैंडबॉक्स स्मोक टेस्ट के चरण पूरे करें। दोनों किसी भी प्रदाता पर निर्भर नहीं हैं।

अगले कदम

  • भेजने वाले डोमेन: पंजीकरण, सत्यापन की प्रक्रिया, और वे DNS रिकॉर्ड जिन्हें आप नई जगह की ओर निर्देशित कर रहे हैं
  • वेबहुक और इवेंट: एंडपॉइंट सेटअप और Standard Webhooks सत्यापन
  • टेस्टिंग सैंडबॉक्स: स्विच करने से पहले नए इंटीग्रेशन का स्मोक टेस्ट करें
  • सप्रेशन: अपनी इम्पोर्ट की गई सूची की पुष्टि करें और जानें कि आगे हम इसे कैसे बनाए रखते हैं

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