> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lynkz.elipseday.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Resend for Magic Link PIN Recovery in Lynkz

> Connect Resend to enable magic link PIN recovery emails in Lynkz. Configure your API key and optionally verify a custom sender domain.

Resend is optional — it is only needed if you want to support magic link PIN recovery. If you skip this step, the rest of Lynkz works perfectly: users can still create pages, manage links, and log in with their PIN. Without Resend configured, the "Forgot PIN?" recovery flow is simply unavailable.

<Info>
  With Resend's free tier, the default sender address is `onboarding@resend.dev`. When using this address, Resend only allows delivery to the **email address registered on your Resend account**. If you want users to receive magic links at any email address, you need to verify a custom domain at [resend.com/domains](https://resend.com/domains) and set the `RESEND_FROM_DOMAIN` environment variable.
</Info>

<Steps>
  <Step title="Create a Free Resend Account">
    Go to [resend.com](https://resend.com) and sign up for a free account. The free tier is sufficient for most self-hosted Lynkz deployments — it covers up to 3,000 emails per month and 100 per day.
  </Step>

  <Step title="Get Your API Key">
    After signing in, open the Resend dashboard and navigate to **API Keys**. Click **Create API Key**, give it a descriptive name (e.g. `lynkz-production`), and copy the key that is displayed. You will only be shown this key once, so copy it before closing the dialog.
  </Step>

  <Step title="Add the API Key to Vercel">
    In your Vercel project dashboard, go to **Settings → Environment Variables** and add the following variable:

    ```bash theme={null}
    RESEND_API_KEY=re_xxxxxxxxxxxx
    ```

    Replace `re_xxxxxxxxxxxx` with your actual key. Make sure the variable is available to your **Production** environment (and optionally Preview). After adding it, redeploy your project for the change to take effect.
  </Step>

  <Step title="(Optional) Verify a Custom Sender Domain">
    If you want to send magic links to any email address — not just your own Resend account email — verify a domain you own:

    1. Go to [resend.com/domains](https://resend.com/domains) and click **Add Domain**.
    2. Follow the DNS verification steps for your domain registrar.
    3. Once verified, add a second environment variable to your Vercel project:

    ```bash theme={null}
    RESEND_FROM_DOMAIN=yourdomain.com
    ```

    Lynkz will then send magic link emails from `noreply@yourdomain.com`. If this variable is not set, it falls back to the default `onboarding@resend.dev` sender.
  </Step>
</Steps>
