Sign inGet started

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

यह पेज Resend के POST /emails पेलोड, suppression हैंडलिंग, और Svix-signed webhooks को Bird पर मैप करता है। मुख्य माइग्रेशन गाइड को क्रम से फ़ॉलो करें, और स्टेप 1, 3 और 4 के लिए इन मैपिंग का उपयोग करें। Send पेलोड के फ़ील्ड समान हैं, लेकिन ट्रैकिंग, मेटाडेटा और webhook सत्यापन में बदलाव ज़रूरी हैं।

अपने एजेंट को दें

इसे 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.

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

क्या करता हैResendBird
प्रेषकfromfrom
प्राप्तकर्ताto / cc / bccto / cc / bcc (arrays)
विषयsubjectsubject
बॉडीhtml / texthtml / text (कम से कम एक)
Reply-toreply_toreply_to (array)
कस्टम हेडरheadersheaders (string → string object)
फ़िल्टर करने योग्य लेबलtags: {name, value} pairstags: {name, value} pairs
राउंड-ट्रिप कॉन्टेक्स्ट(नहीं; tags कॉन्टेक्स्ट के रूप में भी काम करते हैं)metadata: arbitrary JSON
शेड्यूलिंगscheduled_atscheduled_at
ओपन/क्लिक ट्रैकिंगप्रति-डोमेन डैशबोर्ड सेटिंगtrack_opens / track_clicks (default true)
श्रेणी(नहीं)category: marketing (default) या transactional
हमारे फ़ील्ड की सीमाएँ और डिफ़ॉल्ट (प्राप्तकर्ता संख्या, tag और metadata सीमाएँ) ईमेल भेजना में दिए गए हैं।
पोर्टिंग नोट्स:
  • Tags का स्वरूप वही रहता है, और metadata एक अपग्रेड है। Resend tags वही {name, value} pairs हैं जो हम उपयोग करते हैं, लेकिन उनकी value सीमाओं ने correlation डेटा को tag values में डालने पर मजबूर किया। यहाँ, correlation कॉन्टेक्स्ट को metadata में ले जाएँ (arbitrary JSON, हर webhook इवेंट पर वापस मिलता है और API reads पर लौटाया जाता है) और tags को फ़िल्टरिंग के लिए रखें। देखें tags vs metadata
  • ट्रैकिंग पेलोड में आ जाती है। Resend डैशबोर्ड में प्रति-डोमेन ओपन/क्लिक ट्रैकिंग टॉगल करता है। हम track_opens/track_clicks प्रति मैसेज सेट करते हैं (दोनों का default true)।
  • scheduled_at सीधे मैप होता है, नाम सहित। देखें शेड्यूल्ड सेंडिंगreact के लिए, अपने React Email टेम्प्लेट को अपने एप्लिकेशन में HTML में रेंडर करें (@react-email/render का render फ़ंक्शन बिना बदलाव काम करता है) और रिज़ल्ट को html के रूप में भेजें।
  • अटैचमेंट सीधे पोर्ट होते हैं। Resend का attachments (base64 content) हमारे attachments array पर मैप होता है। इनलाइन इमेज के लिए content_id सेट करें।
  • बैच सेंडिंग सीधे पोर्ट होती है। Resend का POST /emails/batch हमारे batch endpoint बन जाता है, दोनों में प्रति-एंट्री रिज़ल्ट मिलते हैं।

Suppressions एक्सपोर्ट करें

Resend एक समर्पित suppression-list एक्सपोर्ट प्रदान नहीं करता। उन पतों को निकालें जिनका अंतिम इवेंट bounced या complained है। डैशबोर्ड में Emails व्यू या अपने स्टोर किए गए webhook इवेंट उपयोग करें, फिर इस सूची को इम्पोर्ट लूप के ज़रिए चलाएँ। अगर आप मार्केटिंग मेल के लिए Audiences उपयोग करते हैं, तो अनसब्सक्राइब्ड चिह्नित कॉन्टैक्ट भी ट्रांसफ़र करें।

Webhook इवेंट ट्रांसलेट करें

परिणामResendBird
स्वीकृत/प्रोसेस्डemail.sentemail.acceptedemail.processed
डिलीवर हुआemail.deliveredemail.delivered
अस्थायी विफलताemail.delivery_delayedemail.deferred
स्थायी बाउंसemail.bouncedemail.bounced / email.out_of_band_bounce
स्पैम शिकायतemail.complainedemail.complained
ब्लॉक्ड/suppressedemail.failedemail.rejected
ओपनemail.openedemail.opened
क्लिकemail.clickedemail.clicked
अनसब्सक्राइब(नहीं)email.unsubscribed / email.list_unsubscribed
Webhook सत्यापन एक संबंधित HMAC संरचना का उपयोग करता है लेकिन हेडर अलग हैं। Resend svix-id, svix-timestamp, और svix-signature उपयोग करता है। Bird webhook-* हेडर के साथ Standard Webhooks विनिर्देश का पालन करता है। अपने verifier को Bird के signing secret और Webhooks and events प्रक्रिया का उपयोग करने के लिए अपडेट करें।
एक व्यवहारगत अंतर: Resend के इवेंट मैसेज-स्कोप्ड होते हैं। हमारे डिलीवरी इवेंट प्राप्तकर्ता-स्कोप्ड हैं (email_id के साथ recipient_id), इसलिए तीन प्राप्तकर्ताओं वाला एक send तीन डिलीवरी परिणाम देता है, प्रति प्राप्तकर्ता एक।

कटओवर करें

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

अगले कदम

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

संबंधित संसाधन

इस विषय के लिए डॉक्यूमेंटेशन, गाइड और उदाहरणों के साथ आगे बढ़ें। संसाधन अंग्रेज़ी में हैं।

अभ्यास करें और इम्प्लीमेंटेशन ब्रीफ़ पाएँ