Use case

Magic link email

When the user chooses passwordless sign-in or one-tap login. Copy the HTML into your app and send with one API call.

Subject line ideas

  • Your login link
  • Sign in to your account
  • Magic link — expires soon

HTML example

Replace placeholders in your app before send. This is not a Notify template product — it is a starting snippet.

<p>Sign in with this one-time link:</p>
<p><a href="{{MAGIC_URL}}">Log in</a></p>
<p>Expires in 10 minutes. If you did not request this, ignore it.</p>

Send with Notify

const res = await fetch('https://notify.cx/api/email/send', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': process.env.NOTIFY_API_KEY
  },
  body: JSON.stringify({
    to: 'user@example.com',
    from: 'noreply@yourdomain.com',
    subject: "Your login link",
    message: `${html}`
  })
});

Security notes

  • One-time tokens only
  • Short TTL
  • Bind to the requesting device/session where practical

Related

Frequently asked questions

When should I send a magic link email?

When the user chooses passwordless sign-in or one-tap login.

Do I need Notify templates?

No. Paste HTML (or plain text) into the message field. Notify delivers — your app owns the content.

How do I send this with Notify?

POST https://notify.cx/api/email/send with x-api-key and fields to, from, subject, message. Free 1,000/mo; Pro $10 for 10,000.