Use Case

Send welcome emails with Postkit

Deliver personalized welcome emails the moment a user signs up. Postkit's REST API and Handlebars templates make it a single API call.

Get Started Free

The problem

First impressions matter. A delayed or missing welcome email signals unreliability and can reduce activation rates. You need an email API that delivers in seconds, handles retries gracefully, and lets you personalize the content.

The Postkit solution

Postkit sends your welcome email in under a second. Use Handlebars templates for personalization, idempotency keys to prevent duplicates on signup retries, and webhooks to track opens and clicks.

send-welcome.ts
const res = await fetch("https://api.postkit.eu/v1/emails", {
  method: "POST",
  headers: {
    Authorization: "Bearer pk_live_...",
    "Content-Type": "application/json",
    "Idempotency-Key": `welcome-${userId}`,
  },
  body: JSON.stringify({
    from: "hello@yourapp.eu",
    to: user.email,
    subject: "Welcome to YourApp!",
    template_id: "tmpl_welcome",
    data: { name: user.name, activateUrl },
  }),
});

Template example

Use a Handlebars template to keep your email content separate from your application code.

template.hbs
<h1>Welcome, {{name}}!</h1>
<p>Thanks for signing up. Click below to activate your account:</p>
<a href="{{activateUrl}}">Activate my account</a>

Start sending in under 5 minutes

Free plan. No credit card required.

Get Started Free