Skip to content

Setting Up the Subscribe Form

Follow this guide to set up a subscribe form for your website using [Resend]

Before you start, ensure you have:

  1. In your Resend dashboard, navigate to API Keys.
  2. Click + Create API key
    • Name: Use your project or GitHub repo name.
  3. Copy the key immediately. It will start with re_***. You won’t be able to see it again.
  1. Navigate to Audience > Segments.

  2. Select your target segment (e.g., “General”).

  3. Copy the ID value found in the segment settings.

To securely bridge your website and Resend, you must add your credentials to Netlify:

  1. In Netlify, go to Project confiuration > Environment variables

  2. Click Add a variable > Add a single variable for each.:

KeyValue
RESEND_API_KEYYour re_*** from Step 1
RESEND_SEGMENT_IDYour Segment ID from Step 2